Adding a framework to XCode 4 Adding a framework to XCode 4 xcode xcode

Adding a framework to XCode 4


After adding framework via "Add existing framework"

  • Go to Project Settings > Build Phases
  • In right bottom corner click Add buid phase > Copy Files
  • Select Destination > Frameworks
  • Drag&Drop framework to files list

And that's it.


Another important detail here - you must have the "Runtime search path" to be defined in the projects, it's empty by default.

Something like this:

LD_RUNPATH_SEARCH_PATHS = @loader_path/../Frameworks