Skip to content

Commit

Permalink
Update release packaging for Xcode 15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoyne committed Jan 9, 2024
1 parent 72a0e6a commit bc11efc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
x.y.z Release notes (yyyy-MM-dd)
=============================================================
### Enhancements
* None.
* Update release packaging for Xcode 15.2. Prebuilt binaries for 14.1 and 15.0
have now been dropped from the release package.

### Fixed
* <How to hit and notice issue? what was the impact?> ([#????](https://github.com/realm/realm-swift/issues/????), since v?.?.?)
Expand All @@ -12,9 +13,9 @@ x.y.z Release notes (yyyy-MM-dd)
### Compatibility
* Realm Studio: 14.0.1 or later.
* APIs are backwards compatible with all previous releases in the 10.x.y series.
* Carthage release for Swift is built with Xcode 15.1.0.
* Carthage release for Swift is built with Xcode 15.2.0.
* CocoaPods: 1.10 or later.
* Xcode: 14.1-15.1.0.
* Xcode: 14.2-15.2.0.

### Internal
* Upgraded realm-core from ? to ?
Expand Down
11 changes: 6 additions & 5 deletions Jenkinsfile.releasability
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
xcodeVersions = ['14.1', '14.2', '14.3.1', '15.0', '15.1']
xcodeVersions = ['14.2', '14.3.1', '15.1', '15.2']
platforms = ['osx', 'ios', 'watchos', 'tvos', 'catalyst']
platformNames = ['osx': 'macOS', 'ios': 'iOS', 'watchos': 'watchOS', 'tvos': 'tvOS', 'catalyst': 'Catalyst', 'visionos': 'visionOS']
docsXcodeVersion = '14.3.1'
Expand Down Expand Up @@ -121,7 +121,7 @@ def doBuild() {
parallelBuilds["${platformName} ${xcodeVersion}"] = buildPlatform(platform, xcodeVersion)
}
}
// parallelBuilds["visionOS 15.2"] = buildPlatform('visionos', '15.2')
parallelBuilds["visionOS 15.2"] = buildPlatform('visionos', '15.2')

parallel parallelBuilds
}
Expand All @@ -135,12 +135,12 @@ def doBuild() {
unstash "${platform}-${xcodeVersion}"
}
}
// unstash 'visionos-15.2'
unstash 'visionos-15.2'

unstash 'examples'
unstash 'build-scripts'

withEnv(['DEVELOPER_DIR=/Applications/Xcode-15.1.app/Contents/Developer']) {
withEnv(['DEVELOPER_DIR=/Applications/Xcode-15.2.app/Contents/Developer']) {
sh './build.sh package-release'
}

Expand Down Expand Up @@ -181,11 +181,12 @@ def doBuild() {
},

'Test macOS': {
node('osx') {
node('macos_13') {
deleteDir()
unstash 'source'
sh '''
export REALM_DISABLE_METADATA_ENCRYPTION=1
export REALM_XCODE_VERSION=15.2
sh build.sh test-osx
'''
}
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1138,9 +1138,9 @@ x.y.z Release notes (yyyy-MM-dd)
### Compatibility
* Realm Studio: 14.0.1 or later.
* APIs are backwards compatible with all previous releases in the 10.x.y series.
* Carthage release for Swift is built with Xcode 15.1.0.
* Carthage release for Swift is built with Xcode 15.2.0.
* CocoaPods: 1.10 or later.
* Xcode: 14.1-15.1.0.
* Xcode: 14.2-15.2.0.
### Internal
* Upgraded realm-core from ? to ?
Expand Down
3 changes: 0 additions & 3 deletions scripts/create-release-package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ def zip(name, *files)
end
end

# Our normal Xcode 15 xcframework includes visionOS slices build with a beta
# version of Xcode, but Carthage doesn't like that so we have to build a
# separate xcframework without visionOS
puts 'Creating Carthage release zip'
Dir.mktmpdir do |tmp|
tmp = File.realpath tmp
Expand Down
2 changes: 1 addition & 1 deletion scripts/package_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def replace_framework(example, framework, path)
"examples/tvos/swift",
]

xcode_versions = %w(14.1 14.2 14.3.1 15.0 15.1)
xcode_versions = %w(14.2 14.3.1 15.1 15.2)

# Remove reference to Realm.xcodeproj from all example workspaces.
base_examples.each do |example|
Expand Down

0 comments on commit bc11efc

Please sign in to comment.