Skip to content

Commit b3ce03f

Browse files
authored
Update destination.yml
1 parent 5ba7da5 commit b3ce03f

File tree

1 file changed

+10
-31
lines changed

1 file changed

+10
-31
lines changed

.github/workflows/destination.yml

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,24 @@
1-
name: Reproduce iOS Simulator Destination Error
1+
name: Reproduce iOS Simulator Issue
22

33
on:
44
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"
145

156
jobs:
16-
ios:
7+
run-tests:
178
runs-on: macos-14
189

1910
steps:
20-
- name: Checkout Repository
11+
- name: Checkout repository
2112
uses: actions/checkout@v4
2213

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
2915
run: xcrun simctl list devices
3016

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
4018
run: |
4119
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

0 commit comments

Comments
 (0)