Experience of iOS7.1 compiling error-solving scheme

Source: Internet
Author: User

OS upgrades to IOS 7.1, developers must keep up with the times. Decisive download updated xcode5.1 version, try running a bit of the application has been online, wow error. That's a headache.

Post the error: It's all about the mistakes of the third party class library, such as Parse, SHARESDK





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)



One of the new features of the Xcode upgrade to 5.1 is that all apps are compiled by the 64-bit compiler by default. Originally in the xcode5.0.x when the default standard architectures only (arm7,armv7s), to 5.1 after the default to take the arm64 parameters.


The current temporary solution is

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.

To find a better solution


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.