Do we need to compile iOS App for both "armv7" and "arm64" if my deployment target is 8.0?

arango_86 picture arango_86 · Feb 25, 2016 · Viewed 9.9k times · Source

My App supports from iOS8.0 and above. And I know that from iOS7 onwards its arm64 bit architecture. In that case do we need to compile the binary for both "armv7" and "arm64" slices?

If I compile for arm64 alone, I can reduce my App size. Is it a right way ?

Please help.

Answer

Vitaliy A picture Vitaliy A · Jun 24, 2018

Here you can find very easy to understand explanation of all iPhone and also Mac CPU architectures.

It helped me a lot when I decided to remove armv7 architecture from my supported architectures:

Choose carefully when excluding architectures. An application built with armv7 will run on all current iOS devices, even those that support newer architectures (it will run as 32-bit on iPhone 5S and later). But on the other hand, an app built without armv7 will not run on older devices such as the iPhone 4/4S or the original iPad mini.