Xcode4 Create Static Library from Existing Project

青春壹個敷衍的年華 提交于 2019-12-01 11:52:28

问题


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:


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

You Can Try this for making your static library usage smart



来源:https://stackoverflow.com/questions/10255044/xcode4-create-static-library-from-existing-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!