Summary of compilation errors encountered in iOS development

Source: Internet
Author: User

1:undefined Symbols for Architecture arm64:

?
1 2 3 <code>undefined symbols for architecture arm64:    "_objc_class_$_fbsession" , referenced from:somefile ld:symbol (s) not found for architecture arm64</code>
Solution:

Project, Target (your project name), build settings and change architectures to standard architectures (ARMV7, a rmv7s), and valid architectures to ARMV7, armv7s.


Reference: http://stackoverflow.com/questions/19213782/undefined-symbols-for-architecture-arm64



2:no architectures to compile for (ARCHS=ARM6 ARM7, VALID_ARCHS=ARMV7)

Solve:

  • Go Project Target > Build Settings > Architectures to Delete whatever you see there, and then add these rows one by one:

    ARMv6 armv7

    There was no ' save ' buttons there, so what I do, was adding another blank row, pressing ENTER, removing it, and then Clicki Ng out somewhere else, so the I make sure I has both of them added:

      • Now go to the Appname-info.plist file, and look for the key "Require device capabilities" and delete it all. Reference: HTTP://STACKOVERFLOW.COM/QUESTIONS/10005896/NO-ARCHITECTURES-TO-COMPILE-FOR-ARCHS-ARM6-ARM7-VALID-ARCHS-ARMV7
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.