【发布时间】:2022-01-13 07:16:01
【问题描述】:
当我在 IONIC 5 中为 ios 进行构建时遇到此错误。
为 ios 安装“cordova-plugin-firebasex” 运行命令:pod install --verbose 无法安装“cordova-plugin-firebasex”:错误:pod:命令失败,退出代码为 1。
我已经在firebase deeplink和analytics和firebasex插件的plugin.xml文件中匹配了firebase模块
<pods use-frameworks="true">
<pod name="Firebase/Core" spec="8.4.0"/>
<pod name="Firebase/Auth" spec="8.4.0"/>
<pod name="Firebase/Messaging" spec="8.4.0"/>
<pod name="Firebase/Performance" spec="8.4.0"/>
<pod name="Firebase/RemoteConfig" spec="8.4.0"/>
<pod name="Firebase/InAppMessaging" spec="8.4.0"/>
<pod name="FirebaseFirestore" git="https://github.com/invertase/firestore-ios-sdk-frameworks.git" tag="8.4.0"/>
<pod name="Firebase/Crashlytics" spec="8.4.0"/>
<pod name="Firebase/Functions" spec="8.4.0"/>
<pod name="Firebase/Installations" spec="8.4.0"/>
<pod name="GoogleSignIn" spec="5.0.2"/>
<pod name="GoogleTagManager" spec="7.3.1"/>
</pods>
在 firebase 分析插件中 -
<platform name="ios">
<preference name="IOS_FIREBASE_POD_VERSION" default="8.4.0" />
<platform />
在firebase动态链接插件中-
<platform name="ios">
<preference name="IOS_FIREBASE_POD_VERSION" default="8.4.0" />
<platform />
当我运行 pod update 时没有任何反应。请帮助我。提前致谢
【问题讨论】:
-
@MartinZeitler,在项目文件夹上运行 pod repo update 然后在平台/ios/ 上安装 pod 后。我现在收到此错误。预下载:FirebaseInstallations (= 8.10.0, ~> 8.0) 找到满足
FirebaseInstallations (= 8.10.0, ~> 8.0), FirebaseInstallations (~> 8.0), FirebaseInstallations (~> 8.4.0)依赖的规范,但它们需要更高的最小部署目标。
标签: cordova ionic-framework cordova-plugins ionic5 cordova-plugin-firebasex