In a newly created Xcode project with ARC enabled, there are warning messages in 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')
Here is the Podfile
:
platform :ios
dependency 'Facebook-iOS-SDK', '1.2'
dependency 'RestKit', '0.10.1'
with:
cocoapods (0.6.0.rc2)
How can the warnings be fixed?
UPDATE:
After further investigation, it seems that CocoaPods depends on a out-dated cocoa-oauth
library, which is described in this issue. So the question becomes:
- How can I config CocoaPods to use https://github.com/RestKit/cocoa-oauth instead of the outdated one?