Valid Architecture of the Xcode editor

Source: Internet
Author: User


What we are explaining today is the meaning of the valid architecture parameter of the Xcode editor, literal translation: An effective architecture (that is, CPU architecture).

Xcode is an integrated development environment (non-open source) that Apple provides to developers to develop applications for Mac OS X,ios. It runs under Apple's Mac operating system.

iOS apps are now basically compiled with LLVM, and Xcode provides various settings to help you set the parameters for your compilation. One of these is to set the architecture of the compilation, which includes the following parameters: Architectures, Valid architectures, and build Active Architecture only.

Some novice to these parameters often do not know how to choose, here is a brief introduction.

Architectures: This refers to the set of instructions you want to support, such as: armv7,armv7s, or you can use a parameter such as $ (archs_standard_32_bit)

Valid architectures: This refers to the set of instructions you are about to compile

Build Active Architecture only: whether to compile only the instruction set that is applicable to the current device (if this parameter is set to Yes, then if you debug with iphone 6, a binary that supports the arm64 instruction set is eventually generated; if you compile with iPhone4 , and eventually generates a binary that supports the ARMV7 instruction set, so it is generally set to Yes,release in debug mode.

Here, we compile the final supported instruction set that is the intersection of the two parameters of architectures and valid architectures.

Also, make a list of the current instruction sets for common iOS devices:

Armv8/arm64:iphone 6 (Plus), IPhone 5s, ipad Air (2), Retina ipad Mini (2,3)
Armv7s:iphone 5, IPhone 5c, IPad 4
Armv7:iphone 3GS, iphone 4, iphone 4s, IPod 3g/4g/5g, ipad, ipad 2, ipad 3, ipad Mini
Armv6:iphone, IPhone 3G, IPod 1g/2g

Valid Architecture of the Xcode editor

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.