Skip to content

Commit c764289

Browse files
Copilotfulldecent
andcommitted
Fix GitHub Actions to target iPhone platform instead of macOS
Co-authored-by: fulldecent <[email protected]>
1 parent b908695 commit c764289

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,14 @@ jobs:
1919
with:
2020
xcode-version: '15.4'
2121

22-
- name: Build for iOS
23-
run: swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios12.0-simulator"
22+
- name: Build and Test for iOS
23+
run: |
24+
# Build for iPhone Simulator using xcodebuild with Swift package
25+
xcodebuild -scheme FDWaveformView \
26+
-destination "platform=iOS Simulator,name=iPhone 15,OS=17.5" \
27+
clean build
28+
29+
# Run tests on iPhone Simulator
30+
xcodebuild -scheme FDWaveformView \
31+
-destination "platform=iOS Simulator,name=iPhone 15,OS=17.5" \
32+
test

0 commit comments

Comments
 (0)