Skip to content

Commit f8dcbe7

Browse files
committed
Fix the iOS simulator issue
1 parent e01537f commit f8dcbe7

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/pull-request.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,16 @@ jobs:
110110
with:
111111
xcode-version: 16.3
112112

113+
- name: Setup iOS Simulator
114+
uses: futureware-tech/simulator-action@v4
115+
id: simulator
116+
with:
117+
model: iPhone 16
118+
os: iOS
119+
os_version: ">=18.0"
120+
wait_for_boot: true
121+
shutdown_after_job: true
122+
113123
- name: Install node modules
114124
run: yarn install
115125

@@ -133,7 +143,7 @@ jobs:
133143
set -o pipefail && xcodebuild -workspace MParticleSample.xcworkspace \
134144
-configuration Debug \
135145
-scheme MParticleSample \
136-
-destination 'platform=iOS Simulator,name=iPhone 16' \
146+
-destination 'id=${{ steps.simulator.outputs.udid }}' \
137147
-derivedDataPath ios/build \
138148
-UseModernBuildSystem=YES \
139149
build | bundle exec xcpretty -k

0 commit comments

Comments
 (0)