为什么我会在 swift 中收到错误“没有这样的模块 FirebaseUI”?

大卫

每次我尝试构建时都会收到错误消息“没有这样的模块 FirebaseUI”

我尝试过的事情:

  • 清除派生数据
  • 运行“pod update”以确保所有依赖项都是最新的
  • 确保我通过打开 .xcworkspace 而不是 .xcodeproj 来运行应用程序
  • 清理我的构建文件夹(Command+Shift+K)
  • 删除我的项目并从 Git 重新下载
  • 将 FirebaseUI 框架直接添加到我的项目中
  • 将 Scheme 更改为 FirebaseCore 允许构建项目,但模拟器不会打开进行测试,也不会在物理设备上运行。
  • 运行时pod deintegrate && pod install,我注意到该命令确实提到包含 FirebaseUI 并且版本为 11.03

我正在带有 M1 芯片的新 MacBook Pro 上运行这个项目。以前,我的项目在较旧的英特尔芯片上运行良好。我的 Xcode 版本是 12.5.1,我的操作系统是 11.4

这是我的 pod 文件:

# Uncomment the next line to define a global platform for your project
 platform :ios, '12.0'

post_install do |pi|
    pi.pods_project.targets.each do |t|
      t.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
      end
    end
end

target 'Pikit' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Firebase
  pod 'Firebase'
  pod 'Firebase/Storage'
  pod 'Firebase/Auth'
  pod 'Firebase/Firestore'
  pod 'Firebase/Functions'
  pod 'Firebase/Analytics'
  pod 'Firebase/Messaging'
  pod 'Firebase/DynamicLinks'
  pod 'FirebaseUI'
  
  # Other Podfiles
  pod 'OnboardKit'
  pod 'SDWebImage'
  pod 'PureLayout'
  pod 'IQKeyboardManagerSwift'
  pod 'Google-Mobile-Ads-SDK'


  
end
用户2042632

FirebaseUI 版本 11 现在分为子模块,因此您需要导入单个模块(例如import FirebaseAuthUI),而不是以前仅使用import FirebaseUI. 或者指示您的 Podfile 使用旧版本。

来自FirebaseUI 11.0.0 发行说明

重大变化:将单个 FirebaseUI 模块分解为每个功能的单独模块。您需要相应地更新项目中的导入。

// FirebaseUI 10.x
import FirebaseUI
// FirebaseUI 11
import FirebaseAuthUI
import FirebaseDatabaseUI
// ...

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

没有这样的模块'AgoraRtcKit'xcode swift错误

在xcode 10.2 Swift中没有这样的模块'IBMCloudAppID'

为什么我会在hackerrank中收到此消息“〜stdout无响应〜”?我不知道我在想什么>

为什么我会在传单中从左到右冲突方向?

为什么我会在X变量中设置bool为false?

为什么我会在JavaScript中得到这种不正确的算术计算?

为什么我会在这段代码中收到ArgumentException?

Xcode(Swift)中没有这样的模块“ Firebase”

Swift中没有这样的模块ZFDragableModalTransition

Swift 3 Xcode 8.1中没有这样的模块

Swift 2.3中没有这样的模块“ UserNotifications”

为什么我会在此 omp_declare_reduction 中收到此错误?

我很难理解为什么我会在 Python 中遇到这个 TypeError

为什么我会在 Ubuntu 12.04 Live CD 会话期间收到“重复源”错误消息?

“没有像 firebaseUI 这样的模块”

为什么我会在此代码中收到分段转储错误?

为什么我会在 Swift 中收到有关段的文档引用错误?

为什么我会在 Python 中收到此语法错误?

ViewController.swift 上“没有这样的模块‘FBSDKCoreKit’”,我该如何解决?

为什么我会在只读字段上选择私有只读自动属性?

在我的 Swift 包中使用时没有这样的模块“组合”

为什么我会在 Haskell 中出现“无法构造无限类型:a ~ [a]”错误?

为什么我会在已经定义的情况下收到此 Python 错误“对象没有属性”?

为什么我会在 Fortran 中收到诸如 Unclassifiable statement at 1 和意外垃圾等错误?

为什么我会在 pandas.concat 中收到“FutureWarning”?

为什么我会在 MySQL 上收到此“缺少约束索引...”错误?

为什么我在这个 Bash 脚本中收到“没有这样的文件或目录”错误?

为什么我会在 rust reqwest 中为其他人运行错误?

为什么我会在 Python 的字典和列表中得到重复的键?