Xcode build target difference - arm64 and armv7, arm64

浪尽此生 提交于 2021-02-17 04:54:23

问题


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?


回答1:


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:



来源:https://stackoverflow.com/questions/63623747/xcode-build-target-difference-arm64-and-armv7-arm64

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!