Skip to content

Commit 90f5514

Browse files
committed
Add iOS CI and fix warning on iOS
1 parent 8d54e4e commit 90f5514

File tree

3 files changed

+55
-2
lines changed

3 files changed

+55
-2
lines changed

.github/workflows/ios.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: iOS
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
ios_test:
11+
name: Execute tests on iOS
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
include:
16+
- os: macos-13
17+
xcode-version: "15.0" # Swift 5.9.0
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Setup Xcode
22+
uses: maxim-lobanov/setup-xcode@v1
23+
with:
24+
xcode-version: ${{ matrix.xcode-version }}
25+
- name: Swift version
26+
run: swift --version
27+
- name: Build in release mode
28+
run: |
29+
xcodebuild build \
30+
-scheme OpenSwiftUI \
31+
-configuration Release \
32+
-sdk iphonesimulator \
33+
-destination "platform=iOS Simulator" \
34+
-derivedDataPath .build-release-iOS
35+
# OTHER_SWIFT_FLAGS="-warnings-as-errors" \ OpenCombine will emit warning in xcodebuild
36+
37+
# Test is currently not supported due to the link issue to PrivateFramework
38+
# - name: Build and run tests in release mode
39+
# run: |
40+
# xcodebuild build \
41+
# -scheme OpenSwiftUI \
42+
# -configuration Release \
43+
# -sdk iphonesimulator \
44+
# -destination "platform=iOS Simulator" \
45+
# -enableCodeCoverage YES \
46+
# OTHER_SWIFT_FLAGS="-warnings-as-errors" \
47+
# -derivedDataPath .build-test-debug

.spi.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
version: 1
22
builder:
33
configs:
4-
- documentation_targets: [OpenSwiftUI]
4+
- swift_version: 5.9
5+
documentation_targets: [OpenSwiftUI]
6+
customDocumentationParameters: [
7+
--source-service, github,
8+
--source-service-base-url, https://github.com/Kyle-Ye/OpenSwiftUI/blob/main,
9+
--checkout-path, .
10+
]

Sources/OpenSwiftUI/AppStructure/AppOrganization/TODO/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AppDelegate: UIResponder {
1616
@objc override init() {
1717
fallbackDelegate = nil
1818
super.init()
19-
guard let delegateBox = AppGraph.delegateBox else {
19+
guard let _ = AppGraph.delegateBox else {
2020
return
2121
}
2222
}

0 commit comments

Comments
 (0)