How to “add existing frameworks” in Xcode 4?

后端 未结 10 2212
庸人自扰
庸人自扰 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条回答
  • 2020-11-21 11:56

    Follow the screen shots

    Go to linked framework and libraries

    enter image description here

    you are ready to Go!

    0 讨论(0)
  • 2020-11-21 11:57

    As per Apple's documentation:

    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.
    0 讨论(0)
  • 2020-11-21 11:57

    Xcode 12

    Just drag it into the Frameworks, Libraries, and Embedded Content of the General section of the Target:

    Done!

    Note that Xcode 11 and 10 have a very similar flow too.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-11-21 12:02

    I would like to point out that if you can't find "Link Binaries With Libraries" in your build phases tab click the "Add build phase" button in the lower right corner.

    0 讨论(0)
  • 2020-11-21 12:04

    In Project

    1. Select the project navigator
    2. Click on Build Phases
    3. Click on link binary with libraries
    4. Click on + Button and add your Frameworks
    0 讨论(0)
提交回复
热议问题