File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,14 @@ GOMOBILE_BIN := $(GO_BIN)/gomobile
41
41
42
42
RPC_TAGS := appengine autopilotrpc chainrpc invoicesrpc neutrinorpc peersrpc signrpc wtclientrpc watchtowerrpc routerrpc walletrpc verrpc
43
43
44
+ # iOS library imports
45
+ IOS_STRING1 := @import Foundation;
46
+ IOS_STRING2 := \# import <Foundation\/Foundation.h>
47
+ IOS_FILE1 := $(IOS_BUILD ) /ios-arm64/Lncmobile.framework/Headers/Mobile.objc.h
48
+ IOS_FILE2 := $(IOS_BUILD ) /ios-arm64/Lncmobile.framework/Headers/Universe.objc.h
49
+ IOS_FILE3 := $(IOS_BUILD ) /ios-arm64_x86_64-simulator/Lncmobile.framework/Headers/Mobile.objc.h
50
+ IOS_FILE4 := $(IOS_BUILD ) /ios-arm64_x86_64-simulator/Lncmobile.framework/Headers/Universe.objc.h
51
+
44
52
include make/testing_flags.mk
45
53
46
54
default : build
78
86
@$(call print, "Building iOS cxframework ($(IOS_BUILD ) ) ." )
79
87
mkdir -p $(IOS_BUILD_DIR )
80
88
$(GOMOBILE_BIN ) bind -target=ios,iossimulator -tags=" mobile $( DEV_TAGS) $( RPC_TAGS) " $(LDFLAGS_MOBILE ) -v -o $(IOS_BUILD ) $(MOBILE_PKG )
89
+ # modify library files for import without C++ modules
90
+ sed -i.bak -E " s|$( IOS_STRING1) |$( IOS_STRING2) |g" $(IOS_FILE1 )
91
+ sed -i.bak -E " s|$( IOS_STRING1) |$( IOS_STRING2) |g" $(IOS_FILE2 )
92
+ sed -i.bak -E " s|$( IOS_STRING1) |$( IOS_STRING2) |g" $(IOS_FILE3 )
93
+ sed -i.bak -E " s|$( IOS_STRING1) |$( IOS_STRING2) |g" $(IOS_FILE4 )
81
94
82
95
macos :
83
96
@$(call print, "Building macOS cxframework ($(IOS_BUILD ) ) ." )
You can’t perform that action at this time.
0 commit comments