Skip to content

bindings: Apple compliant framework distribution#148

Merged
RCasatta merged 3 commits intoBlockstream:masterfrom
lvaccaro:swift-updates
Apr 23, 2026
Merged

bindings: Apple compliant framework distribution#148
RCasatta merged 3 commits intoBlockstream:masterfrom
lvaccaro:swift-updates

Conversation

@lvaccaro
Copy link
Copy Markdown
Member

  • creating swift bindings
  • creating a wrapper project with xcodegen, instead maintain a full .xcproject
  • archiving both platforms
  • assembling the final xcframework

Signed-off-by: Luca Vaccaro <me@lvaccaro.com>
@LeoComandini
Copy link
Copy Markdown
Contributor

just-swift gh ci job failed with

      Running `target/debug/lwk_cli generate --library ./target/aarch64-apple-ios/release/liblwk.a --language swift --out-dir ./target/swift`
null
xcodegen generate --spec lwk_bindings/swift/project.yml
sh: xcodegen: command not found
error: Recipe `swift` failed on line 128 with exit code 12

@LeoComandini
Copy link
Copy Markdown
Contributor

with swift ci fixed lgtm

@LeoComandini
Copy link
Copy Markdown
Contributor

is

        - run: brew install xcodegen
        - run: just swift

enough?
@lvaccaro

@lvaccaro
Copy link
Copy Markdown
Member Author

right, it only needs xcodegen as in the Blockstream/lwk-swift#12

@LeoComandini
Copy link
Copy Markdown
Contributor

just swift still fails

https://github.com/Blockstream/lwk/actions/runs/24246432072/job/71098669740

Run nightstory/setup-xcodegen@v1
  
/Users/runner/work/_actions/nightstory/setup-xcodegen/v1/node_modules/@actions/cache/lib/internal/cacheHttpClient.js:81
            throw new Error(`Cache service responded with ${response.statusCode}`);
                  ^
Error: Cache service responded with 400
    at Object.<anonymous> (/Users/runner/work/_actions/nightstory/setup-xcodegen/v1/node_modules/@actions/cache/lib/internal/cacheHttpClient.js:81:19)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/runner/work/_actions/nightstory/setup-xcodegen/v1/node_modules/@actions/cache/lib/internal/cacheHttpClient.js:5:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v20.20.1

@LeoComandini
Copy link
Copy Markdown
Contributor

LeoComandini commented Apr 16, 2026

@lvaccaro can you please address the just swift CI failure?

Signed-off-by: Luca Vaccaro <me@lvaccaro.com>
Signed-off-by: Luca Vaccaro <me@lvaccaro.com>
@lvaccaro
Copy link
Copy Markdown
Member Author

just swift pass in 43bbb6b .

Note: I bump github ci to use macos-15 because xcodegen doesn't support legacy xcode version.

Copy link
Copy Markdown
Contributor

@RCasatta RCasatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 43bbb6b code review, checked just swift passed

@RCasatta RCasatta merged commit fd9db22 into Blockstream:master Apr 23, 2026
16 of 19 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.

3 participants