error: module was created for incompatible target arm64-apple-ios8.0
Solution 1
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.
It's necessary to exclude arm64 for simulator architecture in the scheme with the problem, in my case, appetize
Solution 2
I use Carthage (with the Xcode12 workaround) and I solved it with NPE's answer.
I added the arm64 to the Project's Build Settings not the Targets
NullPointerException
Updated on July 21, 2022Comments
-
NullPointerException almost 2 years
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
-
Rubaiyat Jahan Mumu over 3 yearsI tried almost everything on that solution. But nothing solved my problem. can you be a little more specific about the solution?
-
NullPointerException over 3 years@RubaiyatJahanMumu I simply search the scheme that gives me the problem, and excluded arm64 from that scheme, as shown in the linked answer I added in my own answer