Dav*_*vid 3 ios cocoapods firebase swift firebaseui
每次我尝试构建时都会收到错误消息“没有这样的模块 FirebaseUI”
我尝试过的事情:
arch -x86_64 pod installpod 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!
# Fixed Pod configuration
# Pods for Pikit
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/Auth'
pod 'FirebaseUI/Email'
pod 'FirebaseUI/Google'
pod 'FirebaseUI/OAuth' # Used for Sign in with Apple, Twitter, etc
# Other Podfiles
pod 'OnboardKit'
# Auto move screen for keyboard
pod 'SDWebImage'
pod 'PureLayout'
pod 'IQKeyboardManagerSwift'
pod 'Google-Mobile-Ads-SDK'
end
Run Code Online (Sandbox Code Playgroud)
编辑
先前选择的答案已经工作了一段时间,但在更改不相关 pod 的版本后,应用程序显示了相同的问题。
小智 6
FirebaseUI 版本 11 现在分为子模块,因此您需要导入单个模块(例如import FirebaseAuthUI),而不是以前仅使用import FirebaseUI. 或者指示您的 Podfile 使用旧版本。
重大变化:将单个 FirebaseUI 模块分解为每个功能的单独模块。您需要相应地更新项目中的导入。
Run Code Online (Sandbox Code Playgroud)// FirebaseUI 10.x import FirebaseUI // FirebaseUI 11 import FirebaseAuthUI import FirebaseDatabaseUI // ...
| 归档时间: |
|
| 查看次数: |
415 次 |
| 最近记录: |