Xcode armv6 armv7 armv7s arm64 Instruction Set

Source: Internet
Author: User

Shimen the main contribution, respect the work of the author, please do not reprint.

If the article is helpful to you, you are welcome to donate to the author, support the Shimen, donate the amount at random, ^_^

I want to donate: Click Donate

Cocos2d-x source Download: Dot I teleport


before each version of the IPA package is out of the 20M, and later do not know from which version rather basketball package will be nearly 40M each time, but there is no significant increase in the project of third-party classes or pictures , static files. So began a variety of slimming program: Compress the picture, delete unnecessary static library. After making a change, we found that the package is only 1M smaller than the original, and it has little effect.

is actually armv6 armv7 armv7s arm64 caused by the doubling of the compilation of the problem, try it, sure enough IPA package back to the previous size.

Let's take a look at this instruction set for iOS:

There are currently several instruction sets for iOS:

  • ARMv6
      • Iphone
      • IPhone2
      • Iphone3g
      • First generation and second generation ipod Touch
  • < Span style= "color:black; Background-color:rgb (153,255,153) ">armv7 UL style= "margin:0px 0px 15px; padding:0px 0px 0px 30px; border:0px; Font-style:inherit; Vertical-align:baseline ">
  • iphone4
  • iphone4s
  • < Span style= "font-family:kaiti_gb2312; font-size:18px ">armv7 s
    • iphone5
    • iphone5c
  • < Span style= "LINE-HEIGHT:21PX; Color:black; Background-color:rgb (255,255,102) ">arm64 UL style= "margin:0px 0px 15px; padding:0px 0px 0px 30px; border:0px; Font-style:inherit; Vertical-align:baseline ">
  • iphone5s

The machine's support for the instruction set is backwards compatible, so the armv7 instruction set can be run in iphone5s, but not as efficient as it is.

Inside the Xcodetargets architectures:


Architecture: Refers to the set of instructions you want to support.

Valid architectures: Refers to the set of instructions that will be compiled.

Build Active Architecture only: Compiles only the currently applicable instruction set.

4S users are still quite a lot, and machines like Iphone3 are almost gone, so our instruction set must be based on armv7 minimum.

Therefore, the value of architecture is selected:armv7 armv7s arm64

PS: Minimum support required when selecting arm64 5.1.1:

Convert Your App to a 64-bit Binary after Updating It for IOS 7

xcode 5.0.1 can build your app with both 32-bit and 64-bit binaries included. This combined binary requires a minimum deployment target of IOS 5.1.1 or later. The 64-bit binary runs only on 64-bit devices running IOS 7.0.3 and later. If you have a existing app, you should first update your app for IOS 7 and then port it to run on 64-bit processors. By updating it first for IOS 7, you can remove deprecated code paths and use modern practices. If you ' re creating a new app, target IOS 7 and compile 32-bit and 64-bit versions of your app.

the Architecture for 64-bit apps on IOS is almost identical to the architecture for OS X apps, making it easy to create a common code base that runs in both opera Ting Systems. Converting a Cocoa Touch app to 64-bit follows a similar transition process as the one for Cocoa apps on OS X. Pointers an D Some common C types change from + bits to + bits. Code that relies on The nsinteger  and  cgfloat  types needs to be carefully examined.

Start by building the app for the 64-bit runtime, fixing to warnings that occur as well as searching your code for SPECIF IC 64-bit issues. For example:

  • Make sure all function calls has a proper prototype.

  • Avoid truncating 64-bit values by accidentally assigning them to a 32-bit data type.

  • Ensure that calculations is performed correctly in the 64-bit version of the Your app.

  • Create data structures whose layouts is identical in the 32-bit and 64-bit versions of your apps (such as when you write a Data file to ICloud).

1, if you want your app to be able to run most efficiently on each machine, you need to change build Active Architecture only to No,valid architectures select the corresponding instruction set:armv7 armv7s arm64. This will compile the corresponding code for each instruction set, so the final IPA volume is roughly 3 times times, and the release version must be No.

2, if you want to keep the app volume is minimal, then the current stage should choose valid architectures as armv7, so build Active Architecture only Select Yes or no does not matter

Now, the official submission app must support 64-bit.

Shimen the main contribution, respect the work of the author, please do not reprint.

If the article is helpful to you, you are welcome to donate to the author, support the Shimen, donate the amount at random, ^_^

I want to donate: Click Donate

Cocos2d-x source Download: Dot I teleport

Xcode armv6 armv7 armv7s arm64 Instruction Set

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.