Add iOS simulator launch scripts

This commit is contained in:
Mikhail Kilin
2026-05-20 22:26:53 +03:00
parent 6576a37198
commit 10f4c3a84b
7 changed files with 160 additions and 24 deletions

View File

@@ -15,15 +15,20 @@ cd apps/ios/TeleTuiIOS
swift run TeleTuiIOSSmokeTests
```
Simulator/device build is currently blocked until the Xcode license is accepted.
Xcode is installed at `/Applications/Xcode.app`, and `DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer xcodebuild -version` reports Xcode 26.5, but `xcrun simctl` fails with:
```text
You have not agreed to the Xcode license agreements. Please run 'sudo xcodebuild -license' from within a Terminal window to review and agree to the Xcode and Apple SDKs license.
```
After accepting the license, verify local iOS tooling with:
Verify local iOS tooling:
```bash
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer scripts/check-ios-prereqs.sh
```
Build the SwiftUI shell for iOS Simulator and package it as an installable `.app`:
```bash
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer scripts/build-ios-simulator-app.sh
```
Launch the fake-backed app in the first available iPhone simulator:
```bash
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer scripts/run-ios-simulator-app.sh
```