Skip to content

Commit fc83271

Browse files
committed
update swift
1 parent 5ec0aa1 commit fc83271

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ let package = Package(
3636
// .binaryTarget(name: "lniFFI", path: "bindings/swift/lniFFI.xcframework")
3737
.binaryTarget(
3838
name: "lniFFI",
39-
url: "https://github.com/lightning-node-interface/lni/releases/download/v0.1.0/lniFFI.xcframework.zip",
40-
checksum: "48d3aaf62bb2cd36924948d6afdbc53107280aa908173693885b6b43d4a2429a"
39+
url: "https://github.com/lightning-node-interface/lni/releases/download/v0.1.1/lniFFI.xcframework.zip",
40+
checksum: "f02f262261524e0dac11bb0560be8526f482e27d7f4f87be532f4ba74aa38c2c"
4141
)
4242
]
4343
)

bindings/swift/build.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,14 @@ if [ "$BUILD_IOS" = true ]; then
171171
-output "$XCFRAMEWORK_DIR"
172172

173173
echo " Created $XCFRAMEWORK_DIR"
174+
175+
# Fix modulemap naming to avoid conflicts with other xcframeworks
176+
find "$XCFRAMEWORK_DIR" -name "module.modulemap" -exec sh -c 'mv "$1" "$(dirname "$1")/lniFFI.modulemap"' _ {} \;
177+
echo " Renamed module.modulemap to lniFFI.modulemap"
178+
174179
echo ""
175180
echo "XCFramework created successfully!"
176-
181+
177182
# Package for release if requested
178183
if [ "$PACKAGE_RELEASE" = true ]; then
179184
echo ""
@@ -210,7 +215,7 @@ if [ "$BUILD_IOS" = true ]; then
210215
echo " - Checksum: $CHECKSUM"
211216
echo ""
212217
echo "Next steps:"
213-
echo " 1. Create a GitHub release with the desired version tag"
218+
echo " 1. Create a GitHub release with the desired version tag" like `gh release create v0.1.1 lniFFI.xcframework.zip --title "v0.1.1" --notes "Initial release"`
214219
echo " 2. Upload lniFFI.xcframework.zip to the release"
215220
echo " 3. Update the version in Package.swift URL if needed"
216221

0 commit comments

Comments
 (0)