Xcode compilation undefined symbols for architecture XXX error

Source: Internet
Author: User

Undefined Symbols for Architecture armv7
Undefined Symbols for Architecture armv7s
Undefined Symbols for Architecture arm64
Undefined Symbols for Architecture i386
Undefined Symbols for Architecture x86_64

When multiple people work together on the same project or copy a project, there are often problems like this:

Undefined Symbols for Architecture XXX:

"_objc_class_$_xx file name", referenced from:

There are probably the following 4 kinds of possible, the first three kinds of online many people have said, and the fourth situation is recently trapped around, if the first three methods can not be resolved after the use, you may consider the fourth possible;

1. Related project files not imported


You can directly in here + come in, you can also in the left engineering directory to all re-guide the document (in the case of multi-person operation of the project, the general approach)

2..framework File not imported


Put xx file library + come in, this question "_objc_class_$_asidentifiermanager", is because Adsupport.framework class library does not add

3. File path missing

Check if some file paths are not joined or are incorrectly written

4. Objects in the file you are prompted to create an object of the non-implemented class

This situation is due to coding personnel errors, only the function or class is declared in the. h file, but not implemented in the corresponding. m or. cpp file;

If you can check the code, or fragment comment on the suspicious part, to see if it will also be prompted, corrections are generally easy, but it is difficult to associate with the compilation error.

Xcode compilation undefined symbols for architecture XXX error

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.