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

瘦欲@ 提交于 2021-01-28 02:23:42

问题


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

This is the command for generating the .app bundle:

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

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):

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


回答1:


Finally I solved the problem using this approach:

Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

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

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



来源:https://stackoverflow.com/questions/64036180/error-module-was-created-for-incompatible-target-arm64-apple-ios8-0

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