3

i have an 2 XCode iphone projects. 1 creates a static library. i want to use that static library in my other project.

how to attach that static library project with my other project. so that when i compile my other project it will automatically compile the static library project and use that library.

how to do this ?

1 Answer 1

6

It's quite simple :

First you need to drag the static library project file (xcodeproj) into your project to make a cross-project reference.

Then you need to add the static library target as a dependency of your application app : go into the "Link Binary With Libraries" build phase of your application target and drag the static library target into it.

You can find an example of this process with the GData API : http://code.google.com/p/gdata-objectivec-client/wiki/BuildingTheLibrary

(under the "Linking to the iPhone Static Library" section)

Hope this helps, Vincent.

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.