本文介绍了Xcode4从现有项目创建静态库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在XCode4中创建静态库时遇到问题。我一直在关注这个有用的使您的静态库使用智能


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?

解决方案

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

这篇关于Xcode4从现有项目创建静态库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-11 02:46