错误:模块是为不兼容的目标arm64-apple-ios8.0创建的 [英] error: module was created for incompatible target arm64-apple-ios8.0

查看:111
本文介绍了错误:模块是为不兼容的目标arm64-apple-ios8.0创建的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个名为Appetize的网站,需要一个.app捆绑包(您的应用程序的iOS模拟器构建),以便在在线模拟器中显示您的应用程序.

There is a website called Appetize that needs an .app bundle (a iOS Simulator build of your app) for displaying your app in a online simulator.

以下是所需应用程序包的指南:

Here is the guide of the app bundle required: https://support.appetize.io/help/how-to-upload-an-app-to-appetize-io

这是用于生成.app捆绑包的命令:

This is the command for generating the .app bundle:

xcodebuild -sdk iphonesimulator -workspace Project.xcworkspace -scheme Appetize -configuration Debug

当您按下Build&Xcode中的运行"按钮并在Simulator中打开应用程序,它可以正常运行,但是,如果您尝试在命令行中使用xcodebuild生成用于Appetize的.app捆绑包,则会发生此崩溃(这与Xcode 11完美结合​​,但更新为Xcode12和最后一个cocoapods 1.9.3,出现了问题):

When you press the Build & Run button in Xcode and open the app in a Simulator, it works perfectly, but if you try to generate an .app bundle for Appetize with xcodebuild in command line, you get this crash (This worked perfectly with Xcode 11, but after updating to Xcode12 and last cocoapods 1.9.3, the problem has appeared):

错误:为不兼容的目标创建了模块"DeviceKit"arm64-apple-ios8.0

error: module 'DeviceKit' was created for incompatible target arm64-apple-ios8.0

推荐答案

最后,我使用这种方法解决了这个问题:

Finally I solved the problem using this approach:

在那篇文章中,他们并没有发生相同的崩溃,但是其中一些发布的解决方案在这里也适用.

In that post they don't have the same crash, but some of the solutions posted works here too.

有计划的情况下,有必要在方案中将arm64排除在模拟器架构之外

It's necessary to exclude arm64 for simulator architecture in the scheme with the problem, in my case, appetize

这篇关于错误:模块是为不兼容的目标arm64-apple-ios8.0创建的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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