xcode 在为 iOS 5.0 编译时,什么会导致“找不到符号:_objc_setProperty_atomic”错误?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12861345/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What can cause a "Symbol not found: _objc_setProperty_atomic" error when compiling for iOS 5.0?
提问by Tito Q.
I'm having a compiling error in IOS 5. The error I get is:
我在 IOS 5 中遇到编译错误。我得到的错误是:
wait_fences: failed to receive reply: 10004003
dyld: lazy symbol binding failed: Symbol not found: _objc_setProperty_atomic
Referenced from: /var/mobile/Applications/952C640B-8310-4028-AAE5-FD308D02B005/MorethanMusic.app/MorethanMusic
Expected in: /usr/lib/libobjc.A.dylib
dyld: Symbol not found: _objc_setProperty_atomic
Referenced from: /var/mobile/Applications/952C640B-8310-4028-AAE5-FD308D02B005/MorethanMusic.app/MorethanMusic
Expected in: /usr/lib/libobjc.A.dylib
How can I fix this error?
我该如何解决这个错误?
回答by Kevin
Paul's answer is only halfway there. After some searching, I found thisthread, which suggested you make the deployment target the same for all subprojects:
保罗的回答只到了一半。经过一番搜索,我找到了这个线程,它建议您为所有子项目设置相同的部署目标:
It doesn't matter what they are (at least for this problem), as long as they're the same. This solved this precise error for me.
它们是什么并不重要(至少对于这个问题),只要它们是相同的。这为我解决了这个精确的错误。
Don't forget to clean the GData Project's DerivedData Folder before building.
在构建之前不要忘记清理 GData 项目的 DerivedData 文件夹。
回答by Paul de Lange
Set your Deployment target to iOS5 in your build settings.
在构建设置中将部署目标设置为 iOS5。