2

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. 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.

1 Answer 1

3

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.

New 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.


Sign up to request clarification or add additional context in comments.

1 Comment

but i have create an application and now i want creare a librery for these. how can do these?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.