Symbol Not Found: _objc_storeStrong
Crash log:
dyld: lazy symbol binding failed: Symbol not found: _objc_storeStrong Referenced from: /var/mobile/Applications/6E4A4771-B39A-48B9-A7B7-0EA0108DCAF4/X.app/X Expected in: /usr/lib/libobjc.A.dylib dyld: Symbol not found: _objc_storeStrong Referenced from: /var/mobile/Applications/6E4A4771-B39A-48B9-A7B7-0EA0108DCAF4/X.app/X Expected in: /usr/lib/libobjc.A.dylib
在 Non-ARC 项目中使用 ARC-enabled 库的时候,需要对库文件在 Build Phases->Compile Sources 添加 -fobjc-arc
Compiler Flags,在 Build Settings->Other Linker Flags 添加 -fobjc-arc
.
via libobjc.A.dylib compile error on iOS 4.3, Static library with ARC support linked to non-ARC project causing linker errors.