开发者

Objective C - Create a framework for my iphone apps?

I have created a set of model classes used by my iphone app. I am trying to separate them into a new project开发者_高级运维 and create a framework to make it reusable in my other projects?

Is this possible?

It looks like xcode only allows creating frameworks for Mac OS X. Any idea what type of project i should create to achieve this goal?


You can build a static framework, ala this article, or a static library. Personally, I typically opt for the static framework, just for my own ease of use.


I Use static frameworks as well. I have some scripts you might find useful at https://github.com/drekka/dUsefulStuff. In the scripts directory there are separate scripts for assembling a static library and then creating a static framework. You can use those to see the steps you will need to go through. Scripting the whole process is the best method because you can integrate it into xcode or run it from the command.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜