5DEVICE="${1:-iPhone 17 Pro}"
6BUNDLE_ID="com.skrepka.client"
7APP="bin/Debug/net10.0-ios/iossimulator-arm64/Skrepka.app"
9dotnet build Skrepka.fsproj -f net10.0-ios -r iossimulator-arm64
11UDID=$(xcrun simctl list devices available -j | python3 -c "
13devices = json.load(sys.stdin)['devices']
15for runtime, devs in devices.items():
17 if d['name'] == name and d['isAvailable']:
18 print(d['udid']); sys.exit()
19print('', end=''); sys.exit(1)
22if [ -z "$UDID" ]; then
23 echo "Simulator '$DEVICE' not found. Available:"
24 xcrun simctl list devices available | grep -i iphone
28xcrun simctl boot "$UDID" 2>/dev/null || true
30xcrun simctl install "$UDID" "$APP"
31xcrun simctl launch "$UDID" "$BUNDLE_ID"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list