【发布时间】:2013-12-31 20:46:21
【问题描述】:
当我使用 cocoapods 将 AFNetworking 添加到我的工作区时,一切似乎都已到位,但我无法在我的代码中实例化任何 AFHTTPClient 实例。文件:AFHTTPClient.h 和 .m 不在 AFNetworking 层次结构中的任何位置。
目前,我的 Podfile 如下所示:
platform :ios, '7.0'
pod 'AFNetworking', '~> 2.0'
pod 'Parse', '1.2.17'
我的 CLI pod update 命令可以从终端正常运行,如下所示:
nmaster >> pod update
Analyzing dependencies
Downloading dependencies
Using AFNetworking (2.0.3)
Using Facebook-iOS-SDK (3.11.0)
Using Parse (1.2.17)
Generating Pods project
Integrating client project
我在代码中看到的错误如下所示:
我看到很多帖子提到 HEADER SEARCH PATH 不足,但我已经确认文件本身不存在。 AFHTTPClient 是否已被弃用?我确实在 Ray W. 的 AFHTTPClient.h 和 .m 文件的教程之一中找到了一份副本,并尝试将它们拖放到我的项目中,但这会导致重复引用和其他问题。
有人知道我应该从哪里解决这个问题吗?
谢谢,菲尔
【问题讨论】:
标签: ios7 cocoapods afnetworking-2