Resolution of the missing required architecture i386 in file error in Swift

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.