Skip to content

Commit e5925d6

Browse files
authored
Update 16pro.yml
1 parent e1eee13 commit e5925d6

File tree

1 file changed

+32
-46
lines changed

1 file changed

+32
-46
lines changed

.github/workflows/16pro.yml

Lines changed: 32 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,45 @@
1-
name: Reproduce iPhone 16 Pro Emulator Issue
1+
name: Reproduce iPhone 16 Pro Fastlane Issue
22

3-
on: workflow_dispatch # Or any other trigger
3+
on:
4+
workflow_dispatch:
45

56
jobs:
6-
test_simulator:
7-
runs-on: macos-14 # Specify the problematic image
7+
reproduce:
8+
runs-on: macos-14
89

910
steps:
10-
- name: Checkout Repository
11+
- name: Checkout repository
1112
uses: actions/checkout@v4
1213

13-
- name: Set up Xcode 16.2
14-
run: |
15-
sudo xcode-select -s /Applications/Xcode_16.2.app # Assuming Xcode 16.2 is pre-installed in the image
16-
xcodebuild -version
14+
- name: Select Xcode 16.2
15+
run: sudo xcode-select -s /Applications/Xcode_16.2.app
1716

18-
- name: List Available Simulators (Confirm Presence)
19-
run: xcrun simctl list devices
17+
- name: Confirm Xcode version
18+
run: xcodebuild -version
2019

21-
- name: Set up Ruby and Bundler
22-
run: |
23-
brew install ruby # Or your preferred Ruby installation method
24-
gem install bundler -NV
20+
- name: Install Fastlane
21+
run: sudo gem install fastlane
2522

26-
- name: Create Gemfile and Install Fastlane
23+
- name: Set up dummy Fastlane project
2724
run: |
28-
mkdir -p fastlane
29-
cd fastlane
30-
cat > Gemfile <<EOF
31-
source "https://rubygems.org"
32-
33-
gem "fastlane"
34-
EOF
35-
bundle install
36-
37-
- name: Create Minimal Xcode Project
38-
run: |
39-
cd fastlane
40-
mkdir DummyProject
41-
cd DummyProject
42-
xcodebuild -create-file -name DummyProject.xcodeproj
25+
mkdir -p testfastlane/fastlane
26+
cd testfastlane
27+
28+
echo "default_platform(:ios)" > fastlane/Fastfile
29+
echo "" >> fastlane/Fastfile
30+
echo "platform :ios do" >> fastlane/Fastfile
31+
echo " lane :scan_sim do" >> fastlane/Fastfile
32+
echo " scan(" >> fastlane/Fastfile
33+
echo " scheme: \"DummyScheme\"," >> fastlane/Fastfile
34+
echo " device: \"iPhone 16 Pro\"" >> fastlane/Fastfile
35+
echo " )" >> fastlane/Fastfile
36+
echo " end" >> fastlane/Fastfile
37+
echo "end" >> fastlane/Fastfile
38+
39+
- name: List available simulators
40+
run: xcrun simctl list devices
4341

44-
- name: Create Minimal Fastfile
42+
- name: Run Fastlane scan
4543
run: |
46-
cd fastlane
47-
cat > Fastfile <<EOF
48-
default_platform(:ios)
49-
50-
platform :ios do
51-
desc "Run tests"
52-
lane :scan_test do
53-
scan(device: "iPhone 16 Pro", project: "DummyProject/DummyProject.xcodeproj")
54-
end
55-
end
56-
EOF
57-
58-
- name: Attempt to Run Fastlane Scan (Reproduce Original Error)
59-
run: cd fastlane && bundle exec fastlane scan_test || true # Allow the step to fail and show the error
44+
cd testfastlane
45+
fastlane scan_sim

0 commit comments

Comments
 (0)