iOS 4.3.xでキーワード@autorelease
を使用してコードを実行すると、このエラーが発生します。@autoreleasepoolを使用するには、どのiOSバージョンが必要ですか?
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でのみサポートされていますか?では、このキーワードのバージョン情報はどこで確認できますか?
これはARCを必要としないhttp://stackoverflow.com/questions/8069570/autoreleasepool-make-errors – RolandasR