reat nativ导入jpush发生报错linker command failed with exit code 1 (use -v to see invocation)
查看官方的github下的issue下的问题
https://github.com/jpush/jpush-react-native/issues/469
我加了libresolv.tbd和libresolv.9.tbd
都没有效果还是报这个错误
报错如下:
```
ld: warning: object file (/Users/inkcrazy/Library/Developer/Xcode/DerivedData/SecurityPlatApp-cibctoktgbpwsahkrmmwzsciirci/Build/Products/Debug-iphoneos/libLottieReactNative.a(LRNAnimationViewManager.o)) was built for newer iOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/inkcrazy/Library/Developer/Xcode/DerivedData/SecurityPlatApp-cibctoktgbpwsahkrmmwzsciirci/Build/Products/Debug-iphoneos/libLottieReactNative.a(LRNContainerView.o)) was built for newer iOS version (9.2) than being linked (9.0)
ld: warning: object file (/Users/inkcrazy/Library/Developer/Xcode/DerivedData/SecurityPlatApp-cibctoktgbpwsahkrmmwzsciirci/Build/Products/Debug-iphoneos/libRCTJAnalyticsModule.a(RCTJAnalyticsModule.o)) was built for newer iOS version (10.3) than being linked (9.0)
ld: warning: object file (/Users/inkcrazy/Library/Developer/Xcode/DerivedData/SecurityPlatApp-cibctoktgbpwsahkrmmwzsciirci/Build/Products/Debug-iphoneos/libRCTJShareModule.a(RCTJShareModule.o)) was built for newer iOS version (10.3) than being linked (9.0)
Undefined symbols for architecture arm64:
"JCORECheckFormatOfMobileNumber", referenced from:
-[JPUSHService setMobileNumber:completion:] in libjpush-ios-3.1.0.a(JPUSHService.o)
-[JPUSHService setMobileNumber:completion:] in libRCTJPushModule.a(JPUSHService.o)
"_JCOREDisplayVersion", referenced from:
_92+[JPUSHService commonSetupWithOption:appKey:channel:apsForProduction:advertisingIdentifier:]_block_invoke in libjpush-ios-3.1.0.a(JPUSHService.o)
_92+[JPUSHService commonSetupWithOption:appKey:channel:apsForProduction:advertisingIdentifier:]_block_invoke in libRCTJPushModule.a(JPUSHService.o)
+[JANALYTICSService setupWithConfig:] in libRCTJAnalyticsModule.a(JANALYTICSService.o)
+[JSHAREService setupWithConfig:] in libRCTJShareModule.a(JSHAREService.o)
"_JCOREGetBuildVersion", referenced from:
_92+[JPUSHService commonSetupWithOption:appKey:channel:apsForProduction:advertisingIdentifier:]_block_invoke in libjpush-ios-3.1.0.a(JPUSHService.o)
_92+[JPUSHService commonSetupWithOption:appKey:channel:apsForProduction:advertisingIdentifier:]_block_invoke in libRCTJPushModule.a(JPUSHService.o)
+[JANALYTICSService setupWithConfig:] in libRCTJAnalyticsModule.a(JANALYTICSService.o)
+[JSHAREService setupWithConfig:] in libRCTJShareModule.a(JSHAREService.o)
"_JPUSHBase64", referenced from:
-[JPUSHBadgeNumberReportRequest p_generateRequestHead] in libjpush-ios-3.1.0.a(JPUSHBadgeNumberReport.o)
-[JPUSHBadgeNumberReportRequest p_generateRequestHead] in libRCTJPushModule.a(JPUSHBadgeNumberReport.o)
"_JPUSHConvertTokenDataToString", referenced from:
-[JPUSHDeviceTokenController judgeAndSetDeviceToken:] in libjpush-ios-3.1.0.a(JPUSHDeviceTokenController.o)
-[JPUSHDeviceTokenController judgeAndSetDeviceToken:] in libRCTJPushModule.a(JPUSHDeviceTokenController.o)
"_JPUSHDecodeDataFromBuffer", referenced from:
-[JPUSHTagsResponse initWithBuffer:length:] in libjpush-ios-3.1.0.a(JPUSHTagsOperation.o)
-[JPUSHAliasResponse initWithBuffer:length:] in libjpush-ios-3.1.0.a(JPUSHAliasOperation.o)
-[JPUSHAliasResponse initWithBuffer:length:] in libRCTJPushModule.a(JPUSHAliasOperation.o)
-[JPUSHTagsResponse initWithBuffer:length:] in libRCTJPushModule.a(JPUSHTagsOperation.o)
"_JPUSHGetCurrentTimestamp", referenced from:
-[JPUSHTagAlias setTagAliasUsingCallback:] in libjpush-ios-3.1.0.a(JPUSHTagAlias.o)
-[JPUSHTagAliasManagerController tagOperate:type:andCompletion:andSeq:] in libjpush-ios-3.1.0.a(JPUSHTagAliasManagerController.o)
-[JPUSHTagAliasManagerController aliasOperate:type:andCompletion:andSeq:] in libjpush-ios-3.1.0.a(JPUSHTagAliasManagerController.o)
-[JPUSHTagAliasManagerController handleServerUnavaiableResponseWith:andContent:] in libjpush-ios-3.1.0.a(JPUSHTagAliasManagerController.o)
-[JPUSHTagAliasManagerController isFreezeReport] in libjpush-ios-3.1.0.a(JPUSHTagAliasManagerController.o)
-[JPUSHTagAlias setTagAliasUsingCallback:] in libRCTJPushModule.a(JPUSHTagAlias.o)
-[JPUSHTagAliasManagerController tagOperate:type:andCompletion:andSeq:] in libRCTJPushModule.a(JPUSHTagAliasManagerController.o)
...
"_JPUSHGetDateAndTimeFromTimestamp", referenced from:
-[JANALYTICSRequestSession setViewStart:] in libRCTJAnalyticsModule.a(JANALYTICSRequestSession.o)
-[JANALYTICSRequestSession setViewStop:] in libRCTJAnalyticsModule.a(JANALYTICSRequestSession.o)
"_JPUSHJSONData", referenced from:
-[JPUSHTagsRequest packData] in libjpush-ios-3.1.0.a(JPUSHTagsOperation.o)
-[JPUSHAliasRequest packData] in libjpush-ios-3.1.0.a(JPUSHAliasOperation.o)
-[JPUSHBadgeNumberReportRequest packetData] in libjpush-ios-3.1.0.a(JPUSHBadgeNumberReport.o)
-[JPUSHSetTagAlias requestJsonData] in libjpush-ios-3.1.0.a(JPUSHSetTagAlias.o)
-[JPUSHAliasRequest packData] in libRCTJPushModule.a(JPUSHAliasOperation.o)
-[JPUSHBadgeNumberReportRequest packetData] in libRCTJPushModule.a(JPUSHBadgeNumberReport.o)
-[JPUSHTagsRequest packData] in libRCTJPushModule.a(JPUSHTagsOperation.o)
...
"_JPUSHJSONObject", referenced from:
-[JPUSHTagAlias doSetTagsAliasCallbackWithRetJson:] in libjpush-ios-3.1.0.a(JPUSHTagAlias.o)
-[JPUSHTagsResponse initWithBuffer:length:] in libjpush-ios-3.1.0.a(JPUSHTagsOperation.o)
-[JPUSHAliasResponse initWithBuffer:length:] in libjpush-ios-3.1.0.a(JPUSHAliasOperation.o)
-[JPUSHTagAlias doSetTagsAliasCallbackWithRetJson:] in libRCTJPushModule.a(JPUSHTagAlias.o)
-[JPUSHAliasResponse initWithBuffer:length:] in libRCTJPushModule.a(JPUSHAliasOperation.o)
-[JPUSHTagsResponse initWithBuffer:length:] in libRCTJPushModule.a(JPUSHTagsOperation.o)
"_JPUSHStringHashingByMD5", referenced from:
-[JPUSHBadgeNumberReportRequest p_generateRequestHead] in libjpush-ios-3.1.0.a(JPUSHBadgeNumberReport.o)
-[JPUSHBadgeNumberReportRequest p_generateRequestHead] in libRCTJPushModule.a(JPUSHBadgeNumberReport.o)
"_OBJC_CLASS$JCOREClientController", referenced from:
objc-class-ref in libRCTJShareModule.a(JSHAREService.o)
objc-class-ref in libRCTJShareModule.a(JSHAREClientController.o)
"_OBJC_CLASS$JCOREInterface", referenced from:
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHService.o)
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHTagAlias.o)
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHTagAliasManagerController.o)
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHBadgeNumberController.o)
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHBadgeNumberReport.o)
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHUserPropertyController.o)
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHDeviceTokenController.o)
...
"_OBJC_CLASS$JPUSHFileHelper", referenced from:
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHTagAlias.o)
objc-class-ref in libRCTJPushModule.a(JPUSHTagAlias.o)
"_OBJC_CLASS$JPUSHLog", referenced from:
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHService.o)
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHLocalNotificationController.o)
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHTagAlias.o)
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHBadgeNumberController.o)
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHBadgeNumberReport.o)
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHUserPropertyController.o)
objc-class-ref in libjpush-ios-3.1.0.a(JPUSHDeviceTokenController.o)
...
"_OBJC_CLASS$JPUSHPushConfigController", referenced from:
objc-class-ref in libRCTJShareModule.a(JSHAREService.o)
"_OBJC_CLASS$JPUSHReceivedPacketController", referenced from:
_OBJC_CLASS$JPUSHTagsResponse in libjpush-ios-3.1.0.a(JPUSHTagsOperation.o)
_OBJC_CLASS$JPUSHAliasResponse in libjpush-ios-3.1.0.a(JPUSHAliasOperation.o)
_OBJC_CLASS$JPUSHAliasResponse in libRCTJPushModule.a(JPUSHAliasOperation.o)
_OBJC_CLASS$JPUSHTagsResponse in libRCTJPushModule.a(JPUSHTagsOperation.o)
"_OBJC_CLASS$JPUSHReportRequest", referenced from:
_OBJC_CLASS$JPUSHBadgeNumberReportRequest in libjpush-ios-3.1.0.a(JPUSHBadgeNumberReport.o)
_OBJC_CLASS$JPUSHMessageReportRequest in libjpush-ios-3.1.0.a(JPUSHMessageReport.o)
_OBJC_CLASS$JPUSHBadgeNumberReportRequest in libRCTJPushModule.a(JPUSHBadgeNumberReport.o)
_OBJC_CLASS$JPUSHMessageReportRequest in libRCTJPushModule.a(JPUSHMessageReport.o)
_OBJC_CLASS$JANALYTICSEventReportRequest in libRCTJAnalyticsModule.a(JANALYTICSEventReport.o)
_OBJC_CLASS$JANALYTICSFrequencyRequest in libRCTJAnalyticsModule.a(JANALYTICSFrequencyReport.o)
_OBJC_CLASS$JANALYTICSPageFlowReportRequest in libRCTJAnalyticsModule.a(JANALYTICSPageFlowReport.o)
...
"_OBJC_CLASS$JPUSHReportResponse", referenced from:
_OBJC_CLASS$JPUSHBadgeNumberReportResponse in libjpush-ios-3.1.0.a(JPUSHBadgeNumberReport.o)
_OBJC_CLASS$JPUSHMessageReportResponse in libjpush-ios-3.1.0.a(JPUSHMessageReport.o)
_OBJC_CLASS$JPUSHBadgeNumberReportResponse in libRCTJPushModule.a(JPUSHBadgeNumberReport.o)
_OBJC_CLASS$JPUSHMessageReportResponse in libRCTJPushModule.a(JPUSHMessageReport.o)
_OBJC_CLASS$JANALYTICSEventReportResponse in libRCTJAnalyticsModule.a(JANALYTICSEventReport.o)
_OBJC_CLASS$JANALYTICSFrequencyResponse in libRCTJAnalyticsModule.a(JANALYTICSFrequencyReport.o)
_OBJC_CLASS$JANALYTICSPageFlowReportResponse in libRCTJAnalyticsModule.a(JANALYTICSPageFlowReport.o)
...
"_OBJC_CLASS$JPUSHRequest", referenced from:
_OBJC_CLASS$JPUSHTagsRequest in libjpush-ios-3.1.0.a(JPUSHTagsOperation.o)
_OBJC_CLASS$JPUSHAliasRequest in libjpush-ios-3.1.0.a(JPUSHAliasOperation.o)
_OBJC_CLASS$JPUSHUserPropertyRequest in libjpush-ios-3.1.0.a(JPUSHUserProperty.o)
_OBJC_CLASS$JPUSHSetTagAlias in libjpush-ios-3.1.0.a(JPUSHSetTagAlias.o)
_OBJC_CLASS$JPUSHAliasRequest in libRCTJPushModule.a(JPUSHAliasOperation.o)
_OBJC_CLASS$JPUSHTagsRequest in libRCTJPushModule.a(JPUSHTagsOperation.o)
_OBJC_CLASS$JPUSHUserPropertyRequest in libRCTJPushModule.a(JPUSHUserProperty.o)
...
"_OBJC_CLASS$JPUSHResponse", referenced from:
_OBJC_CLASS$JPUSHUserPropertyResponse in libjpush-ios-3.1.0.a(JPUSHUserProperty.o)
_OBJC_CLASS$JPUSHUserPropertyResponse in libRCTJPushModule.a(JPUSHUserProperty.o)
_OBJC_CLASS$JANALYTICSUserPropertyResponse in libRCTJAnalyticsModule.a(JANALYTICSUserProperty.o)
"_OBJC_IVAR$JPUSHRequest._packetData", referenced from:
-[JPUSHTagsRequest packData] in libjpush-ios-3.1.0.a(JPUSHTagsOperation.o)
-[JPUSHAliasRequest packData] in libjpush-ios-3.1.0.a(JPUSHAliasOperation.o)
-[JPUSHUserPropertyRequest packData] in libjpush-ios-3.1.0.a(JPUSHUserProperty.o)
-[JPUSHSetTagAlias packData] in libjpush-ios-3.1.0.a(JPUSHSetTagAlias.o)
-[JPUSHAliasRequest packData] in libRCTJPushModule.a(JPUSHAliasOperation.o)
-[JPUSHTagsRequest packData] in libRCTJPushModule.a(JPUSHTagsOperation.o)
-[JPUSHUserPropertyRequest packData] in libRCTJPushModule.a(JPUSHUserProperty.o)
...
"_OBJC_METACLASS$JPUSHReceivedPacketController", referenced from:
_OBJC_METACLASS$JPUSHTagsResponse in libjpush-ios-3.1.0.a(JPUSHTagsOperation.o)
_OBJC_METACLASS$JPUSHAliasResponse in libjpush-ios-3.1.0.a(JPUSHAliasOperation.o)
_OBJC_METACLASS$JPUSHAliasResponse in libRCTJPushModule.a(JPUSHAliasOperation.o)
_OBJC_METACLASS$JPUSHTagsResponse in libRCTJPushModule.a(JPUSHTagsOperation.o)
"_OBJC_METACLASS$JPUSHReportRequest", referenced from:
_OBJC_METACLASS$JPUSHBadgeNumberReportRequest in libjpush-ios-3.1.0.a(JPUSHBadgeNumberReport.o)
_OBJC_METACLASS$JPUSHMessageReportRequest in libjpush-ios-3.1.0.a(JPUSHMessageReport.o)
_OBJC_METACLASS$JPUSHBadgeNumberReportRequest in libRCTJPushModule.a(JPUSHBadgeNumberReport.o)
_OBJC_METACLASS$JPUSHMessageReportRequest in libRCTJPushModule.a(JPUSHMessageReport.o)
_OBJC_METACLASS$JANALYTICSEventReportRequest in libRCTJAnalyticsModule.a(JANALYTICSEventReport.o)
_OBJC_METACLASS$JANALYTICSFrequencyRequest in libRCTJAnalyticsModule.a(JANALYTICSFrequencyReport.o)
_OBJC_METACLASS$JANALYTICSPageFlowReportRequest in libRCTJAnalyticsModule.a(JANALYTICSPageFlowReport.o)
...
"_OBJC_METACLASS$JPUSHReportResponse", referenced from:
_OBJC_METACLASS$JPUSHBadgeNumberReportResponse in libjpush-ios-3.1.0.a(JPUSHBadgeNumberReport.o)
_OBJC_METACLASS$JPUSHMessageReportResponse in libjpush-ios-3.1.0.a(JPUSHMessageReport.o)
_OBJC_METACLASS$JPUSHBadgeNumberReportResponse in libRCTJPushModule.a(JPUSHBadgeNumberReport.o)
_OBJC_METACLASS$JPUSHMessageReportResponse in libRCTJPushModule.a(JPUSHMessageReport.o)
_OBJC_METACLASS$JANALYTICSEventReportResponse in libRCTJAnalyticsModule.a(JANALYTICSEventReport.o)
_OBJC_METACLASS$JANALYTICSFrequencyResponse in libRCTJAnalyticsModule.a(JANALYTICSFrequencyReport.o)
_OBJC_METACLASS$JANALYTICSPageFlowReportResponse in libRCTJAnalyticsModule.a(JANALYTICSPageFlowReport.o)
...
"_OBJC_METACLASS$JPUSHRequest", referenced from:
_OBJC_METACLASS$JPUSHTagsRequest in libjpush-ios-3.1.0.a(JPUSHTagsOperation.o)
_OBJC_METACLASS$JPUSHAliasRequest in libjpush-ios-3.1.0.a(JPUSHAliasOperation.o)
_OBJC_METACLASS$JPUSHUserPropertyRequest in libjpush-ios-3.1.0.a(JPUSHUserProperty.o)
_OBJC_METACLASS$JPUSHSetTagAlias in libjpush-ios-3.1.0.a(JPUSHSetTagAlias.o)
_OBJC_METACLASS$JPUSHAliasRequest in libRCTJPushModule.a(JPUSHAliasOperation.o)
_OBJC_METACLASS$JPUSHTagsRequest in libRCTJPushModule.a(JPUSHTagsOperation.o)
_OBJC_METACLASS$JPUSHUserPropertyRequest in libRCTJPushModule.a(JPUSHUserProperty.o)
...
"_OBJC_METACLASS$JPUSHResponse", referenced from:
_OBJC_METACLASS$JPUSHUserPropertyResponse in libjpush-ios-3.1.0.a(JPUSHUserProperty.o)
_OBJC_METACLASS$JPUSHUserPropertyResponse in libRCTJPushModule.a(JPUSHUserProperty.o)
_OBJC_METACLASS$_JANALYTICSUserPropertyResponse in libRCTJAnalyticsModule.a(JANALYTICSUserProperty.o)
"_kJPFNetworkDidCloseNotification", referenced from:
-[RCTJPushModule init] in libJPushRN.a(RCTJPushModule.o)
-[RCTJPushModule reactJSDidload] in libJPushRN.a(RCTJPushModule.o)
-[RCTJPushModule init] in libRCTJPushModule.a(RCTJPushModule.o)
-[RCTJPushModule reactJSDidload] in libRCTJPushModule.a(RCTJPushModule.o)
"_kJPFNetworkDidLoginNotification", referenced from:
-[RCTJPushModule init] in libJPushRN.a(RCTJPushModule.o)
-[RCTJPushModule reactJSDidload] in libJPushRN.a(RCTJPushModule.o)
-[JPUSHClientController observeNotifications] in libjpush-ios-3.1.0.a(JPUSHClientController.o)
-[JPUSHClientController unobserveNotifications] in libjpush-ios-3.1.0.a(JPUSHClientController.o)
-[RCTJPushModule init] in libRCTJPushModule.a(RCTJPushModule.o)
-[RCTJPushModule reactJSDidload] in libRCTJPushModule.a(RCTJPushModule.o)
-[JPUSHClientController observeNotifications] in libRCTJPushModule.a(JPUSHClientController.o)
...
"_kJPFNetworkDidReceiveMessageNotification", referenced from:
-[RCTJPushModule init] in libJPushRN.a(RCTJPushModule.o)
-[RCTJPushModule init] in libRCTJPushModule.a(RCTJPushModule.o)
"_kJPFNetworkDidRegisterNotification", referenced from:
-[RCTJPushModule init] in libJPushRN.a(RCTJPushModule.o)
-[RCTJPushModule init] in libRCTJPushModule.a(RCTJPushModule.o)
-[JSHAREClientController observeNotifications] in libRCTJShareModule.a(JSHAREClientController.o)
-[JSHAREClientController unobserveNotifications] in libRCTJShareModule.a(JSHAREClientController.o)
"_kJPFNetworkDidSetupNotification", referenced from:
-[RCTJPushModule init] in libJPushRN.a(RCTJPushModule.o)
-[RCTJPushModule init] in libRCTJPushModule.a(RCTJPushModule.o)
"_kJPFNetworkFailedRegisterNotification", referenced from:
-[JSHAREClientController observeNotifications] in libRCTJShareModule.a(JSHAREClientController.o)
-[JSHAREClientController unobserveNotifications] in libRCTJShareModule.a(JSHAREClientController.o)
"_kJPFNetworkIsConnectingNotification", referenced from:
-[RCTJPushModule init] in libJPushRN.a(RCTJPushModule.o)
-[RCTJPushModule init] in libRCTJPushModule.a(RCTJPushModule.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)