"You can’t open the application because it is not supported on this type of Mac." xcodebuild

3.5k Views Asked by At

When I try to build my xcode project using the following command:

xcodebuild -workspace "Converse.xcworkspace" -sch eme "Converse" -configuration “Debug” -sdk iphonesimulator7.1 -arch i386 ONLY_ ACTIVE_ARCH=NO

It builds fine, but when I try to double click on the app it generates, it says: You can’t open the application because it is not supported on this type of Mac. Does anyone know why this is happening?

2

There are 2 best solutions below

0
On BEST ANSWER

iOS apps need the simulator to run. You can just, as you said run them from Xcode. If you do not have the project then you need to deploy them like :

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication /Path/ToIso.app/AppName

0
On

Use Xcode, not xcodebuild, to run your app on the simulator.