【发布时间】:2012-01-14 16:50:45
【问题描述】:
当我在 iOS 4.3.x 上使用 @autorelease 关键字运行代码时,它会引发此错误。
dyld: lazy symbol binding failed: Symbol not found: _objc_autoreleasePoolPush
Referenced from: /Users/Eonil/Library/Application Support/iPhone Simulator/4.3.2/Applications/3782382E-293A-4D5E-86E6-28BE35CF6048/EonilCocoaComplementsTester.app/EonilCocoaComplementsTester
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/Foundation.framework/Foundation
dyld: Symbol not found: _objc_autoreleasePoolPush
Referenced from: /Users/Eonil/Library/Application Support/iPhone Simulator/4.3.2/Applications/3782382E-293A-4D5E-86E6-28BE35CF6048/EonilCocoaComplementsTester.app/EonilCocoaComplementsTester
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/Foundation.framework/Foundation
我认为关键字只是替换显式自动释放池创建/删除。无论如何它不是,并抛出了一个错误。它是否仅在特定版本的 iOS 中支持?那么在哪里可以查看这个关键字的版本信息呢?
【问题讨论】:
标签: ios cocoa-touch version nsautoreleasepool