Xcode 7 でビルド失敗

xcode6errer
 
 Xcode 7 で古い (Ver6.3以下の) プロジェクトをビルドしようとするとリンカコマンドの失敗でビルドできないことがある。
 
Undefined symbols for architecture x86_64:
"_objc_readClassPair", referenced from:
__ARCLite__load() in libarclite_macosx.a(arclite.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

 
xcode7_fix
 
 ネットで調べてみたところ、PROJECT – Build Settings の 「Implicitly Link Objective-C Runtime Support」と「Objective-C Automatic Reference Counting」を No に設定するとビルドが成功するようだ。
 
 
Link 【Linking with Xcode 7 fails due to “undef: _objc_readClassPair” #11

コメントを残す