devicekit / DeviceKit

DeviceKit is a value-type replacement of UIDevice.
MIT License
4.42k stars 430 forks source link

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

Closed psaezcube closed 1 year ago

psaezcube commented 3 years ago

Hi

When I try to generate an .app bundle (representing a iOS Simulator build of your app) for uploading to Appetize ( https://support.appetize.io/help/how-to-upload-an-app-to-appetize-io ), using Xcode, it works perfectly if i press the Build & Run button and open the app in a Simulator, but when I try to generate it with command line xcodebuild command I'm getting this crash:

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

This is the command for getting the crash:

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

I use Xcode 12, with last command tools and last version of DeviceKit, 4.1.0, from cocoapods 1.9.3

PD: this worked perfectly before updating to XCode 12 and cocoapods 1.9.3, when I was using XCode 11.X and cocoapods 1.9.1

psaezcube commented 3 years ago

Solved using this: https://stackoverflow.com/questions/63607158/xcode-12-building-for-ios-simulator-but-linking-in-object-file-built-for-ios/63955114#63955114