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

后端 未结 4 1131
予麋鹿
予麋鹿 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:59

    Opens up the project.pbxproj file in YourProjectName.xcodeproj folder using TextEdit, search for productType and change it's value from "com.apple.product-dynamic" to "com.apple.product-static"

提交回复
热议问题