jpush / janalytics-react-native

MIT License
51 stars 21 forks source link

ios编译报错 #68

Open guoguoss opened 1 year ago

guoguoss commented 1 year ago

/node_modules/janalytics-react-native/ios/RCTJAnalyticsModule/janalytics-ios-2.1.2.a 文件名修改为 libjanalytics-ios-2.1.2.a 之后iOS就报错

Undefined symbols for architecture arm64: "_JCOREDisplayVersion", referenced from: +[JANALYTICSService setupWithConfig:] in libjanalytics-ios-2.1.2.a(JANALYTICSService-f54dd975e35b6969e7f452a822dbf153eef41ccc8fb27725df3027169ac9a37a.o) "_JCOREGetBuildVersion", referenced from: +[JANALYTICSService setupWithConfig:] in libjanalytics-ios-2.1.2.a(JANALYTICSService-f54dd975e35b6969e7f452a822dbf153eef41ccc8fb27725df3027169ac9a37a.o) "_JPUSHBase64", referenced from: +[JANALYTICSUtilties rsaEncrypt:publicKey:] in libjanalytics-ios-2.1.2.a(JANALYTICSUtilties-f54dd975e35b6969e7f452a822dbf1534eca8cc1b44f95c03bc65764440d02b1.o) "_JPUSHGetCurrentTimestamp", referenced from: -[JANALYTICSVisualEventUploadRequest packData] in libjanalytics-ios-2.1.2.a(JANALYTICSVisualEventReport.o) -[JANALYTICSEventObject init] in libjanalytics-ios-2.1.2.a(JANALYTICSEventObject.o) -[JANALYTICSFrequencyRequest packData] in libjanalytics-ios-2.1.2.a(JANALYTICSFrequencyReport.o) -[JANALYTICSRequestFrequency tooFrequently] in libjanalytics-ios-2.1.2.a(JANALYTICSRequestSession-f54dd975e35b6969e7f452a822dbf153720ecf144555caf360c7d2d57433a8e2.o) -[JANALYTICSRequestSession setViewStart:] in libjanalytics-ios-2.1.2.a(JANALYTICSRequestSession-f54dd975e35b6969e7f452a822dbf153720ecf144555caf360c7d2d57433a8e2.o) -[JANALYTICSRequestSession setViewStop:] in libjanalytics-ios-2.1.2.a(JANALYTICSRequestSession-f54dd975e35b6969e7f452a822dbf153720ecf144555caf360c7d2d57433a8e2.o) -[JANALYTICSRequestSession requestSessionInactive] in libjanalytics-ios-2.1.2.a(JANALYTICSRequestSession-f54dd975e35b6969e7f452a822dbf153720ecf144555caf360c7d2d57433a8e2.o) ... "_JPUSHGetDateAndTimeFromTimestamp", referenced from: -[JANALYTICSRequestSession setViewStart:] in libjanalytics-ios-2.1.2.a(JANALYTICSRequestSession-f54dd975e35b6969e7f452a822dbf153720ecf144555caf360c7d2d57433a8e2.o) -[JANALYTICSRequestSession setViewStop:] in libjanalytics-ios-2.1.2.a(JANALYTICSRequestSession-f54dd975e35b6969e7f452a822dbf153720ecf144555caf360c7d2d57433a8e2.o) "_JPUSHJSONData", referenced from: -[JANALYTICSWebViewController getData:callBack:] in libjanalytics-ios-2.1.2.a(JANALYTICSWebViewController.o) -[JANALYTICSUserInfoSession insertAccount:withItime:] in libjanalytics-ios-2.1.2.a(JANALYTICSUserInfoSession.o) -[JANALYTICSNetworkRequest httpRequest] in libjanalytics-ios-2.1.2.a(JANALYTICSNetworkRequest.o) "_JPUSHJSONObject", referenced from: -[JANALYTICSCircleEventGetResponse initWithData:request:response:error:] in libjanalytics-ios-2.1.2.a(JANALYTICSVisualEventReport.o) -[JANALYTICSWebViewController userContentController:didReceiveScriptMessage:] in libjanalytics-ios-2.1.2.a(JANALYTICSWebViewController.o) -[JANALYTICSCircleController finishCircleAction:] in libjanalytics-ios-2.1.2.a(JANALYTICSCircleController.o) "_JPUSHStringHashingByMD5", referenced from: +[JANALYTICSCircleController handleUrl:] in libjanalytics-ios-2.1.2.a(JANALYTICSCircleController.o) "_OBJC_CLASS_$_JCOREInterface", referenced from: objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSUserProperty.o) objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSClientController-f54dd975e35b6969e7f452a822dbf1539d6a972ec5abc06f98f06a08d07364e1.o) objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSUserPropertyController.o) objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSRequestSession-f54dd975e35b6969e7f452a822dbf153720ecf144555caf360c7d2d57433a8e2.o) objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSCircleController.o) objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSUtilties-f54dd975e35b6969e7f452a822dbf1534eca8cc1b44f95c03bc65764440d02b1.o) objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSUserInfoSession.o) ... "_OBJC_CLASS_$_JPUSHLog", referenced from: objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSUserProperty.o) objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSClientController-f54dd975e35b6969e7f452a822dbf1539d6a972ec5abc06f98f06a08d07364e1.o) objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSVisualEventReport.o) objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSUserInfoReport.o) objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSPageFlowReport.o) objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSUserPropertyController.o) objc-class-ref in libjanalytics-ios-2.1.2.a(JANALYTICSEventObject.o) ... "_OBJC_CLASS_$_JPUSHReportRequest", referenced from: _OBJC_CLASS_$_JANALYTICSVisualEventUploadRequest in libjanalytics-ios-2.1.2.a(JANALYTICSVisualEventReport.o) _OBJC_CLASS_$_JANALYTICSUserInfoRequest in libjanalytics-ios-2.1.2.a(JANALYTICSUserInfoReport.o) _OBJC_CLASS_$_JANALYTICSDetachUserInfoRequest in libjanalytics-ios-2.1.2.a(JANALYTICSUserInfoReport.o) _OBJC_CLASS_$_JANALYTICSPageFlowReportRequest in libjanalytics-ios-2.1.2.a(JANALYTICSPageFlowReport.o) _OBJC_CLASS_$_JANALYTICSFrequencyRequest in libjanalytics-ios-2.1.2.a(JANALYTICSFrequencyReport.o) _OBJC_CLASS_$_JANALYTICSEventReportRequest in libjanalytics-ios-2.1.2.a(JANALYTICSEventReport-f54dd975e35b6969e7f452a822dbf15366546aae5673133f8e5e0eeb2b4cdd6c.o) "_OBJC_CLASS_$_JPUSHReportResponse", referenced from: _OBJC_CLASS_$_JANALYTICSVisualEventUploadResponse in libjanalytics-ios-2.1.2.a(JANALYTICSVisualEventReport.o) _OBJC_CLASS_$_JANALYTICSUserInfoResponse in libjanalytics-ios-2.1.2.a(JANALYTICSUserInfoReport.o) _OBJC_CLASS_$_JANALYTICSDetachUserInfoResponse in libjanalytics-ios-2.1.2.a(JANALYTICSUserInfoReport.o) _OBJC_CLASS_$_JANALYTICSPageFlowReportResponse in libjanalytics-ios-2.1.2.a(JANALYTICSPageFlowReport.o) _OBJC_CLASS_$_JANALYTICSFrequencyResponse in libjanalytics-ios-2.1.2.a(JANALYTICSFrequencyReport.o) _OBJC_CLASS_$_JANALYTICSEventReportResponse in libjanalytics-ios-2.1.2.a(JANALYTICSEventReport-f54dd975e35b6969e7f452a822dbf15366546aae5673133f8e5e0eeb2b4cdd6c.o) "_OBJC_CLASS_$_JPUSHRequest", referenced from: _OBJC_CLASS_$_JANALYTICSUserPropertyRequest in libjanalytics-ios-2.1.2.a(JANALYTICSUserProperty.o) "_OBJC_CLASS_$_JPUSHResponse", referenced from: _OBJC_CLASS_$_JANALYTICSUserPropertyResponse in libjanalytics-ios-2.1.2.a(JANALYTICSUserProperty.o) "_OBJC_IVAR_$_JPUSHRequest._packetData", referenced from: -[JANALYTICSUserPropertyRequest packData] in libjanalytics-ios-2.1.2.a(JANALYTICSUserProperty.o) "_OBJC_METACLASS_$_JPUSHReportRequest", referenced from: _OBJC_METACLASS_$_JANALYTICSVisualEventUploadRequest in libjanalytics-ios-2.1.2.a(JANALYTICSVisualEventReport.o) _OBJC_METACLASS_$_JANALYTICSUserInfoRequest in libjanalytics-ios-2.1.2.a(JANALYTICSUserInfoReport.o) _OBJC_METACLASS_$_JANALYTICSDetachUserInfoRequest in libjanalytics-ios-2.1.2.a(JANALYTICSUserInfoReport.o) _OBJC_METACLASS_$_JANALYTICSPageFlowReportRequest in libjanalytics-ios-2.1.2.a(JANALYTICSPageFlowReport.o) _OBJC_METACLASS_$_JANALYTICSFrequencyRequest in libjanalytics-ios-2.1.2.a(JANALYTICSFrequencyReport.o) _OBJC_METACLASS_$_JANALYTICSEventReportRequest in libjanalytics-ios-2.1.2.a(JANALYTICSEventReport-f54dd975e35b6969e7f452a822dbf15366546aae5673133f8e5e0eeb2b4cdd6c.o) "_OBJC_METACLASS_$_JPUSHReportResponse", referenced from: _OBJC_METACLASS_$_JANALYTICSVisualEventUploadResponse in libjanalytics-ios-2.1.2.a(JANALYTICSVisualEventReport.o) _OBJC_METACLASS_$_JANALYTICSUserInfoResponse in libjanalytics-ios-2.1.2.a(JANALYTICSUserInfoReport.o) _OBJC_METACLASS_$_JANALYTICSDetachUserInfoResponse in libjanalytics-ios-2.1.2.a(JANALYTICSUserInfoReport.o) _OBJC_METACLASS_$_JANALYTICSPageFlowReportResponse in libjanalytics-ios-2.1.2.a(JANALYTICSPageFlowReport.o) _OBJC_METACLASS_$_JANALYTICSFrequencyResponse in libjanalytics-ios-2.1.2.a(JANALYTICSFrequencyReport.o) _OBJC_METACLASS_$_JANALYTICSEventReportResponse in libjanalytics-ios-2.1.2.a(JANALYTICSEventReport-f54dd975e35b6969e7f452a822dbf15366546aae5673133f8e5e0eeb2b4cdd6c.o) "_OBJC_METACLASS_$_JPUSHRequest", referenced from: _OBJC_METACLASS_$_JANALYTICSUserPropertyRequest in libjanalytics-ios-2.1.2.a(JANALYTICSUserProperty.o) "_OBJC_METACLASS_$_JPUSHResponse", referenced from: _OBJC_METACLASS_$_JANALYTICSUserPropertyResponse in libjanalytics-ios-2.1.2.a(JANALYTICSUserProperty.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 8221698402162_ pic

jiushita commented 11 months ago

我也遇到同样的问题,我是在升级node到18后就这样了