Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode build target difference - arm64 and armv7, arm64

Tags:

xcode

ios

arm

I had created 2 new projects on Xcode this week for 2 different apps. For some reason one of the project always fails compiling for the device target. I then realized that the device target is different for both the project. For the working project "Any iOS Project (arm64)" The project which fails to build has "Any iOS Project (armv7, arm64)"

What causes the device target to change this way and what is the difference?

like image 686
user3570727 Avatar asked Oct 23 '25 16:10

user3570727


1 Answers

armv7 is 32bit architecture that was supported by earlier iOS versions up till 10.3.4. arm64 is 64bit architecture which is supported by newer devices.

If your project has minimum iOS version which is below iOS 11.0, Xcode will automatically pick both armv7 and arm64.

In case if Xcode does not pick the required architecture automatically, it can be added in build settings as shown below:

iOS target device architecture editing in Xcode build settings

like image 143
Eugene Dudnyk Avatar answered Oct 25 '25 09:10

Eugene Dudnyk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!