Skip to content

Add a Mac Catalyst XCFramework slice#14

Open
ReessKennedy wants to merge 2 commits into
tursodatabase:mainfrom
ReessKennedy:codex/mac-catalyst-xcframework-slice
Open

Add a Mac Catalyst XCFramework slice#14
ReessKennedy wants to merge 2 commits into
tursodatabase:mainfrom
ReessKennedy:codex/mac-catalyst-xcframework-slice

Conversation

@ReessKennedy

Copy link
Copy Markdown

What changed

This adds a Mac Catalyst slice to Sources/CLibsql/CLibsql.xcframework and updates the packaging metadata to advertise it as a single ios-arm64_x86_64-maccatalyst library definition.

It also updates the local Sources/CLibsql/build.sh helper toward the same goal by documenting the Catalyst-specific build path we used while validating the slice.

Why

libsql-swift already ships iOS, iOS Simulator, and macOS slices, but not a Mac Catalyst slice. In downstream testing, that prevented the package from being used in a Catalyst target even though the Swift layer itself was otherwise compatible.

Adding a Catalyst XCFramework slice makes the package resolvable from a Catalyst app target and unblocks basic runtime smoke tests there.

Impact

  • Catalyst consumers can link Libsql from a Mac Catalyst target.
  • Existing iOS, iOS Simulator, and macOS slices remain unchanged.
  • The XCFramework now exposes one unified Catalyst slice instead of separate per-arch Catalyst definitions.

Validation

  • built aarch64-apple-ios-macabi and x86_64-apple-ios-macabi static libraries
  • merged them into a universal Catalyst archive
  • updated XCFramework metadata to a single maccatalyst definition
  • resolved the package successfully from a separate SwiftUI harness project configured for Mac Catalyst

- add mac catalyst xcframework variants for arm64 and x86_64
- update CLibsql packaging metadata for maccatalyst
- add a helper build script path for catalyst slice generation
- replace duplicate per-arch catalyst entries with one universal catalyst slice
- update xcframework metadata to advertise a single maccatalyst library definition
@ReessKennedy ReessKennedy marked this pull request as ready for review May 24, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant