Xcode4 Create Static Library from Existing Project

2019-02-20 20:12发布

Having trouble creating a static library in XCode4. I have been following this helpful tutorial:

But I keep running into the same problem. How do you create a library from an existing project? I'm having difficulty building the project (not running) because it seems to run into compiler errors within the code I just imported.

How do I set up an existing project for importing into a Cocoa Touch Static Library project?

1条回答
淡お忘
2楼-- · 2019-02-20 20:48

Select
Target-> Build Settings
In the Linking Section Change the Mach-O Type to Static Library

enter image description here

You Can Try this for making your static library usage smart

查看更多
登录 后发表回答