Firebase含糊不清的参考文献“FIRMessagingAPNSTokenType ...含糊不清”

时间:2018-05-29 14:05:31

标签: ios objective-c firebase firebase-cloud-messaging

升级Firebase Pod后,项目存在模糊的引用问题,有什么建议吗?

当我使用版本4.10.0的Pod时,它可以很好地工作,但如果我使用最新版本(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`

enter image description here

Thaks并推进!!

1 个答案:

答案 0 :(得分:1)

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

尝试评论" BRy-Autenticador DEV"部分并仅构建' BRy-Autenticador'目标

运行" pod install"后检查你的Podfile.lock。它应该只包含一个版本的Firebase框架。

相关问题