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
4141
4242RPC_TAGS  := appengine autopilotrpc chainrpc invoicesrpc neutrinorpc peersrpc signrpc wtclientrpc watchtowerrpc routerrpc walletrpc verrpc
4343
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+ 
4452include  make/testing_flags.mk
4553
4654default : build
7886	@$(call  print, "Building iOS cxframework ($(IOS_BUILD ) ) ." )
7987	mkdir -p $(IOS_BUILD_DIR ) 
8088	$(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) " $(IOS_FILE1 ) 
91+ 	sed -i.bak -E " s|$( IOS_STRING1) $( IOS_STRING2) " $(IOS_FILE2 ) 
92+ 	sed -i.bak -E " s|$( IOS_STRING1) $( IOS_STRING2) " $(IOS_FILE3 ) 
93+ 	sed -i.bak -E " s|$( IOS_STRING1) $( IOS_STRING2) " $(IOS_FILE4 ) 
8194
8295macos :
8396	@$(call  print, "Building macOS cxframework ($(IOS_BUILD ) ) ." )
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments