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

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.

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

Related

ProgressHUD: Undefined symbols for architecture x86_64:

I always get the same error using ProgressHUD.
Implementation is no problem but when I call PRogressHUD.show...
I get the error:
Undefined symbols for architecture x86_64:
xCode version: 10.1
Swift version: 4.2
Thanks for your help!
According to the ProgressHUD documentation, the recommended way install the library is through CocoaPods
CocoaPods is the recommended way to add ProgressHUD to your project.
Now I don't know how exactly did you add the library to the project, but trying to install it with CocoaPods will most probably solve your issue.
The rest of your implementation should remain intact.

Social.framework not found

I'm trying to link Facebook SDK 3.1 with my existing iOS application. Base SDK is 6.1, iOS Deployment Target is set to 5.1.
I added Social, Accounts and AdSupport framework to the project and set them to Optional in the Build Phases > Link Binary with Libraries. I also tried to manually link them with -weak_framework in "Other Linker Flags".
However, I always end up with:
ld: framework not found AdSupport
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What am I doing wrong?
Thanks in advance!
EDIT: Using XCode version 4.6 by the way!
the social framework is new in iOS6, if you are supporting iOS5 you has to go to your Target Properties/Build Phases/Link Binary with Libraries and mark the Social framework as Optional as shown in the image

deezer-ios adding static library

I'm trying to use the iOS SDK provided by Deezer to develop an iPhone application. I downloaded the framework here.
I started a new projet on Xcode (xcode 3.2.6), then I imported all the headers files (and the pics in Resources). Then I made right click on Frameworks and chose "add > add existing framework" and selected the "libDeezer.a" provided by deezer.
I wrote some code in my application delegate class, and when I try to build and run the project I got one warning and one error :
ld: warning: in /Users/.../deezer-ios-sdk-0.5 3/deezer-ios-0.5/libDeezer.a, missing required architecture i386 in file
Undefined symbols:
"_OBJC_CLASS_$_DeezerConnect", referenced from:
objc-class-ref-to-DeezerConnect in deezer5AppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
How can I link the library to my project? Any ideas?
Double click on project target, and in the search path group, there is a attribute called Library Search path. please specify the path correctly.
if you have still doubt let me know , i will specify more
Are you building for simulator or device ?
The Deezer's iOS SDK is not working on simulator, but devices only.

how to install coreplot on mac and use it for ios applications

I downloaded the latest coreplot installer from their site and extracted the package file the procedure as mentioned in the installer was followed
Add to your project's .PCH file:
#import < CorePlot/CorePlot.h >
Open Project -> Edit Project Settings and for All Configurations:
3a. Add to Additional SDKS:
(System)
/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk
I checked this but there is no sdk in the following path
(User)${HOME}/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk
I added this only to the additional sdks
3b. Add to Other Linker Flags:
-ObjC -all_load -lCorePlot
4 Add the QuartzCore framework to the project.
after this step i tried to run the application but a lot of errors are being displayed
the errors are :
warning: "__IPHONE_OS_VERSION_MIN_REQUIRED" redefined
warning: this is the location of the previous definition
error: syntax error before '^' token
error: 'type name' declared as function returning a function
how to correct this error?
Add a CPGraph to your application.//how to add the CPGraph
any detailed description on how to install this.urgently required
You can do that Simply without any complications please navigate to this link:
Instructions for using Core Plot in your OS X or iPhone/iPod Touch application
Read the Wiki section carefully and Good luck.

SSHCore Framework can't run in iphone sdk

I have downloaded SSHCore source code which uses libssh2 library.
That code build successfully, but as i put that in my code and build it, it builds successfully but after running it gives me this error:
dyld: Library not loaded: #executable_path/../Frameworks/SSHCore.framework/Versions/A/SSHCore
Referenced from: /Users/mac04/Library/Application Support/iPhone Simulator/4.0/Applications/541D1C93-3E50-4932-841C-2D63F5F7FF10/SSH.app/SSH
Reason: image not found
If any one has used this then please help me to solve this issue.
Thanx in advance.
You can't run 3rd party frameworks on iOS.
Have you followed these instructions to turn it into a library that can be used on the iPhone?