About the iOS build version

Source: Internet
Author: User

1.Build Active Architecture only setting

Build Active Architecture only

    1. When set to No, all supported versions are compiled
    2. When set to Yes, it is faster for debug, it compiles only the current version of architecture

2, Run-release/debug

Select the environment you want to run: here to match the first one, if you choose the release environment, but not allow release compilation, it will cause error!

3.What are the armv7,armv7s,arm64,i386,x86_64?

    • Armv7|armv7s|arm64 is an instruction set for ARM processors
    • I386|x86_64 is the instruction set for Mac processors
arm64:iphone6s | iphone6s plus|iphone6| iPhone6 plus|iphone5s | ipad air| ipad mini2 (ipad mini with Retina Displa Y)armv7s:iphone5|iphone5c|ipad4 (IPad with Retina Display)Armv7:iphone4|iphone4s|ipad|ipad2|ipad3 (The New iPad) |ipad mini|ipod Touch 3g|ipod Touch4i386 is a 32-bit processor for Intel Universal microprocessorsx86_64 is a 64-bit processor for the x86 architectureSimulator 32-bit processor test requires I386 architectureSimulator 64-bit processor test requires x86_64 architecturetrue 32-bit processor requires ARMV7, or armv7s architectureReal-Machine 64-bit processor requires ARM64 architecture

We need to be aware of the following developments:

    • Architectures
      Specifies which instruction set types the project is compiled to support, and the more supported instruction sets, the more the packets that contain multiple instruction set codes will be compiled, and the larger the binary package is, the larger the IPA package will be.

    • Valid architectures
      Limit the scope of the set of instructions that may be supported, that is, the type of binary package that Xcode compiles from, and the package that compiles which instruction set will be determined by the intersection of architectures and valid architectures (hence this cannot be null)

like The supported ARM instruction set versions of the Valid architectures settings are: armv7/armv7s/arm64, the supported arm instruction set versions of the corresponding architectures settings are: armv7s, Then Xcode will only generate a binary package of the armv7s instruction set.

Another example : Set the architectures support arm instruction set to: armv7,armv7s, the corresponding valid architectures the supported instruction set is set to: armv7s,arm64, then at this time, The set of instructions supported by the Xcode generation binary package is only armv7s

If a static library has reported a construction error, it is possible that the library itself does not support the schema, either you remove the support for the schema, or you can change the static library to support the architecture!

Of course, if your project does not support the ARMV7 architecture, your program will not be installed on a machine that supports only ARMV7 architectures, such as iphone4s,5!

About the iOS build version

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.