Update iOS Xcode prerequisite checks

This commit is contained in:
Mikhail Kilin
2026-05-20 16:14:17 +03:00
parent e5d0f2c064
commit 6576a37198
5 changed files with 29 additions and 8 deletions

13
scripts/check-ios-prereqs.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ -z "${DEVELOPER_DIR:-}" && -d /Applications/Xcode.app/Contents/Developer ]]; then
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
fi
printf 'Developer dir: %s\n' "${DEVELOPER_DIR:-$(xcode-select -p 2>/dev/null || true)}"
xcodebuild -version
xcrun simctl list devices available
swift --version
printf 'iOS prerequisites are available.\n'