开发者

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

B开发者_如何转开发ut framework exists here /Library/Frameworks/SDL.framework. How do I get the linker to find it?


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.


The screenshot shows how to do this in XCode 7:

framework not found issue


If you get this error - try

place YOUR.framework to folder with your project.

Set patch to framework in config project.


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜