ios - Firebase pod 安装错误其他 pod 安装

标签 ios objective-c iphone firebase

我真的卡在了将 Firebase 安装到我的 iOS 应用程序的这一步。我安装了其他一些 pod,但效果很好。但是在安装 Firebase 之后,它会出现错误“链接器命令失败,退出代码为 1(使用 -v 查看调用)”。我弄清楚了这个问题。这是因为 pod 'GVRSDK'。当我删除此 pod 'GVRSDK' 时,它会完美运行。给定图像中提到的错误。

enter image description here

我的应用 pod 内容如下:

pod ‘Firebase/Messaging’
pod 'SDWebImage', '~>3.8'
source 'https://github.com/CocoaPods/Specs.git'
pod 'Google/SignIn'
pod 'GVRSDK', '0.8.5'
pod 'RSKImageCropper'
pod 'AFNetworking', '~> 3.0'
pod 'Google/CloudMessaging'

提前致谢。

最佳答案

在你的 Pod 文件中,你应该根据你的 Pod 使用正确的逗号,Firebase pod 部分应该像'Firebase/Messaging' 使用它而不是 'Google/CloudMessaging' 因为那个 pod 被弃用了。在您的 pod 中删除该行并重新安装它。这将解决您的问题。

关于ios - Firebase pod 安装错误其他 pod 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46388764/

相关文章:

ios - Flutter 应用程序在 IOS 中未完全显示

iOS:以编程方式将 UINavigationBar 添加到 UITableView

ios - 为NSString创建标签

iphone - 有没有比 -drawInRect :withFont:lineBreakMode:alignment:? 更快的东西

ios - 使用 JSON 数据填充 UILabel 并编码 URL

c# - JsonFormatter.SerializerSettings ReferenceLoopHandling.Ignore 导致 EF 模型无限循环

iphone - 校准代码到 iphone 加速度计和陀螺仪数据

iphone - 与弗兰克和 cucumber 一起复制资源

ios - 位置服务在 iOS 11 中不起作用

iphone - NSMutableDictionary上的EXC_BAD_ACCESS