PulseCanvas / app · pulsecanvas.ai / scripts / build-visionos.sh
| 1 | #!/bin/bash |
| 2 | set -euo pipefail |
| 3 | cd "$(dirname "$0")/.." |
| 4 | sdk="${1:-xrsimulator}" |
| 5 | [[ "$sdk" == xros || "$sdk" == xrsimulator ]] || { echo 'Usage: scripts/build-visionos.sh [xros|xrsimulator]' >&2; exit 1; } |
| 6 | python3 scripts/generate-vision-project.py |
| 7 | destination='generic/platform=visionOS Simulator' |
| 8 | [[ "$sdk" != xros ]] || destination='generic/platform=visionOS' |
| 9 | xcodebuild -project PulseCanvasVision.xcodeproj -scheme PulseCanvasVision -configuration Release \ |
| 10 | -sdk "$sdk" -destination "$destination" -derivedDataPath ".build/vision-$sdk" \ |
| 11 | CODE_SIGNING_ALLOWED=NO build |