1, problem description
Recently, the use of Tencent official SDK for development, download the latest version. So after everything is configured, compile an error. (This problem can only be compiled on the iPhone5 and iphone4s emulator to run the program.) )
The error message is as follows:
Ld:warning:ignoring File/users/yuhang/documents/code/hangge_1070/tencentopenapi.framework/tencentopenapi, Missing required architecture i386 in file/users/yuhang/documents/code/hangge_1070/tencentopenapi.framework/ Tencentopenapi (3 slices)
Undefined Symbols for Architecture i386:
"_objc_class_$_tencentoauth", referenced from:
Objc-class-ref in APPDELEGATE.O
Ld:symbol (s) not found for architecture i386
Clang:error:linker command failed with exit code 1 (use-v to the invocation)
2, causal analysis
The new version of the Tencent SDK's CPU framework does not support the i386 architecture, and the IPhone5 and the simulator for the following devices are i386 architectures, so missing required architecture i386 in file.
3, the solution
Instead of using the iphone5s and above version of the simulator to compile the run, or directly using the IPhone real machine.