Monday, 18 April 2011

Add existing frameworks in Xcode 4


  1. In the project navigator, select your project
  2. Select your target
  3. Select the 'Build Phases' tab
  4. Open 'Link Binaries With Libraries' expander
  5. Click the '+' button
  6. Select your framework
  7. (optional) Drag and drop the added framework to the 'Frameworks' group

Here is how you for step 7:
1) In the "project navigator", open the "frameworks" folder and select one the existing frameworks (e.g. UIKit.framework)
2) Right click and select "Show in Finder" from the menu
3) From the newly opened folder in the finder, drag the framework folder you are interested in (e.g. OpenGLES.framework) into the "frameworks" folder in XCode
4) Be sure not to "copy items into destination's group folder"
5) Choosing "Create groups for any added folders" 

No comments:

Post a Comment