I’ve literally copied the config from this page (to a degree): https://circleci.com/docs/ios-builds-on-os-x/#a-sample-circleyml
general:
build_dir: Test-App
machine:
xcode:
version: 8.0
test:
override:
- set -o pipefail && xcodebuild
CODE_SIGNING_REQUIRED=NO
CODE_SIGN_IDENTITY=
PROVISIONING_PROFILE=
-sdk iphonesimulator
-destination 'platform=iOS Simulator,OS=9.0,name=iPhone 6'
-workspace Test-App.xcworkspace
-scheme "My Scheme"
clean build test |
tee $CIRCLE_ARTIFACTS/xcode_raw.log |
xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/results.xml
Which yeilds:
set -o pipefail && xcodebuild CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= PROVISIONING_PROFILE= -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=9.0,name=iPhone 6' -workspace Test-App..xcworkspace -scheme "Test-App" clean build test | tee $CIRCLE_ARTIFACTS/xcode_raw.log | xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/results.xml
bash: line 1: xcpretty: command not found
bash: line 1: xcodebuild: command not found
And when I use xctool instead, also copied from here: https://circleci.com/docs/ios-builds-on-os-x/#build-commands
general:
build_dir: Test-App
machine:
xcode:
version: 8.0
test:
override:
- xctool
-reporter pretty
-reporter junit:$CIRCLE_TEST_REPORTS/xcode/results.xml
-reporter plain:$CIRCLE_ARTIFACTS/xctool.log
CODE_SIGNING_REQUIRED=NO
CODE_SIGN_IDENTITY=
PROVISIONING_PROFILE=
-destination 'platform=iOS Simulator,name=iPhone 6,OS=latest'
-sdk iphonesimulator
-workspace Test-App.xcworkspace
-scheme "Test-App"
build build-tests run-tests
I get this:
xctool -reporter pretty -reporter junit:$CIRCLE_TEST_REPORTS/xcode/results.xml -reporter plain:$CIRCLE_ARTIFACTS/xctool.log CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= PROVISIONING_PROFILE= -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' -sdk iphonesimulator -workspace Test-App.xcworkspace -scheme " Test-App" build build-tests run-tests
bash: line 1: xctool: command not found
Am I missing something here?