Build static library

后端 未结 1 1741
暗喜
暗喜 2021-02-01 21:14

I am trying to build a .a static library for my iPhone project.

So, I have created a new project, and I used the template Cocoa Touch Static Libra

相关标签:
1条回答
  • 2021-02-01 22:07

    I see that you accepted the answer, but I thought I'd leave a note for future library developers. After upgrading an Xcode 3.x based static library project to 4.x, the library will not always upgrade and begin doing universal library builds. When this happens, the project build will be successful and apps linked against the target dependency will run fine, but you'll get red static library files showing in the projects you pull in. This is very annoying and the only fix I have found is to recreate the project files -- I tried auditing the build settings but was unable to figure out the confounding factors.

    Hope this helps save somebody the 2 hours I just lost :-P

    0 讨论(0)
提交回复
热议问题