How can I reference a separate project in xcode 4?

How to reference another project with code that I want to use in Xcode 4. In particular, I am trying to use the NSDate extensions from here .

Some notes:

  • I assumed that I should rather refer than try to create a framework
  • I tried copying an existing xcode Hello World project file to my project, however it didn't seem to work
  • Do I need to create a new “Target” based on the “Static Coconut Finger Library”?
  • Then I will need to edit the current product scheme so that when I create a new goal, I’ll be built
  • What do I need to do on my side of the project for sure - should there be an Add Files file and just select the Xcode Project File extension file?

thank

+3
source share
2 answers

I assumed that I should rather refer than try to create a framework

Yes, a link and a link to it, if you do not need only a little. at this point, the separation of the bits you want can be extended (also depends on the layout of lib / also depends). you should prefer a link and a link because it usually minimizes the time of your service, especially if you use it in several projects.

I tried copying the existing xcode project file "Hello World" to my project, however this did not seem to work

you do not create a project, you add an xcode library project to your application or library, install lib as a dependency, add a library to your search paths if necessary, and then link to the library.

"" " "?

,

. . lib, , .

- Add Files Xcode?

, .

+2

. , , , . , , , , , , , .

+1

All Articles