【发布时间】:2017-06-07 15:17:51
【问题描述】:
在我的应用程序中,我通过 SendGrid (0.2.0) 发送电子邮件。 Sendgrid 与 afnetworking 2.0 一起正常工作,但由于某种原因,我不得不将 afnetworking 版本从 2.0 更新到 3.0。但是现在 SendGrid 出错了。所以我也通过 pod 更新它。
pod 错误 - 分析依赖关系 [!] 无法满足以下要求:
-
AFNetworking (~> 3.0)需要Podfile -
AFNetworking (~> 2.0)需要SendGrid (0.3.0)
Podfile 的内容:
来源'https://github.com/CocoaPods/Specs.git'
平台:ios,‘8.0’
目标“项目名称”做
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'AFNetworking', '~> 3.0'
pod 'SendGrid', '~> 0.3.0'
结束
谁能告诉我如何解决这个问题?
谢谢!
【问题讨论】:
-
只需将
SendGrid的Pod版本更新为最新版本,如pod 'SendGrid', '~> 0.3.0' -
@PiyushPatel,我已经按照你说的方式做了。但 pod 错误仍然存在。
-
只需将 Pod 版本的 SendGrid 更新为最新版本,例如 pod 'AFNetworking', '~> 2.0'
-
@sarita 试试
pod 'AFNetworking'pod 'SendGrid'不指定版本 -
@sarita 您不能使用 AFNetworking 的版本
3.0,因为SendGrid (0.3.0)与该版本的AFNetworking不兼容,所以您可以使用AFNetworking (2.6.3)
标签: objective-c ios8 cocoapods sendgrid afnetworking-3