Xcode构建目标差异-arm64和armv7,arm64 [英] Xcode build target difference - arm64 and armv7, arm64

查看:128
本文介绍了Xcode构建目标差异-arm64和armv7,arm64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这周我在Xcode上为2个不同的应用程序创建了2个新项目.由于某种原因,项目之一始终无法针对设备目标进行编译.然后,我意识到这两个项目的设备目标是不同的.对于工作项目任何iOS项目(arm64)",无法生成的项目具有任何iOS项目(armv7,arm64)"

什么导致设备目标改变这种方式?有什么区别?

解决方案

armv7 是早期iOS版本

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?

解决方案

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:

这篇关于Xcode构建目标差异-arm64和armv7,arm64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆