4

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:

john.k.doe
  • 7,533
  • 2
  • 37
  • 64
ohho
  • 50,879
  • 75
  • 256
  • 383

2 Answers2

0

I don't know anything about cocoapods, but I do know about your warnings. Those warnings mean that the messages that you are trying to send the objects are not found in the header.

This can mean a few things:

- the header file is not in the search path of your build settings. 
- the header file does not exist.
- the header file is not included in your project.
- the methods do not exist at all or do not exist in your header.

Make sure that you are importing the RKRequest.h file and that is in the search path. Remember, if RKRequest.m is apart of a framework or library your project still needs the headers.

Matt Hudson
  • 7,329
  • 5
  • 49
  • 66
0

Add this to your .m source

#import < RestKit/RestKit.h >

and lib to your project

See related

RestKit/RestKit.h file not found error - version 0.10.0

Community
  • 1
  • 1
RAZ
  • 577
  • 3
  • 5