|
1 |
| -name: Reproduce iPhone 16 Pro Emulator Issue |
| 1 | +name: Reproduce iPhone 16 Pro Fastlane Issue |
2 | 2 |
|
3 |
| -on: workflow_dispatch # Or any other trigger |
| 3 | +on: |
| 4 | + workflow_dispatch: |
4 | 5 |
|
5 | 6 | jobs:
|
6 |
| - test_simulator: |
7 |
| - runs-on: macos-14 # Specify the problematic image |
| 7 | + reproduce: |
| 8 | + runs-on: macos-14 |
8 | 9 |
|
9 | 10 | steps:
|
10 |
| - - name: Checkout Repository |
| 11 | + - name: Checkout repository |
11 | 12 | uses: actions/checkout@v4
|
12 | 13 |
|
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 |
17 | 16 |
|
18 |
| - - name: List Available Simulators (Confirm Presence) |
19 |
| - run: xcrun simctl list devices |
| 17 | + - name: Confirm Xcode version |
| 18 | + run: xcodebuild -version |
20 | 19 |
|
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 |
25 | 22 |
|
26 |
| - - name: Create Gemfile and Install Fastlane |
| 23 | + - name: Set up dummy Fastlane project |
27 | 24 | 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 |
43 | 41 |
|
44 |
| - - name: Create Minimal Fastfile |
| 42 | + - name: Run Fastlane scan |
45 | 43 | 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