How do I change an existing XCode target from dynamic to static?

Posted by Eric on Stack Overflow See other posts from Stack Overflow or by Eric
Published on 2009-08-28T20:15:58Z Indexed on 2010/05/14 7:44 UTC
Read the original article Hit count: 306

Filed under:
|

I'm working with an existing project that produces a dynamic library (Cocoa API).

I'd rather generate a static library, but if I change the [Linking|Mach-O Type] field from "Dynamic Library" to "Static Library", both the Clean Project and Build Project complain that the target has an invalid MACH_O_TYPE value of 'staticlib'.

Is there a straightforward way to get the build to produce a static .a file?

Thanks,
Eric

© Stack Overflow or respective owner

Related posts about xcode

Related posts about xcodebuild