Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easy transition between static and dynamic library within Cocoa Framework

I've created a Framework starting with the "Cocoa Touch Framework" project type (on iOS 8.1), and when I was done I ended up with a dynamic library that worked fine.

However for certain cases I also need a framework which has a static library inside of it. I have seen pages describing the entire manual process in detail (creating the Framework directory structure, etc.) but since I already have a project for my framework I'm hoping there is some flag or setting I can adjust to just drop in a static framework instead of a dynamic one.

If anyone can let me know how I can adjust my Framework's project settings to do this please let me know.

Thanks!

like image 476
Locksleyu Avatar asked Mar 03 '26 06:03

Locksleyu


1 Answers

This was much easier than I expected, simply change "Mach-O Type" under "Build Settings" from "Dynamic Library" to "Static Library"

like image 188
Locksleyu Avatar answered Mar 06 '26 02:03

Locksleyu