Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 315
Oleg Avatar asked Jul 13 '11 22:07

Oleg


2 Answers

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.

like image 97
NinjaBeetle Avatar answered Oct 18 '22 21:10

NinjaBeetle


The screenshot shows how to do this in XCode 7:

enter image description here

like image 26
theSmaw Avatar answered Oct 18 '22 21:10

theSmaw