我正在开发一个由另一个开发人员开发的遗留iOS应用程序,它使用谷歌云消息发送推送通知,我已经添加了Firebase数据库,但我不得不禁用GCM,因为当Firebase和GCM在podfile中添加在一起时,我正在使用单独的plist文件进行Firebase配置。
我没有GCM应用帐户的访问权限,无法迁移到Firebase messaging。
有没有办法同时使用GCM和Firebase数据库?
这是用过的podfile
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'SDWebImage'
pod 'PKRevealController'
pod 'MKNetworkKit'
pod 'VGParallaxHeader'
pod 'TTTAttributedLabel'
pod 'RSBarcodes', '~> 0.1.3'
pod 'MDHTMLLabel'
pod 'EAIntroView', '~> 2.9.0'
pod 'Google/Analytics’
#pod 'Google/CloudMessaging'如果未注释#pod 'Google/CloudMessaging行,则xcode (7.3)构建将失败,并给出duplicate symbols for architecture armv7错误
发布于 2017-02-10 09:59:51
如果你想使用Firebase,你可能应该把GCM升级到Firebase Cloud Messaging。除了客户端SDK应该更容易使用之外,在内部都是一样的。
https://stackoverflow.com/questions/40781878
复制相似问题