Error set-objc-class-ref in APPDELEGATE.O solution

Source: Internet
Author: User

http://demo.netfoucs.com/banqingyang/article/details/43051671


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:


The present setup completes, the problem solves smoothly, everybody has the better solution, welcome the discussion.

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.