更新Firebase验证包—Flutter后出现错误



我添加了firebase认证包,然后在ios podfile中出现错误

[!CocoaPods无法找到与pod "Firebase/Auth"兼容的版本:在Podfile:重火力点/认证

firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) was resolved to 0.0.1, which depends on
Firebase/Auth (~> 6.3)

CocoaPods无法找到与pod "GoogleUtilities/Environment"兼容的版本:在Podfile:firebase_auth(从.symlinks/plugins/firebase_auth/ios)被解析为0.0.1,这取决于重火力点/身份验证(~比;6.3)被解析为6.3.0,这取决于FirebaseAuth(~比;6.1.2)被解析为6.1.2,这取决于GoogleUtilities/环境(~比;6.2)

google_mlkit_face_detection (from `.symlinks/plugins/google_mlkit_face_detection/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/FaceDetection (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitFaceDetection (~> 2.1.0) was resolved to 2.1.0, which depends on
MLKitCommon (~> 7.0) was resolved to 7.0.0, which depends on
GoogleDataTransport (~> 9.0) was resolved to 9.1.2, which depends on
GoogleUtilities/Environment (~> 7.2)

CocoaPods无法找到pod "MLKitCommon"的兼容版本:在Podfile:google_mlkit_digital_ink_recognition(来自.symlinks/plugins/google_mlkit_digital_ink_recognition/ios)被解析为0.5.0,这取决于GoogleMLKit/DigitalInkRecognition(~比;3.1.0)被解析为3.1.0,这取决于MLKitDigitalInkRecognition(~比;2.1.0)被解析为2.1.0,这取决于MLKitMDD(~比;4.1)被解析为4.2.0,这取决于MLKitCommon(~比;8.0)

google_mlkit_face_detection (from `.symlinks/plugins/google_mlkit_face_detection/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/FaceDetection (~> 3.1.0) was resolved to 3.1.0, which depends on
GoogleMLKit/MLKitCore (= 3.1.0) was resolved to 3.1.0, which depends on
MLKitCommon (~> 7.0.0)
google_mlkit_face_detection (from `.symlinks/plugins/google_mlkit_face_detection/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/FaceDetection (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitFaceDetection (~> 2.1.0) was resolved to 2.1.0, which depends on
MLKitCommon (~> 7.0)

CocoaPods无法找到与pod "MLKitLanguageID"兼容的版本:在Podfile:google_mlkit_language_id(从.symlinks/plugins/google_mlkit_language_id/ios)被解析为0.4.0,这取决于GoogleMLKit/LanguageID(~比;3.1.0)被解析为3.1.0,这取决于MLKitLanguageID(~比;3.1.0)

google_mlkit_smart_reply (from `.symlinks/plugins/google_mlkit_smart_reply/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/SmartReply (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitSmartReply (~> 2.1.0) was resolved to 2.1.0, which depends on
MLKitLanguageID (~> 3.1)

CocoaPods无法找到pod "MLKitTextRecognitionCommon"的兼容版本:在Podfile:google_mlkit_text_recognition(从.symlinks/plugins/google_mlkit_text_recognition/ios)被解析为0.4.0,这取决于GoogleMLKit/TextRecognition(~比;3.1.0)被解析为3.1.0,这取决于MLKitTextRecognition(~比;1.4.0-beta5)被解析为1.4.0-beta5,这取决于MLKitTextRecognitionCommon (= 1.0.0-beta5)

google_mlkit_text_recognition (from `.symlinks/plugins/google_mlkit_text_recognition/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/TextRecognitionJapanese (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitTextRecognitionJapanese (~> 1.0.0-beta5) was resolved to 1.0.0-beta6, which depends on
MLKitTextRecognitionCommon (= 1.0.0-beta6)

CocoaPods无法找到与pod "MLKitVision"兼容的版本:在Podfile:google_mlkit_commons(从.symlinks/plugins/google_mlkit_commons/ios)被解析为0.2.0,这取决于MLKitVision

google_mlkit_face_detection (from `.symlinks/plugins/google_mlkit_face_detection/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/FaceDetection (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitFaceDetection (~> 2.1.0) was resolved to 2.1.0, which depends on
MLKitVision (~> 4.1)
google_mlkit_object_detection (from `.symlinks/plugins/google_mlkit_object_detection/ios`) was resolved to 0.5.0, which depends on
GoogleMLKit/ObjectDetectionCustom (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitObjectDetectionCustom (~> 2.1.0) was resolved to 2.1.0, which depends on
MLKitObjectDetectionCommon (~> 4.1) was resolved to 4.2.0, which depends on
MLKitVision (~> 4.2)

CocoaPods无法找到pod "MLKitXenoCommon"的兼容版本:在Podfile:google_mlkit_pose_detection(从.symlinks/plugins/google_mlkit_pose_detection/ios)被解析为0.4.0,这取决于GoogleMLKit/PoseDetection(~比;3.1.0)被解析为3.1.0,这取决于MLKitPoseDetection(~比;1.0.0-beta9)被解析为1.0.0-beta10,这取决于MLKitXenoCommon (= 1.0.0-beta10)

google_mlkit_pose_detection (from `.symlinks/plugins/google_mlkit_pose_detection/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/PoseDetectionAccurate (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitPoseDetectionAccurate (~> 1.0.0-beta9) was resolved to 1.0.0-beta9, which depends on
MLKitXenoCommon (= 1.0.0-beta9)

如果问题仍然存在,我建议删除Podfile。从你的iOS存储库中锁定文件,在repo的终端中输入:

cd iOS
pod deintegrate
pod install --repo-update   

这将更新您所有的可可荚到最新可能的版本。如果你这样做了,你还是得到同样的错误,我建议你在pubspec中查看你的依赖的版本。并更新所有过时的文件。

在您的终端做

cd ios
pod install

最新更新