IOS 5 上的 Xcode 4.5 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12404495/
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
Xcode 4.5 error on IOS 5
提问by flaviusilaghi
I installed the GM version of xcode and i started to receive this error when i try to install my app on IOS 5 . The app works fine on IOS 6. Could someone please tell me what could be the problem ? I included the libobjc.A.dylib library and i get the same .
我安装了 xcode 的 GM 版本,当我尝试在 IOS 5 上安装我的应用程序时,我开始收到此错误。该应用程序在 IOS 6 上运行良好。有人可以告诉我可能是什么问题吗?我包含了 libobjc.A.dylib 库,我得到了相同的 .
dyld: lazy symbol binding failed: Symbol not found: _objc_setProperty_atomic_copy
Referenced from: /var/mobile/Applications/8BCAAF22-5857-427D-9FDA-48D369CF3DD8/FlipBookApp.app/FlipBookApp Expected in: /usr/lib/libobjc.A.dylib
dyld: Symbol not found: _objc_setProperty_atomic_copy Referenced from: /var/mobile/Applications/8BCAAF22-5857-427D-9FDA-48D369CF3DD8/FlipBookApp.app/FlipBookApp Expected in: /usr/lib/libobjc.A.dylib
dyld:懒惰的符号绑定失败:找不到符号:_objc_setProperty_atomic_copy
引用自:/var/mobile/Applications/8BCAAF22-5857-427D-9FDA-48D369CF3DD8/FlipBookApp.app/FlipBookApp 预期在:/usr/lib/libobjc.A.dylib
dyld:找不到符号:_objc_setProperty_atomic_copy 引用自:/var/mobile/Applications/8BCAAF22-5857-427D-9FDA-48D369CF3DD8/FlipBookApp.app/FlipBookApp 预期在:/usr/lib/libobjc.A.dylib
回答by Eyal
In GData project -> Build settings -> change "iOS deployment target" to 5.1
在 GData 项目 -> 构建设置 -> 将“iOS 部署目标”更改为 5.1
回答by Jim Liu
The "iOS deployment target" value of your added static library must less than or equal your project's.
添加的静态库的“iOS 部署目标”值必须小于或等于您的项目。