How to compile an iOS app for Simulator

Sep 25, 2017

To build an iOS app for Simulator in the command line you need Xcode Command Line tools installed as described here.

Once installed, you can use the following command in the terminal:

xcrun xcodebuild \
  -scheme $XCODE_SCHEME \
  -project $XCODE_PROJECT \
  -configuration Debug \
  -destination 'platform=iOS Simulator,name=iPhone 6,OS=10.2,arch=x86_64' \
  -derivedDataPath \


  • this code will build for iOS 10.2 on an iPhone 6
  • XCODE_SCHEME is the project scheme
  • XCODE_PROJECT is the path to the project

Find more detail at:

TestRigor runs iOS 10.2 or later, which requires an app to be compiled for 64-bit architecture.

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.