iOS Question how to using tbd native lib?

icefairy333

Active Member
Licensed User
Longtime User
I'm wrapping an library AMapLocation,it depends on libc++.tbd,libstdc++6.09.tbd,libz.tbd
when I add them in xcode the build will error,remove them just ok,then add them in this way:
B4X:
//~dependson:libstdc++6.09.tbd
the B4I builder will throw error with not found
B4X:
ld: library not found for -lstdc++6.09
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and the same error when I change .tbd to .dylib
 

icefairy333

Active Member
Licensed User
Longtime User
B4X:
@class B4I;
//~shortname:iAMapLocation
//~author:icefairy333
//~event:gotloc(iloc as iLocation)
//~event:onlocerror(code as Long,msg as String)
//~version:1.00
//~dependson:AMapLocationKit.framework
//~dependson:JavaScriptcore.framework
//~dependson:SystemConfiguration.framework
//~dependson:Security.framework
//~dependson:libz.tbd
//~dependson:libc++.tbd
//~dependson:libstdc++6.09.tbd
@interface iAMapLocation : B4IObjectWrapper
@property (nonatomic, strong) AMapLocationManager *locationManager;
- (void)Initialize:(B4I *)bi :(NSString *)EventName :(NSString *)apikey;
- (void)startlocation;
- (void)stoplocation;
@end

xcode.png

because of b4i add both libstdc++6.09.tbd and libstdc++6.09.dylib
?
 
Upvote 0
Top