Skip to content

tasks: update swift bindings package#695

Merged
cdecker merged 2 commits intoBlockstream:mainfrom
lvaccaro:swift-updates
Apr 8, 2026
Merged

tasks: update swift bindings package#695
cdecker merged 2 commits intoBlockstream:mainfrom
lvaccaro:swift-updates

Conversation

@lvaccaro
Copy link
Copy Markdown
Member

@lvaccaro lvaccaro commented Apr 8, 2026

Hi, Some minor updated on building bindings for swift:

  1. Update uniffi build command
  2. Prepend umbrella label in `modulemap file: fix associate the header with the explicit unique module name
  3. Replace lipo-ios-sim with aarch64-apple-ios-sim if no more support for legacy ios simulator, commented
    # - ios-apple-x86_64

Alternatively, in order to support the legacy ios simulator platform, xcode requires to merge both ios platforms with lipo and then pass the result in xcodebuild -create-xcframework as defined in

- xcodebuild -create-xcframework -library target/lipo-ios-sim/release/libglsdk.a -headers target/swift/include -library target/aarch64-apple-ios/release/libglsdk.a -headers target/swift/include -output target/glsdkFFI.xcframework

To build the legacy ios simulator platform and merged ios sim library together, see the commented code:

  ios-sim:
    deps:
      - ios-sim-apple-aarch64
#      - ios-apple-x86_64
#   cmds:
#      - mkdir -p target/lipo-ios-sim/release
#      - lipo -create target/aarch64-apple-ios-sim/release/libglsdk.a target/x86_64-apple-ios/release/libglsdk.a -output target/lipo-ios-sim/release/libglsdk.a

lvaccaro added 2 commits April 8, 2026 04:08
Signed-off-by: Luca Vaccaro <me@lvaccaro.com>
Signed-off-by: Luca Vaccaro <me@lvaccaro.com>
@cdecker
Copy link
Copy Markdown
Collaborator

cdecker commented Apr 8, 2026

Thank you 🙏
Can you tell I don't know much about the iOS and Swift ecosystems? 😅

@cdecker cdecker merged commit 4256ffc into Blockstream:main Apr 8, 2026
16 checks passed
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.

2 participants