Skip to content

January 21, 2011

Adding Frameworks to XCode4

by Andreas Schaefer

Every time I need to add a new Framework to an iPhone application on XCode4 I am dumbfounded because I don’t see how it is done. Well, I did figure it out again and so I want to make a mental note here that I don’t forget. This is done against the latest XCode4 (preview 6) and so your milage might vary.

These are the steps to accomplish that:

  1. Select the Project on the left hand side bar with the blue icon on the left
  2. Inside there select the target (left side bar inside the editor pane or just right to the project tree where we selected the project)
  3. Click on the Build Phases tab on the top
  4. Open the Link Binary with Libraries bar
  5. Click on the + button to add a new library
  6. Select the desired Framework in the pop-up dialog
  7. Now just below the project icon on the left you will see the Framework appear (with the yellow box icon)
  8. Drag the Framework onto the Frameworks Group icon (yellow folder icon) so that it is listed inside that group

Build and Enjoy.


Read more from Uncategorized

Comments are closed.