开发者

Create a library in iPhone project

开发者 https://www.devze.com 2023-01-13 00:05 出处:网络
I have a problem with my iPhone program. I have imported a folder into my project. I use the class into the folder like the other class.

I have a problem with my iPhone program. I have imported a folder into my project. I use the class into the folder like the other class. 开发者_Python百科But now i want create a library with these folder because is a external project and i want use it in other project. There are a solutions for these problem?

Thanks so much.


When you create a new project with Xcode, you can choose to create a library for iPhone OS, and Xcode will create a project for a static library for iPhone OS. Once you created the project, you need to import the files you already have, or paste the code in the files Xcode created for you.

Create a library in iPhone project

Create two different Xcode projects; in one you put the code for the application, and in the other you put the code of the library.
When you compile the code for the application, you add a reference to the library you compiled from the second project.


0

精彩评论

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