Linking failing with Xlinker file not found error

孤人 提交于 2020-01-06 10:09:34

问题


I am trying to compile a Xcode project which was a Xcode 3.2 project with Xcode 4. I am getting the following error.

ld: file not found: -Xlinker collect2: ld returned 1 exit status Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

Unable to figure out the issue.

And this happens only when I use the Gcc4.2 compiler. When I use LLVM it works fine.


回答1:


According to http://www.cocoadev.com/index.pl?ApplicationLinkingIssues you might have framework references to old locations that do not exist anymore. Check the library list in MyProject.xcodeproj / Targets / Build Phases / Link Binary with Libraries, maybe they have to be removed and added again. Do a Product / Clean because XCode often does not realise changes in the build settings.



来源:https://stackoverflow.com/questions/7087478/linking-failing-with-xlinker-file-not-found-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!