Accessing Graph API getting errors - iphone

I am facing one problem : i am using Graph API in my application. app working fine every time but there are displayed 3 errors , though there are errors app is running...
1) error "_OBJC_CLASS_$_FbGraph", referenced from:
2) error "_OBJC_CLASS_$_FbGraphFile", referenced from:
3) Linker command failed with exit code 1 (use -v to see invocation)
for more information : I am using XCODE 4.3.2
what should i do to remove these errors ? need help...

i think define linkers flag with -all_load if required the -lstdc++, -ObjC, -lxml2....
and yes also check that Architecture define with these two armv6 and armv7.....
and then if its give error then define compiler with LLVM-GCC or LLVM and then restart app...
hope this help you..
:)

Related

Leveldb framework not found swift

I recently upgraded my Xcode to the latest version and a big project I was working on had to be updated and fixed. Once the code updated I tried to run the app on simulator and iOS device but I always get the same error and I don't know where it comes from. I know it means the leveldb framework is missing but I don't find it anywhere on the internet. I am using Firebase.
Here's the error I get
ld: framework not found leveldb
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I would really appreciate if one of you knew how to fix this! Thanks

clang: error: linker command failed with exit code 1 (use -v to see invocation) Parse.com and Swift

so today I updated my code to Swift 2 and now my app won't run because apparently the Parse Frameworks I was using have expired or something. This is the message I get: ld:
'/Users/tripphillips1/Desktop/Spotter/Parse.framework/Parse(PFAnalytics.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
Does anyone know what this means and how i can fix it?
Thanks
Ok so I found a solution to my problem. You have to go into the Build Settings and disable the Bitcode. Simple as that. Now it runs fine.

Cocoapods 0.35 is failing build

I'm working on a Swift app in Xcode 6. Everything was working okay until I decided to install cocoa pods and a pod. When I try to run it on the simulator, I get the following error:
ld: 91 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Before the error, there is a listing of all those duplicate symbols.
First few lines in error message:
Ld /<...>/Library/Developer/Xcode/DerivedData/<...>-gydnbbvfswpkkodlsuxdkpzkklzb/Build/Products/Debug-iphonesimulator/<...>.app/<...> normal x86_64
cd "/<...>/Documents/iOS Apps/<...>/<...>"
export IPHONEOS_DEPLOYMENT_TARGET=8.1
I even tried uninstalling the pod, but the error persists. I'm completely stuck – any help is much appreciated. Thanks!
Maybe you should update your CocoaPods to 0.36 or a later version, and add use_frameworks! to your Podfile. See this: CocoaPods 0.36 - Framework and Swift Support
Maybe :
You have put the same class implementation into two different files;
You actually have just one implementation of this class, however you are also linking in your project a framework or library containing a class whose name is exactly the same of yours.

Strange compiler warning when precompiling prefix.pch

When I want to start my app, I get this:
clang: error: invalid version number in '-mios-simulator-version-min= '
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
What's going on? When I google this error, I'm getting ZERO. This seems to be a very strange failure.
Please apologize, that I can't give more information. It's because I'm completely clueless.
Help!
OK, I've found the solution:
.xcodeproj > General > Deployment Target ----> was empty!
This is not allowed.
Try cleaning your project and/or quitting and relaunching Xcode. I've had various odd problems with Xcode that require one or the other of those things.
In my case there is a space after 8.0 like "8.0 ". When I remove space and re-build error disappears.

trying to compile/ link tweak on iphone with theos and gcc

ive been trying to compile a mobile substrate tweak forever, but with no luck. so far, it compiles to the point where i get a .o file, but never to a .dylib. I keep getting the error:
ld: framework not found Foundation
collect2: ld returned 1 exit status
right after it says linking
i know the foundation/foundation.h is in the include folder
ive googled forever but have found no answer
please help!
btw im on ios 4.1 ipod touch 2gmc and theos and perl were installed fine
Thanks!
projname_FRAMEWORKS = UIKit Foundation
add this below the projname_FILES