升级Firebase Pods后,该项目存在不明确的参考问题,有什么建议吗?

当我将Pods与版本4.10.0一起使用时,它可以完美运行,但是如果使用最新版本(5.0.0),则会出现错误。

我的Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

target 'AppName' do
    pod 'OpenSSL-Universal'
    pod 'Firebase/Core', '4.10.0'
    pod 'Firebase/Messaging', '4.10.0'
    pod 'GoogleToolboxForMac/Logger'
    pod 'AppCenter'
end

target 'AppName DEV' do
    pod 'OpenSSL-Universal'
    pod 'Firebase/Core', '4.10.0'
    pod 'Firebase/Messaging', '4.10.0'
    pod 'GoogleToolboxForMac/Logger'
    pod 'AppCenter'
end`

ios - Firebase模棱两可的引用“FIRMessagingAPNSTokenType…模棱两可”-LMLPHP

解冻并前进!

最佳答案

如果您在2个不同的框架中拥有相同的类,通常会发生这种情况。可以同时引用4和5吗?

尝试注释掉“BRy-Autenticador DEV”部分,并仅构建“BRy-Autenticador”目标。

运行“pod install”后,检查您的Podfile.lock。它应仅包含一个版本的Firebase框架。

09-11 18:35
查看更多