xcode6.0 upgrade to xcode6.1, the program compiles an error, as follows: This is a very common error, many projects after the replacement of the Xcode version, there will be similar problems.
Undefined Symbols for Architecture x86_64:
"_objc_class_$_qqapiinterface", referenced from:
Objc-class-ref in APPDELEGATE.O
"_objc_class_$_sharesdk", referenced from:
Objc-class-ref in APPDELEGATE.O
Objc-class-ref in RECIPEDETAILVIEWCONTROLLER.O
Objc-class-ref in SHOWVIEWCONTROLLER.O
Objc-class-ref in VIDEO_SHOW.O
"_objc_class_$_tencentoauth", referenced from:
Objc-class-ref in APPDELEGATE.O
"_objc_class_$_wxapi", referenced from:
Objc-class-ref in APPDELEGATE.O
"_objc_class_$_weiboapi", referenced from:
Objc-class-ref in APPDELEGATE.O
"_objc_class_$_yxapi", referenced from:
Objc-class-ref in APPDELEGATE.O
Ld:symbol (s) not found for architecture x86_64
Clang:error:linker command failed with exit code 1 (use-v to the invocation)
Solution:
Xcode upgrade to 6.1.1 The default is to have all apps compiled with 64-bit compilers. Originally in the Xcode6.0 when the default architectures only (arm7,armv7s), to 6.1.1 default to take the arm64 parameters.
1.1. Select Targets->build settings->architectures.
Change the build active architectures to NO.
2. Delete the arm64 parameters in the valid architectures below.
Or:
Double-click Architectures, select Other, delete $ (arch_standard), and then add ARMv7 and Armv7s (write: $ (archs_standard_32_bit)).
3.clean build again.
The result is set to the following figure: