我正在开发用于生物特征认证的cordova插件,现在需要将FirebaseMLVision与FirebaseMLVisionFaceModel集成。当我将静态框架添加到项目中时,出现如下错误:
我对此问题进行了很多研究,但仍未找到解决方法。
我已经像这样链接了所需的框架
<framework src="src/ios/frameworks/FIRAnalyticsConnector.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/Firebase.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/FirebaseAnalytics.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/FirebaseCore.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/FirebaseInstallations.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/FirebaseInstanceID.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/FirebaseMLCommon.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/FirebaseMLVision.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/GoogleAPIClientForREST.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/GoogleAppMeasurement.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/GoogleDataTransport.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/GoogleDataTransportCCTSupport.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/GoogleToolboxForMac.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/GoogleUtilities.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/GTMSessionFetcher.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/nanopb.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/PromisesObjC.framework" custom="true" embed="true" />
<framework src="src/ios/frameworks/Protobuf.framework" custom="true" embed="true" />
更新:我正在使用最新版本的Firebase ios SDK
答案 0 :(得分:1)
您需要将FirebaseMLVisionFaceModel / FirebaseMLVisionFaceModel.framework和FirebaseMLVisionFaceModel / Resources / GoogleMVFaceDetectorResources.bundle添加到您的项目中,请确保要添加它们的目标旁边有一个选中标记,并且您已选择“如果需要,请复制项目”。
此页面上有说明:
https://firebase.google.com/docs/ios/setup#frameworks
如说明中所述,请仔细阅读框架zip中包含的自述文件。