我正在运行 Xcode 版本 7.3 (7D175) 并想试用 Restkit for ios。 所以我开始关注 this教程。我来到这部分:
$ sudo gem install cocoapods
$ pod setup
$ cd /path/to/CoffeeKit
$ touch Podfile
$ [edit] Podfile (using your preferred editor; vim, nano, etc)
platform :ios, '5.0'
pod 'RestKit', '~> 0.20.0'
然后我运行 pod install。在一些问题和谷歌搜索上,我更新到更新版本的 cocoapods,现在我的 pod 文件看起来像
target "Reminder" do
platform :ios, '9.3'
pod 'RestKit', '~> 0.20.0'
end
现在,当我尝试构建我的项目时,出现错误:
\'RKObjectManager.h' file not found
Stack overflow has this answer
我尝试添加 header 搜索路径中提到的任何内容,但没有解决问题。我是 iOS 新手,很抱歉提出了愚蠢的问题
最佳答案
这与RestKit本身无关,而是与Build设置/cocoapods找不到头文件有关:
我通过添加解决了这个完全相似的问题:
“${PROJECT_DIR}/Pods”递归
到:“build设置”/“用户 header 搜索路径”设置。
这是一个指向 stackoverflow 的链接,您会发现许多可以解决您的问题的替代方法。
关于找不到 iOS "RKObjectManager.h",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38273124/