user2874675
user2874675

Reputation: 443

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.

Upvotes: 44

Views: 51914

Answers (6)

yoAlex5
yoAlex5

Reputation: 34441

Xcode v11 uses different settings

Frameworks, Libraries, and Embedded Content //for app
//or
Frameworks and Libraries //for Framework, extension...

here you should decide embed or Do not embed[About]

When you drag and drop a framework Xcode automatically adds necessary settings like Library Search Paths or Framework Search Paths[About]

[More examples here]

Upvotes: 0

Agent DS
Agent DS

Reputation: 19

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

Upvotes: 1

PiTheNumber
PiTheNumber

Reputation: 23562

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.

Upvotes: 0

Tunvir Rahman Tusher
Tunvir Rahman Tusher

Reputation: 6641

Follow this screen shots

enter image description here

Run and Go

Upvotes: 10

JJ on SE
JJ on SE

Reputation: 417

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.

Upvotes: 16

AJ112
AJ112

Reputation: 5301

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

Upvotes: 73

Related Questions