Oleg
Oleg

Reputation: 243

framework not found issue

Upon building my project (a simple cocoa application) in XCode 3 I get this error message:

ld: framework not found SDL
collect2: ld returned 1 exit status

But framework exists here /Library/Frameworks/SDL.framework. How do I get the linker to find it?

Upvotes: 13

Views: 14558

Answers (5)

Роман Зыков
Роман Зыков

Reputation: 595

If you get this error - try

place YOUR.framework to folder with your project.

Set patch to framework in config project.

Upvotes: 0

theSmaw
theSmaw

Reputation: 697

The screenshot shows how to do this in XCode 7:

enter image description here

Upvotes: 3

NinjaBeetle
NinjaBeetle

Reputation: 85

The solution to this for external libraries is to add your framework's path to Build Settings > Search Paths > Framework Paths.

Like this: /Users/MyMacName/Documents/FacebookSDK

If it is something that "came with" xcode then it should work without this addition.

Upvotes: 3

AbcTest
AbcTest

Reputation: 41

You need to add the framework by right clicking on the on the framework in the sources and file menu and select the existing file. Add the framework after that it is visible in your project.

Upvotes: -2

spudwaffle
spudwaffle

Reputation: 2915

You need to add the framework to your Xcode project. Literally drag the framework into the Frameworks folder.

Upvotes: -3

Related Questions