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
- this code will build for iOS 10.2 on an iPhone 6
XCODE_SCHEMEis the project scheme
XCODE_PROJECTis the path to the project
Find more detail at:
stackoverflowBuild and run an app on simulator using xcodebuild
developer.apple.comBuilding 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.