File tree Expand file tree Collapse file tree 1 file changed +10
-31
lines changed Expand file tree Collapse file tree 1 file changed +10
-31
lines changed Original file line number Diff line number Diff line change 1
- name : Reproduce iOS Simulator Destination Error
1
+ name : Reproduce iOS Simulator Issue
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"
14
5
15
6
jobs :
16
- ios :
7
+ run-tests :
17
8
runs-on : macos-14
18
9
19
10
steps :
20
- - name : Checkout Repository
11
+ - name : Checkout repository
21
12
uses : actions/checkout@v4
22
13
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
14
+ - name : Show available simulators
29
15
run : xcrun simctl list devices
30
16
31
- - name : Create Dummy Project (to trigger simulator error)
32
- run : |
33
- mkdir DummyApp
34
- cd DummyApp
35
- swift package init --type executable
36
- swift package generate-xcodeproj
37
- mv DummyApp.xcodeproj Test.xcodeproj
38
-
39
- - name : Try xcodebuild with invalid simulator
17
+ - name : Build for testing with test plan
40
18
run : |
41
19
xcodebuild -project Test.xcodeproj \
42
- -scheme DummyApp \
43
- -destination "platform=iOS Simulator,name=${{ github.event.inputs.simulator_name }},OS=latest" \
44
- -testPlan ${{ github.event.inputs.test_plan }} \
45
- build-for-testing
20
+ -scheme DEV \
21
+ -destination 'platform=iOS Simulator,name=iPhone 16 Pro,OS=latest' \
22
+ -testPlan UnitTests \
23
+ build-for-testing \
24
+ -derivedDataPath build
You can’t perform that action at this time.
0 commit comments