Search code examples
objective-cxcode7linker-errorsundefined-symbol

Linker issue when switch to Xcode7, Undefined symbols for architecture armv7: _objc_readClassPair


I got this error when I try to use the latest xcode, which is 7.1.1, but got 2 linker error: Error msg image

Undefined symbols for architecture armv7: "_objc_readClassPair", referenced from: __ARCLite__load() in libarclite_iphoneos.a(arclite.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

don't know how to figure this out, anyone can help? Thanks a lot.


Solution

  • Adding "-Xlinker -U -Xlinker _objc_readClassPair" to the "Other Linker Flags" fixed that issue.