4

添加Restkit到后Podfile

 platform :ios

 dependency 'Facebook-iOS-SDK', '1.2'
 dependency 'RestKit', '0.10.1'

并运行:

 $ pod install
 Updating spec repo `master'
 Using Facebook-iOS-SDK (1.2)
 Using SBJson (2.2.3)
 Generating support files

未安装 RestKit。RestKit我该如何安装CocoaPods

4

1 回答 1

0

根据此拉取请求的信息,更新Podfile为:

platform :ios

dependency 'Facebook-iOS-SDK', '1.2'
dependency 'RestKit', '0.10.1'
dependency 'RestKit/Network', '0.10.1'
dependency 'RestKit/ObjectMapping', '0.10.1'
dependency 'RestKit/ObjectMapping/CoreData', '0.10.1'
dependency 'RestKit/ObjectMapping/JSON', '0.10.1'
dependency 'RestKit/ObjectMapping/XML', '0.10.1'
dependency 'RestKit/UI', '0.10.1'

或通过以下方式更新到最新版本 (0.6.2.rc2) cocoapods

gem install cocoapods --pre
于 2012-06-11T08:45:31.347 回答