Skip to content

Commit 5a91508

Browse files
authored
Merge pull request #8733 from realm/tg/xcode-16.2
Update CI for Xcode 16.2
2 parents 5553cfd + 9c8bda3 commit 5a91508

File tree

10 files changed

+246
-183
lines changed

10 files changed

+246
-183
lines changed

.github/workflows/build-pr.yml

Lines changed: 117 additions & 81 deletions
Large diffs are not rendered by default.

.github/workflows/check-pr-title.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/master-push.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ on:
66
- "master"
77
- "release/**"
88
env:
9-
XCODE_VERSION: "['15.3', '15.4', '16', '16.1_beta_3']"
9+
XCODE_VERSION: "['15.3', '15.4', '16', '16.1', '16.2']"
1010
PLATFORM: "['ios', 'osx', 'watchos', 'tvos', 'catalyst', 'visionos']"
11-
RELEASE_VERSION: '15.4'
12-
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer
11+
RELEASE_VERSION: '16.2'
12+
DEVELOPER_DIR: /Applications/Xcode_16.2.app/Contents/Developer
1313
jobs:
1414
prepare:
1515
runs-on: ubuntu-latest
@@ -30,7 +30,7 @@ jobs:
3030
version="$(sed -n 's/^VERSION=\(.*\)$/\1/p' "${GITHUB_WORKSPACE}/dependencies.list")"
3131
echo "VERSION=$version" >> $GITHUB_OUTPUT
3232
build-docs:
33-
runs-on: macos-14
33+
runs-on: macos-15
3434
name: Package docs
3535
needs: prepare
3636
steps:
@@ -46,7 +46,7 @@ jobs:
4646
name: realm-docs
4747
path: docs/realm-docs.zip
4848
build-examples:
49-
runs-on: macos-14
49+
runs-on: macos-15
5050
name: Package examples
5151
needs: prepare
5252
steps:
@@ -77,9 +77,12 @@ jobs:
7777
- xcode-version: 16
7878
xcode-version-tag: '16.0'
7979
os: macos-15
80-
- xcode-version: 16.1_beta_3
80+
- xcode-version: 16.1
8181
xcode-version-tag: 16.1
8282
os: macos-15
83+
- xcode-version: 16.2
84+
xcode-version-tag: 16.2
85+
os: macos-15
8386
exclude:
8487
- platform: osx
8588
configuration: static
@@ -108,7 +111,7 @@ jobs:
108111
path: build.tar
109112
compression-level: 1
110113
package-release:
111-
runs-on: macos-14
114+
runs-on: macos-15
112115
name: Package release file
113116
needs: [build-product, prepare]
114117
steps:
@@ -135,7 +138,7 @@ jobs:
135138
name: test-release-package
136139
path: pkg/realm-swift-${{ needs.prepare.outputs.VERSION }}.zip
137140
test-package-examples:
138-
runs-on: macos-14
141+
runs-on: macos-15
139142
name: Test examples
140143
needs: [package-release, prepare]
141144
steps:
@@ -147,15 +150,15 @@ jobs:
147150
- name: Test examples
148151
run: sh -x build.sh release-test-examples
149152
test-ios-static:
150-
runs-on: macos-14
153+
runs-on: macos-15
151154
name: Run tests on iOS with configuration Static
152155
needs: package-release
153156
steps:
154157
- uses: actions/checkout@v4
155158
- name: Test ios static
156159
run: sh -x build.sh test-ios-static
157160
test-osx-static:
158-
runs-on: macos-14
161+
runs-on: macos-15
159162
name: Run tests on macOS
160163
needs: package-release
161164
steps:
@@ -165,7 +168,7 @@ jobs:
165168
export REALM_DISABLE_METADATA_ENCRYPTION=1
166169
sh -x build.sh test-osx
167170
test-installation:
168-
runs-on: macos-14
171+
runs-on: macos-15
169172
name: Run installation test
170173
needs: [package-release, prepare]
171174
env:
@@ -216,7 +219,9 @@ jobs:
216219
os: macos-14
217220
- xcode-version: 16
218221
os: macos-15
219-
- xcode-version: 16.1_beta_3
222+
- xcode-version: 16.1
223+
os: macos-15
224+
- xcode-version: 16.2
220225
os: macos-15
221226
env:
222227
PLATFORM: 'osx'

.github/workflows/publish-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Publish release
22
on: workflow_dispatch
33
env:
4-
XCODE_VERSION: "['15.3', '15.4', '16', '16.1_beta_3']"
5-
TEST_XCODE_VERSION: '16'
4+
XCODE_VERSION: "['15.3', '15.4', '16', '16.1', '16.2']"
5+
TEST_XCODE_VERSION: '16.2'
66
jobs:
77
prepare:
88
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
x.y.z Release notes (yyyy-MM-dd)
2+
=============================================================
3+
### Enhancements
4+
* Add prebuilt binaries for Xcode 16.2.
5+
6+
### Fixed
7+
* <How to hit and notice issue? what was the impact?> ([#????](https://github.com/realm/realm-swift/issues/????), since v?.?.?)
8+
* None.
9+
10+
<!-- ### Breaking Changes - ONLY INCLUDE FOR NEW MAJOR version -->
11+
12+
### Compatibility
13+
* Realm Studio: 15.0.0 or later.
14+
* APIs are backwards compatible with all previous releases in the 10.x.y series.
15+
* Carthage release for Swift is built with Xcode 16.2.0.
16+
* CocoaPods: 1.10 or later.
17+
* Xcode: 15.3.0-16.2.
18+
19+
### Internal
20+
* Upgraded realm-core from ? to ?
21+
122
10.54.1 Release notes (2024-10-22)
223
=============================================================
324
### Enhancements

Realm/ObjectServerTests/ClientResetTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class PBSClientResetTests: ClientResetTests {
281281

282282
let syncManager = self.app.syncManager
283283
syncManager.errorHandler = { error, _ in
284-
guard nil != error as? SyncError else {
284+
guard error is SyncError else {
285285
return XCTFail("Bad error type: \(error)")
286286
}
287287
XCTFail("Expected the syncManager.ErrorHandler to not be called")

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ plist_get() {
235235

236236
iphone_name() {
237237
if (( $(xcode_version_major) < 16 )); then
238-
echo 'iPhone 14'
238+
echo 'iPhone 15'
239239
else
240240
echo 'iPhone 16'
241241
fi
@@ -1167,9 +1167,9 @@ x.y.z Release notes (yyyy-MM-dd)
11671167
### Compatibility
11681168
* Realm Studio: 15.0.0 or later.
11691169
* APIs are backwards compatible with all previous releases in the 10.x.y series.
1170-
* Carthage release for Swift is built with Xcode 16.0.0.
1170+
* Carthage release for Swift is built with Xcode 16.2.0.
11711171
* CocoaPods: 1.10 or later.
1172-
* Xcode: 15.3.0-16.1 beta.
1172+
* Xcode: 15.3.0-16.2.
11731173
11741174
### Internal
11751175
* Upgraded realm-core from ? to ?

0 commit comments

Comments
 (0)