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

后端 未结 4 1189
予麋鹿
予麋鹿 2021-02-07 10:28

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] fiel

4条回答
  •  耶瑟儿~
    2021-02-07 10:56

    Delete your build target, then create a new one, choose "Library" and make sure you choose type "Static". After this, you only have to add your sources and dependencies again.

提交回复
热议问题