build.sh (421B)
1 #!/bin/bash 2 set -euo pipefail 3 4 source "$(dirname "${BASH_SOURCE[0]}")/select-simulator.sh" 5 select_simulator "${1:-26}" 6 7 if command -v xcode-build-server &>/dev/null; then 8 xcode-build-server config -scheme "Crossmate" -project "Crossmate.xcodeproj" 9 fi 10 11 echo "Using ${DEVICE}, iOS ${RUNTIME}" 12 xcodebuild build \ 13 -scheme "Crossmate" \ 14 -destination "platform=iOS Simulator,name=${DEVICE},OS=${DESTINATION_OS}" \ 15 2>&1