Update 16pro.yml
This commit is contained in:
+10
-22
@@ -1,34 +1,22 @@
|
|||||||
name: Use Xcode 16.2 and Reproduce Simulator Issue
|
name: Reproduce Fastlane Simulator Bug
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-xcode-16_2:
|
test-fastlane:
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Switch to Xcode 16.2
|
- name: 🛠 Set up Xcode 16.2
|
||||||
run: |
|
run: |
|
||||||
sudo xcode-select -s /Applications/Xcode_16.2.app
|
sudo xcode-select -s /Applications/Xcode_16.2.app
|
||||||
xcodebuild -version
|
xcodebuild -version
|
||||||
|
|
||||||
- name: List all available simulators
|
- name: 📱 List Simulators
|
||||||
|
run: xcrun simctl list devices
|
||||||
|
|
||||||
|
- name: 🚀 Run Fastlane Scan on iPhone 16 Pro
|
||||||
run: |
|
run: |
|
||||||
echo "Available simulators:"
|
which bundle || gem install bundler
|
||||||
xcrun simctl list devices
|
bundle install || gem install fastlane
|
||||||
|
fastlane run scan device:"iPhone 16 Pro"
|
||||||
- name: Find and boot iPhone 16 Pro simulator
|
|
||||||
run: |
|
|
||||||
echo "Searching for iPhone 16 Pro simulator..."
|
|
||||||
DEVICE_ID=$(xcrun simctl list devices | grep 'iPhone 16 Pro' | grep -v unavailable | awk -F '[()]' '{print $2}' | head -n 1)
|
|
||||||
echo "Found device ID: $DEVICE_ID"
|
|
||||||
|
|
||||||
if [ -z "$DEVICE_ID" ]; then
|
|
||||||
echo "❌ ERROR: Could not find iPhone 16 Pro simulator"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "✅ Booting simulator with ID $DEVICE_ID"
|
|
||||||
xcrun simctl boot "$DEVICE_ID" || echo "⚠️ Failed to boot, might already be booted"
|
|
||||||
xcrun simctl list | grep Booted
|
|
||||||
|
|||||||
Reference in New Issue
Block a user