Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .github/workflows/build-xcframework-variant-slices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,8 @@ jobs:
steps:
- uses: actions/checkout@v4

# We have to compile on Xcode 15.2 because compiling on Xcode 15.4 fails with
# Data+SentryTracing.swift:21:62: error: 'ReadingOptions' aliases 'Foundation.ReadingOptions'
# and cannot be used here because C++ types from imported module 'Foundation' do not support
# library evolution; this is an error in the Swift 6 language mode
# We also can't use Xcode 16.x because validating the XCFramework then fails with Xcode 15.x.
- run: ./scripts/ci-select-xcode.sh 15.2
# We can't use Xcode 16.x because validating the XCFramework then fails with Xcode 15.x.
- run: ./scripts/ci-select-xcode.sh 15.4
shell: bash

- name: Get version
Expand All @@ -98,9 +94,7 @@ jobs:

- name: Bump version
if: steps.cache-xcarchive.outputs.cache-hit != 'true'
run: |
./scripts/ci-select-xcode.sh 15.2
make bump-version TO=${{ env.VERSION }}
run: make bump-version TO=${{ env.VERSION }}

- name: Build ${{inputs.name}}${{inputs.suffix}} XCFramework slice for ${{matrix.sdk}}
if: steps.cache-xcarchive.outputs.cache-hit != 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// - url: The location on disk of the data to read.
/// - options: The mask specifying the options to use when reading the data. For more information, see ``NSData.ReadingOptions``.
/// - Note: See ``Data.init(contentsOf:options:)`` for more information.
init(contentsOfWithSentryTracing url: URL, options: Data.ReadingOptions = []) throws {
init(contentsOfWithSentryTracing url: URL, options: Foundation.Data.ReadingOptions = []) throws {

Check failure on line 21 in Sources/Swift/Integrations/Performance/IO/Data+SentryTracing.swift

View workflow job for this annotation

GitHub Actions / build-xcframework-variant-slices (Sentry, staticlib, sentry-static) / xrsimulator

'ReadingOptions' aliases 'Foundation.ReadingOptions' and cannot be used here because C++ types from imported module 'Foundation' do not support library evolution; this is an error in Swift 6

Check failure on line 21 in Sources/Swift/Integrations/Performance/IO/Data+SentryTracing.swift

View workflow job for this annotation

GitHub Actions / build-xcframework-variant-slices (Sentry, staticlib, sentry-static) / xrsimulator

'ReadingOptions' aliases 'Foundation.ReadingOptions' and cannot be used here because C++ types from imported module 'Foundation' do not support library evolution; this is an error in Swift 6
// Gets a tracker instance if the SDK is enabled, otherwise uses the original method.
let method = { (url: URL, options: Data.ReadingOptions) throws -> Data in
try Data(contentsOf: url, options: options)
Expand Down Expand Up @@ -49,7 +49,7 @@
/// - url: The location to write the data into.
/// - options: Options for writing the data. Default value is `[]`.
/// - Note: See ``Data.write(to:options:)`` for more information.
func writeWithSentryTracing(to url: URL, options: Data.WritingOptions = []) throws {
func writeWithSentryTracing(to url: URL, options: Foundation.Data.WritingOptions = []) throws {

Check failure on line 52 in Sources/Swift/Integrations/Performance/IO/Data+SentryTracing.swift

View workflow job for this annotation

GitHub Actions / build-xcframework-variant-slices (Sentry, staticlib, sentry-static) / xrsimulator

'WritingOptions' aliases 'Foundation.WritingOptions' and cannot be used here because C++ types from imported module 'Foundation' do not support library evolution; this is an error in Swift 6

Check failure on line 52 in Sources/Swift/Integrations/Performance/IO/Data+SentryTracing.swift

View workflow job for this annotation

GitHub Actions / build-xcframework-variant-slices (Sentry, staticlib, sentry-static) / xrsimulator

'WritingOptions' aliases 'Foundation.WritingOptions' and cannot be used here because C++ types from imported module 'Foundation' do not support library evolution; this is an error in Swift 6
// Gets a tracker instance if the SDK is enabled, otherwise uses the original method.
let method = { (data: Data, url: URL, options: Data.WritingOptions) throws in
try data.write(to: url, options: options)
Expand Down
Loading