【问题标题】:Ionic 3 iOS build error with firebasex plugin - module 'FirebaseFirestore' not found带有firebasex插件的Ionic 3 iOS构建错误-找不到模块'FirebaseFirestore'
【发布时间】:2020-07-05 22:12:02
【问题描述】:

我有一个为 Android 和 iOS 平台构建的 Ionic 3 应用程序。以下是有关它的一些信息:

  • 离子角度:版本 3.9.3
  • cordova-android:版本 8.1.0
  • cordova-ios:版本 5.1.1
  • cordova-plugin-firebasex:9.0.1 版

我已经能够使用 Ionic Appflow 毫无问题地构建二进制文件 (APK/IPA)。今天我将我的应用程序中使用的 Firebase 插件更新到了最新版本(如上所述)。我能够毫无问题地成功构建 APK。但是,当我尝试构建 IPA 时,它失败并出现以下错误:

❌  /{project path}/Plugins/cordova-plugin-firebasex/FirebasePlugin.h:4:9: module 'FirebaseFirestore' not found

@import FirebaseFirestore;
                                               ^

[10:11:32]: Exit status: 65

+---------------+-------------------------+
|            Build environment            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.131.0                 |
| export_method | ad-hoc                  |
| sdk           | iPhoneOS13.0.sdk        |
+---------------+-------------------------+

[10:11:32]: ▸ In file included from /{project path}/Plugins/cordova-plugin-firebasex/FirebasePlugin.m:1:
[10:11:32]: ▸ /{project path}/Plugins/cordova-plugin-firebasex/FirebasePlugin.h:4:9: fatal error: module 'FirebaseFirestore' not found
[10:11:32]: ▸ @import FirebaseFirestore;
[10:11:32]: ▸  ~~~~~~~^~~~~~~~~~~~~~~~~
[10:11:32]: ▸ 1 error generated.

有人有这个问题吗?

【问题讨论】:

    标签: ios firebase cordova ionic-framework


    【解决方案1】:

    我找到了问题的罪魁祸首。似乎是最新版本的 cordova-plugin-firebasex 9.0.1 导致了它。我将此插件(通过删除并将其添加到我的 Ionic 项目中)降级为 7.0.2 版本,此时该版本已有 2 个月大,并尝试再次构建 IPA。而这一次它没有抱怨这个问题。

    cordova-plugin-firebasex 版本列表可以在这里找到: cordova-plugin-firebasex

    【讨论】:

      猜你喜欢
      • 2022-08-03
      • 2018-11-15
      • 2018-11-17
      • 1970-01-01
      • 2019-02-22
      • 2018-02-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-03
      相关资源
      最近更新 更多