Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add an existing framework in Xcode 5

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.

like image 467
user2874675 Avatar asked Oct 12 '13 18:10

user2874675


People also ask

How do I add an existing framework in Xcode?

Including Frameworks in Your Project To include a framework in your Xcode project, choose Project > Add to Project and select the framework directory. Alternatively, you can control-click your project group and choose Add Files > Existing Frameworks from the contextual menu.

How do I add a framework to a Swift project?

Select the target for where you want to add frameworks in the project settings editor. 3. Select the “Build Phases” tab, and click the small triangle next to “Link Binary With Libraries” to view all of the frameworks in your application. 4.To Add frameworks, click the “+” below the list of frameworks.


4 Answers

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

like image 110
AJ112 Avatar answered Nov 13 '22 02:11

AJ112


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.

like image 34
JJ on SE Avatar answered Nov 13 '22 04:11

JJ on SE


Follow this screen shots

enter image description here

Run and Go

like image 36
Tunvir Rahman Tusher Avatar answered Nov 13 '22 03:11

Tunvir Rahman Tusher


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

enter image description here

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

enter image description here

  • Finally, you can see the frameworks you choose in the window
like image 39
Agent DS Avatar answered Nov 13 '22 04:11

Agent DS