Download this file
| 1 | #!/bin/sh |
| 2 | set -eu |
| 3 | cd "$(dirname "$0")/.." |
| 4 | xcodegen generate --spec ios/project.yml |
| 5 | case "${1:-simulator}" in |
| 6 | simulator) xcodebuild -project ios/CalendarPhone.xcodeproj -scheme CalendarPhone -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -derivedDataPath build/ios CODE_SIGNING_ALLOWED=NO build ;; |
| 7 | device) : "${OFICINA_DEVELOPMENT_TEAM:?Set your Apple development team ID}" |
| 8 | xcodebuild -project ios/CalendarPhone.xcodeproj -scheme CalendarPhone -destination 'generic/platform=iOS' -derivedDataPath build/device "DEVELOPMENT_TEAM=$OFICINA_DEVELOPMENT_TEAM" -allowProvisioningUpdates build ;; |
| 9 | *) echo 'Use simulator or device' >&2; exit 2 ;; |
| 10 | esac |
| 11 | |