55

This seems to be a new option in newer XCode - instead of "armv6 armv7" under Valid architectures I now see "armv7 armv7s". What is armv7s and do I need to build for it as well as armv7?

Mr. Boy
  • 60,845
  • 93
  • 320
  • 589

3 Answers3

42

The iPhone 5 will ship with and only run iOS 6.0. To coincide with the launch of iOS 6.0, Apple has seeded developers with a newer version of its development tools. Xcode 4.5 makes two major changes: it drops support for the ARMv6 ISA (used by the ARM11 core in the iPhone 2G and iPhone 3G), keeps support for ARMv7 (used by modern ARM cores) and it adds support for a new architecture target designed to support the new A6 SoC: armv7s.

venkatKA
  • 2,399
  • 1
  • 18
  • 22
  • Is using armv7s required to support the new iPhone 5? Is there anyway to support armv6 and armv7s? – brynbodayle Sep 25 '12 at 18:28
  • Dropping hardware support is not usual. Xcode 4.5 doesn't support older iOs versions. You should be able to submit an updated binary with armv7 and armv7s. – venkatKA Sep 26 '12 at 00:28
  • 3
    The way I understand it armv7s is backward compatible with armv7, but including an armv7s slice might improve performance in some cases because the compiler can use the new instructions added in that instruction set (see http://www.primatelabs.com/blog/2012/09/apple-a6/). Whether these speed-ups are significant depends on the code being compiled (math-heavy libraries could see good gains). – Patrick Pijnappel Feb 18 '14 at 00:01
42

You do not have to build for armv7s to add support for the iPhone 5. The iPhone 5 can run armv7 compiled code as well. My app has just been submitted to the store and it is build on armv7 only and working perfect!

Ben Groot
  • 5,040
  • 3
  • 40
  • 47
  • Is this true? Isn't armv7s specifically there for the A6 processor, which runs in the iPhone 5? – jmstone617 Oct 05 '12 at 15:50
  • 2
    @jmstone Yes, we use some static libraries that are not yet compiled for armv7s so we disabled it for now. Works perfect on an iPhone 5. – Chris Wagner Oct 06 '12 at 00:31
2

armv7s is the architecture of the A6 processor in the iPhone 5. And yes, you need to include this as well. With the latest version of Xcode, support for armv6 is dropped.

marcelnijman
  • 586
  • 4
  • 10