1

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

当我使用版本为 4.10.0 的 Pod 时,它运行良好,但如果我使用最新版本 (5.0.0),我会收到错误消息。

我的播客文件:

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`

在此处输入图像描述

谢谢并提前!!

4

2 回答 2

1

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

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

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

于 2018-05-29T16:38:18.813 回答
0

我解决了这个问题写作......

[FIRMessaging messaging].APNSToken = deviceToken;

反而...

在此处输入图像描述

关于 didRegisterForRemoteNotificationsWithDeviceToken 方法。

谢谢!!

于 2018-09-13T14:21:05.703 回答