facebookios6sharekitxcode4.5fbrequest-form

Linker error: CFHTTP request methods in libShareKit.a on Xcode 4.5 and ShareKit 2.0


I try to intergrate the sharekit 2.0 into my app and installed the new ShareKit 2.0 as a Submodule in my local Git repository. I think I've followed the install instructions properly, but I'm getting 18 linker errors on the 'smoke test'.

Here some error:

Undefined symbols for architecture i386:
  "_CFHTTPMessageCopyHeaderFieldValue", referenced from:
      -[LFHTTPRequest(PrivateMethods) readStreamHasBytesAvailable] in libShareKit.a(LFHTTPRequest.o)
      -[LFHTTPRequest(PrivateMethods) readStreamEndEncountered] in libShareKit.a(LFHTTPRequest.o)

I have included libShareKit.a under 'Link Binary with Libraries' in the Build Phases as indicated in the directions. It is showing up red, if that means anything.

Help would be greatly appreciated. Thanks.


Solution

  • Please add CFNetwork, CoreLocation and Twitter frameworks and rebuild your application.