Reputation: 243
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
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
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
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
Reputation: 2915
You need to add the framework to your Xcode project. Literally drag the framework into the Frameworks
folder.
Upvotes: -3