File tree Expand file tree Collapse file tree 1 file changed +26
-6
lines changed Expand file tree Collapse file tree 1 file changed +26
-6
lines changed Original file line number Diff line number Diff line change 1
- name : Reproduce Simulator Destination Error
1
+ name : Reproduce iOS Simulator Destination Error
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ inputs :
6
+ simulator_name :
7
+ description : " Simulator name (e.g., iPhone 16 Pro)"
8
+ required : true
9
+ default : " iPhone 16 Pro"
10
+ test_plan :
11
+ description : " Xcode test plan name"
12
+ required : true
13
+ default : " UnitTests"
5
14
6
15
jobs :
7
- test :
16
+ ios :
8
17
runs-on : macos-14
9
18
10
19
steps :
11
- - name : Set up dummy Xcode project
20
+ - name : Checkout Repository
21
+ uses : actions/checkout@v4
22
+
23
+ - name : Print Inputs
24
+ run : |
25
+ echo "Simulator name: ${{ github.event.inputs.simulator_name }}"
26
+ echo "Test Plan: ${{ github.event.inputs.test_plan }}"
27
+
28
+ - name : List Available Simulators
29
+ run : xcrun simctl list devices
30
+
31
+ - name : Create Dummy Project (to trigger simulator error)
12
32
run : |
13
33
mkdir DummyApp
14
34
cd DummyApp
15
- echo '' > main.swift
16
35
swift package init --type executable
17
36
swift package generate-xcodeproj
18
37
mv DummyApp.xcodeproj Test.xcodeproj
19
38
20
- - name : Try running tests on unavailable simulator
39
+ - name : Try xcodebuild with invalid simulator
21
40
run : |
22
41
xcodebuild -project Test.xcodeproj \
23
42
-scheme DummyApp \
24
- -destination 'platform=iOS Simulator,name=iPhone 16 Pro,OS=latest' \
43
+ -destination "platform=iOS Simulator,name=${{ github.event.inputs.simulator_name }},OS=latest" \
44
+ -testPlan ${{ github.event.inputs.test_plan }} \
25
45
build-for-testing
You can’t perform that action at this time.
0 commit comments