iOS 4.3上的libobjc.A.dylib编译错误 [英] libobjc.A.dylib compile error on iOS 4.3

查看:95
本文介绍了iOS 4.3上的libobjc.A.dylib编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS模拟器4.3中遇到编译错误我实际上无法弄明白,我得到的错误是:

I'm having a compiling error in iOS Simulator 4.3 I can't actually figure it out, The error I get is:

dyld: lazy symbol binding failed: Symbol not found: _objc_retain
  Referenced from: /Users/ben/Library/Application Support/iPhone Simulator/4.3.2/Applications/75915A97-7C3D-489A-B7B0-7B6895A4B584/AppName.app/AppName
  Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/libobjc.A.dylib

dyld: Symbol not found: _objc_retain
  Referenced from: /Users/ben/Library/Application Support/iPhone Simulator/4.3.2/Applications/75915A97-7C3D-489A-B7B0-7B6895A4B584/AppName.app/AppName
  Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/libobjc.A.dylib

注意:

被引用的库(libobjc.A.dylib)实际上位于'预期位置'
代码在iOS5上正常工作设备, d在iOS5模拟器中。

Note:
The library being referenced (libobjc.A.dylib) is actually in the 'Expected Place' The code works fine on an iOS5 device, and in iOS5 Simulator.

推荐答案

在Build中添加 -fobjc-arc 设置=>其他链接器标志( OTHER_LDFLAGS )用于不同的配置

Add -fobjc-arc in Build Settings => Other Linker Flags (OTHER_LDFLAGS) for the different configurations

这篇关于iOS 4.3上的libobjc.A.dylib编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆