diff --git a/Makefile b/Makefile index 143ea7444..eeacf7f1e 100644 --- a/Makefile +++ b/Makefile @@ -298,10 +298,20 @@ vendor: @$(call print, "Re-creating vendor directory.") rm -r vendor/; go mod vendor -ios: vendor mobile-rpc - @$(call print, "Building iOS framework ($(IOS_BUILD)).") +apple: vendor mobile-rpc + @$(call print, "Building iOS and macOS cxframework ($(IOS_BUILD)).") mkdir -p $(IOS_BUILD_DIR) - $(GOMOBILE_BIN) bind -target=ios -tags="mobile $(DEV_TAGS) autopilotrpc" $(LDFLAGS) -v -o $(IOS_BUILD) $(MOBILE_PKG) + $(GOMOBILE_BIN) bind -target=ios,iossimulator,macos -tags="mobile $(DEV_TAGS) autopilotrpc" $(LDFLAGS) -v -o $(IOS_BUILD) $(MOBILE_PKG) + +ios: vendor mobile-rpc + @$(call print, "Building iOS cxframework ($(IOS_BUILD)).") + mkdir -p $(IOS_BUILD_DIR) + $(GOMOBILE_BIN) bind -target=ios,iossimulator -tags="mobile $(DEV_TAGS) autopilotrpc" $(LDFLAGS) -v -o $(IOS_BUILD) $(MOBILE_PKG) + +macos: vendor mobile-rpc + @$(call print, "Building macOS cxframework ($(IOS_BUILD)).") + mkdir -p $(IOS_BUILD_DIR) + $(GOMOBILE_BIN) bind -target=macos -tags="mobile $(DEV_TAGS) autopilotrpc" $(LDFLAGS) -v -o $(IOS_BUILD) $(MOBILE_PKG) android: vendor mobile-rpc @$(call print, "Building Android library ($(ANDROID_BUILD)).") diff --git a/docs/release-notes/release-notes-0.15.0.md b/docs/release-notes/release-notes-0.15.0.md index 8e526dad3..c3557e648 100644 --- a/docs/release-notes/release-notes-0.15.0.md +++ b/docs/release-notes/release-notes-0.15.0.md @@ -132,6 +132,15 @@ then watch it on chain. Taproot script spends are also supported through the specifies the maximum duration it allows for a remote peer to respond to a locally initiated commitment update. +* [`macos` and `apple` Makefile tasks have been added.](https://github.com/lightningnetwork/lnd/pull/6373) + + The `macos` task uses `gomobile` to build an `XCFramework` that can be used to + embed lnd to macOS apps, similar to how the `ios` task builds for iOS. + + The `apple` task uses `gomobile` to build an `XCFramework` that can be used to + embed lnd to both iOS and macOS apps. + + ## RPC Server * [Add value to the field @@ -226,6 +235,7 @@ gRPC performance metrics (latency to process `GetInfo`, etc)](https://github.com * Elle Mouton * ErikEk * Eugene Siegel +* Hampus Sjöberg * henta * Joost Jager * Jordi Montes