Armv7,armv7s,arm64,i386,x86_64 in iOS

Source: Internet
Author: User

Objective

What do armv7, armv7s, arm64, i386, x86_64 in general iOS mean? How do I choose in Xcode?

Introduced

ARMv7, armv7s, and arm64 are all instruction sets for ARM processors.

i386, x86_64 is the instruction set for Mac processors

Which devices are these instruction sets useful to?
arm64:iphone6s | iphone6s plus|iphone6| IPhone6 plus|iphone5s | ipad air| ipad mini2 (ipad Mini with Retina Display) 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 for Intel Universal microprocessor 32-bit processor x86 _64 is a 64-bit processor simulator for the x86 architecture 32-bit processor testing requires a i386 architecture, simulator 64-bit processor testing requires a x86_64 architecture, a real machine 32-bit processor requires ARMV7, or armv7s architecture, a real machine 64-bit processor needs arm64 architecture.
The problem of choice in actual development

Instruction set related options in Xcode (Build setting)

1.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 are compiled, and the larger the binary packages that are generated, the larger the IPA package.

2.Valid architectures

Limits on the range of instruction sets that may be supported, that is, the type of binary package that Xcode compiles is ultimately generated from these types, and the package that compiles which instruction set is determined by the intersection of architectures and valid architectures.

3.Build Active Architecuture only

Specifies whether to compile only the set of instructions supported by the current connected device

When the value is set to Yes, the compilation is faster for debug, it compiles only the current version of architecture, and all versions are compiled when set to No. Therefore, the general debug when you can choose to set the time to Yes,release to no, to adapt to different devices.

Example

For example, the supported arm instruction set version of the valid architectures set is: ARMv7, armv7s, arm64, support arm instruction set version architectures for corresponding armv7s settings, At this point, Xcode will only generate a binary package of the armv7s instruction set.

Note: Valid architectures settings, the default is standard architectures (ARMV7, arm64), if you want to change, can be changed in other

Using the standard architecutres (including 64-bit) (armv7,arm64) parameter, the package contains 32-bit, 64-bit, two-part code, under IPHONE5S (IPhone5S CPU is 64-bit), Would prefer to run a 64-bit code package, the remaining 32-bit iphone can only run 32-bit packages, but contains two schemas for the code package, only running on systems above IOS6.

and usingStandard Architectures (armv7,armv7s)Parameters, the package is only 32-bit code, IPHONE5S CPU is 64 bits, but can be compatible with 32-bit code, that is, you can run 32-bit code. However, this can degrade the performance of iphone5s. The rest of the iphone has no problem with the 32-bit code pack, and the 32-bit code pack has almost no limitations on the system.

Armv7,armv7s,arm64,i386,x86_64 in iOS

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.