|
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 schemeXCODE_PROJECT
is the path to the project
Find more detail at:
stackoverflow
Build and run an app on simulator using xcodebuilddeveloper.apple.com
Building from the Command Line with Xcode FAQ
TestRigor runs iOS 10.2 or later, which requires an app to be compiled for 64-bit architecture.