當我嘗試運行我在的iOS 4.3模擬器(4.2的Xcode)應用程序,我崩潰的時候,我打@autoreleasepool {},有:有條件連接的@autoreleasepool
dyld: lazy symbol binding failed: Symbol not found: _objc_autoreleasePoolPush
我環顧四周,我請參閱解決方法是添加libarclite_iphoneos.a
。這個模擬器也有一個版本,如libarclite_iphonesimulator.a
。
我需要兩個庫添加到我的項目,使其在模擬器上和硬件都運行。但無論我建立什麼,它都會抱怨另一個庫用於不受支持的體系結構。
例如,用於建設模擬器:
ld: warning: ignoring file /Developer-4.2/Platforms/iPhoneOS.platform/
Developer/usr/lib/arc/libarclite_iphoneos.a, missing required architecture
i386 in file
如何同時固定這兩個?或者我現在應該堅持舊的NSAutoreleasePool
語法?
似乎是鐺問題,因爲在建的設置改變編譯器LLVM-GCC-4.2解決了該問題對我來說 –
我認爲它修復了自;我幾個月沒有遇到過它。 –