0

我在我的项目中使用Firebase以及Google使用歌曲。 为此,我使用pod库。Google/CloudMessaging'和Firebase/Messaging'失败,出现错误重复符号

pod 'SVProgressHUD' 
pod 'SDWebImage' 
pod 'AlamofireObjectMapper', '~> 4.0' 
pod 'Google/SignIn' 
pod 'IQKeyboardManagerSwift' 
pod 'FBSDKLoginKit' 
pod 'Firebase/Core' 
pod 'Firebase/Messaging' 
pod 'Firebase/Auth' 
pod 'Google/CloudMessaging' 

这是我在工程中使用的吊舱。

现在我删除pod 'Google/CloudMessaging'然后应用构建成功,但GGLContext.sharedInstance().configureWithError(&configureError) 给错误像下面

您已在开发者控制台上CloudMessaging服务,但它看起来好像你Podfile缺少行:“荚“谷歌/ CloudMessaging“,或者您可能需要在项目目录中运行pod update

如果我加入pod "Google/CloudMessaging pod,然后生成项目XCode失败,并返回duplicate symbols

如何添加两个并避免此错误。

回答

0

看来你不能使用GCM和FCM,因为FCM是新的改进的GCM,你肯定会遇到那种错误。你可以看到这个问题在这SO post