[英]CocoaPods could not find compatible versions for pod "FirebaseCoreExtension"
I am trying to do pod install
but it says error like:我正在尝试进行
pod install
但它显示错误如下:
No podspec found for
RNFBAnalytics
in../node_modules/@react-native-firebase/analytics
在 ../node_modules/@react-native-firebase/analytics 中找不到
RNFBAnalytics
的../node_modules/@react-native-firebase/analytics
I found a solution that says yarn add @react-native-firebase/analytics && cd ios && pod install --repo-update
and it eliminates above error and shows another similar error like:我找到了一个解决方案,上面写着
yarn add @react-native-firebase/analytics && cd ios && pod install --repo-update
它消除了上述错误并显示了另一个类似的错误,例如:
[!] No podspec found for
RNFBCrashlytics
in../node_modules/@react-native-firebase/crashlytics
[!] 在 ../node_modules/@react-native-firebase/crashlytics 中找不到
RNFBCrashlytics
的../node_modules/@react-native-firebase/crashlytics
Again, fixed with a similar method yarn add @react-native-firebase/crashlytics&& cd ios && pod install --repo-update
同样,用类似的方法修复
yarn add @react-native-firebase/crashlytics&& cd ios && pod install --repo-update
Afterwards, it shows:之后,它显示:
[!] No podspec found for
react-native-fbsdk
in../node_modules/react-native-fbsdk
[!] 在 ../node_modules/react-native-fbsdk 中找不到
react-native-fbsdk
的../node_modules/react-native-fbsdk
This time also, I did yarn add react-native-fbsdk&& cd ios && pod install --repo-update
这一次,我也做了
yarn add react-native-fbsdk&& cd ios && pod install --repo-update
And finally it shows:最后它显示:
[:] CocoaPods could not find compatible versions for pod "FirebaseCoreExtension": In Podfile: RNFBCrashlytics (from
../node_modules/@react-native-firebase/crashlytics
) was resolved to 15.3.0, which depends on FirebaseCoreExtension (= 8.12.1) None of your spec sources contain a spec satisfying the dependency:FirebaseCoreExtension (= 8.12.1)
.[:] CocoaPods 找不到 pod“FirebaseCoreExtension”的兼容版本:在 Podfile 中:RNFBCrashlytics(来自
../node_modules/@react-native-firebase/crashlytics
)已解析为 15.3.0,这取决于 FirebaseCoreExtension(= 8.12。 1)您的规范源都不包含满足依赖项的规范:FirebaseCoreExtension (= 8.12.1)
。 You have either:您有:
- out-of-date source repos which you can update with
pod repo update
or withpod install --repo-update
.您可以使用
pod repo update
或使用pod install --repo-update
过时的源存储库。- mistyped the name or version.
输入错误的名称或版本。
- not added the source repo that hosts the Podspec to your Podfile.
未将托管 Podspec 的源代码库添加到您的 Podfile。
From the error, I would like to know several things:从错误中,我想知道几件事:
What is FirebaseCoreExtension
?什么是
FirebaseCoreExtension
?
Is it an npm package?是 npm package 吗? ( I don't think so).
(我不这么认为)。
How can I fix the error?如何修复错误?
I have been looking for solutions by searching for similar cases but they don't give me any clear and correct answer.我一直在通过搜索类似案例来寻找解决方案,但他们没有给我任何明确和正确的答案。 I deleted
Podfile.lock
and reinstall Pods by pod install
.我删除
Podfile.lock
并通过pod install
重新安装了 Pod。 Also deleted node_modules
and reinstalled it by yarn install
.还删除
node_modules
并通过yarn install
重新安装。 And I tried: pod deintegrate
pod install
pod update
but no luck yet.我试过了:
pod deintegrate
pod install
pod update
但还没有运气。 FYI, I experience this issue after I migrate the project from for Xcode 12 to Xcode13.仅供参考,在将项目从 Xcode 12 迁移到 Xcode13 后,我遇到了这个问题。
Can anyone help?任何人都可以帮忙吗?
Don't hesitate to leave any comment and I can upvote any answer that helps even a bit.不要犹豫,留下任何评论,我可以投票任何有帮助的答案。
Thank you!谢谢!
Make sure you have added GoogleService-Info.plist
file to /ios/{projectName}.xcworkspace
.确保您已将
GoogleService-Info.plist
文件添加到/ios/{projectName}.xcworkspace
。
And make sure you have this code in your /ios/{projectName}/AppDelegate.m
file.并确保您的
/ios/{projectName}/AppDelegate.m
文件中有此代码。
#import <Firebase.h>
.....
.....
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[FIRApp configure];
// ....
}
Follow the exact procedure given in their documentation .遵循他们的文档中给出的确切程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.