在启用 ARC 的新创建的 Xcode 项目中,有警告消息RKRequest.m
:
Semantic Issue:
Instance method '-hostAndPort' not found (return type defaults to 'id')
Semantic Issue:
Class method '+URLRequestForPath:PUTParameters:scheme:host:consumerKey:consumerSecret:accessToken:tokenSecret:' not found (return type defaults to 'id')
Semantic Issue:
Instance method '-hostAndPort' not found (return type defaults to 'id')
Semantic Issue:
Class method '+URLRequestForPath:POSTParameters:scheme:host:consumerKey:consumerSecret:accessToken:tokenSecret:' not found (return type defaults to 'id')
Semantic Issue:
Instance method '-hostAndPort' not found (return type defaults to 'id')
这是Podfile
:
platform :ios
dependency 'Facebook-iOS-SDK', '1.2'
dependency 'RestKit', '0.10.1'
和:
cocoapods (0.6.0.rc2)
如何修复警告?
更新:
经过进一步调查,似乎 CocoaPods 依赖于一个过时的cocoa-oauth
库,这在本期中有描述。于是问题就变成了:
- 如何配置 CocoaPods 以使用https://github.com/RestKit/cocoa-oauth而不是过时的?