Turn your manual testers into automation experts! Request a DemoStart testRigor Free

How to compile an iOS app for Simulator

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 \
  build

Notes:

  • 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.