iPad:文件是为armv7构建的,而不是被链接的架构(arm64) [英] iPad: file was built for armv7 which is not the architecture being linked (arm64)

查看:1170
本文介绍了iPad:文件是为armv7构建的,而不是被链接的架构(arm64)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用模拟器和旧的iPhone 4S开发我的应用程序。

I have been developing my app using Simulator and an old iPhone 4S.

我试图在iPad Mini 3上运行该应用程序,但是我收到此警告:

I tried to run the app on an iPad Mini 3, but I get this warning:

file was built for armv7 which is not the architecture being linked (arm64)

关于如何修复它的任何想法?

any idea on how to fix it?

编辑:

错误与UnitTest目标有关。
我删除了这样的目标(因为我没有进行单元测试)并且警告消失了。

The error was related to the UnitTest target. I deleted such target (as I am not doing unit tests) and the warning disappeared.

推荐答案

对于每个目标需要构建:

For each target that needs to be built:

转到构建设置>体系结构

Go to Build Settings > Architectures


  • 设置到 $(ARCHS_STANDARD)

  • Set to $(ARCHS_STANDARD)

转到构建设置>有效架构

Go to Build Settings > Valid Architectures


  • 设置为 arm64 armv7 armv7s

  • Set to arm64, armv7, armv7s

执行产品>清洁为安全而产品>构建您的iPad Mini 3项目。

Perform a Product > Clean just to be safe and Product > Build your project for the iPad Mini 3.

这篇关于iPad:文件是为armv7构建的,而不是被链接的架构(arm64)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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