草庐IT

retainAutoreleasedReturnValu

全部标签

objective-c - 静态库 (ARC) 在非 ARC 应用程序上工作,遇到错误 : dyld: lazy symbol binding failed: Symbol not found: _objc_retainAutoreleasedReturnValue

Xcode4.3.2我使用ARC编写了一个静态库。当我把它放到一个项目中,并在iOS4.3模拟器上测试时。(基于iOS5.1,部署target4.3)如果项目使用ARC,它工作正常。如果项目没有使用ARC,遇到错误,例如:dyld:lazysymbolbindingfailed:Symbolnotfound:_objc_retainAutoreleasedReturnValueReferencedfrom:/Users/cnzzmobile/Library/ApplicationSupport/iPhoneSimulator/4.3.2/Applications/A4EEB0A0-AC

ios - 找不到符号 : _objc_retainAutoreleasedReturnValue running ARC compiled code on iOS 4. 3

我的代码是使用5.1的基础SDK和4.0的部署构建的,并且是使用ARC构建的。我以前在4.3测试设备上运行它时没有遇到任何问题,但它只是第一次崩溃。知道如何解决吗?ExceptionType:EXC_BREAKPOINT(SIGTRAP)ExceptionCodes:0x00000001,0xe7ffdefeCrashedThread:0DyldErrorMessage:Symbolnotfound:_objc_retainAutoreleasedReturnValueReferencedfrom:/var/mobile/Applications/6AD37C1A-9642-4F0A-