How to add an existing framework in Xcode 5

前端 未结 5 2100
半阙折子戏
半阙折子戏 2020-12-01 03:42

I\'m trying to add the AdColony.h frameWork after downloading it, but I can\'t find it in Xcode 5. I was able to do it in the last version, but can\'t find it in this one. <

相关标签:
5条回答
  • 2020-12-01 03:56

    Click on your project in the Project Navigator on the left side. In General go to "Linked Frameworks and Libraries". Click on the + button

    enter image description here

    and click on "Add Other" and then add the framework you have downloaded.

    enter image description here

    0 讨论(0)
  • 2020-12-01 03:58

    Actually, I use Xcode 6.4, and I happen to be confronted with the same problem. I tried many ways suggested by others while none worked.(no button named General as others said) Here comes my solution.

    • Select your project in the project navigator
    • Click 'Build Phases' tab
    • Open 'Link Binaries With Libraries' expander
    • Click button '+' to add items

    step 1-4

    • Search and choose the frameworks you need, for example, I choose 'OpenGL.framework', and click the button 'Add'

    • Finally, you can see the frameworks you choose in the window
    0 讨论(0)
  • 2020-12-01 04:04

    Strange. I was just doing the same thing in XCode 5.0.2 and I had to click on the Project, select the *Tests Target, then select not the General tab but actually the Build Phases tab to see "Link Binary With Libraries" where I was able to add the framework.

    0 讨论(0)
  • 2020-12-01 04:06

    Follow this screen shots

    enter image description here

    Run and Go

    0 讨论(0)
  • 2020-12-01 04:12

    Adding it in "Linked Frameworks and Libraries" as other answer discribe did not work for me in xcode 6.4.

    However drag and drop it into Frameworks folder (Project Navigator) and creating a reference did worked.

    0 讨论(0)
提交回复
热议问题