Xctool and xcodebuild not found?

ios
xctool
xcodebuild

#1

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?


#2

Guh. Had to enable it as an OSX build and pay for that.

As a note, I understand that this is literally the first line in the docs, but that doesn’t seem to be the best place to put it given that most people will probably just scroll on down to the circle.yml.


#3