How to “add existing frameworks” in Xcode 4?

后端 未结 10 2227
庸人自扰
庸人自扰 2020-11-21 11:23

I can\'t find the good old \"Add existing frameworks\" option. How do I do this?

We\'re talking about Xcode 4 DP2 (in the context of iPhone development, as far as it

10条回答
  •  Happy的楠姐
    2020-11-21 11:59

    Another easy way to do it so that it is referenced in the project folder you want, like "Frameworks", is to:

    1. Select "Show the Project navigator"
    2. Right-click on the project folder you wish to add the framework to.
    3. Select 'Add Files to "YourProjectName"'
    4. Browse to the framework - generally under /Developer/SDKs/MacOSXversion.sdk/System/Library/Frameworks
    5. Select the one you want.
    6. Select "Add"

    It will appear in both the project navigator where you want it, as well as in the "Link Binary With Libraries" area of the "Build Phases" pane of your target.

提交回复
热议问题