clang: error: linker command failed with exit code 1 (use -v to see invocation) Parse.com and Swift - 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.

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

Can't use FBSDKShareVideo without ENABLE_BITCODE Linker command error

I have the latest Bolts, FBSDKCoreKit, FBSDKLoginKit and FBSDKShareKit as part of the Facebook SDK frameworks which I am using in Swift. In a Swift file, I imported FBSDKCoreKit and FBSDKShareKit. If I use FBSDKShareVideo in any way, I get a Linker command error that reads
".../Frameworks/FBSDKShareKit.framework/FBSDKShareKit(FBSDKShareVideo.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
clang: error: linker command failed with exit code 1 (use -v to see invocation)"
-I've looked up solutions to this online, mostly which were to set Enable Bitcode in the project's settings, which was already set to YES. I also tried setting it to NO. I've tried various combinations of YES and NO with the project and target's settings.
-I then added the frameworks to the Copy Bundle Resources and rebuilt. I still get the error.
-I've cleaned, rebuilt
-I quit out of Xcode and reopened the project and rebuilt.
The line in which I try to use FBSDKShareVideo reads:
let video : FBSDKShareVideo = FBSDKShareVideo()
Without using that line and having the FBSDKCoreKit and FBSDKShareKit imported, I get no errors. So how can I possibly resolve this so I can use FBSDKShareVideo?

xcode7: hit linker command failed with exit code 1 under

I hit below error when build app on real device(ios9.0) use xcode7 beta:
ld: library not found for -lPods...... clang: error: linker command
failed with exit code 1 (use -v to see invocation)
I tried to
change the config "Enable Bitcode" to "NO".
hardcode Framework path under build setting tab
but it didn't help.
check this framework if existed in your project folder,you can right
click on this framework in Xcode.
if existed, delete this framework under Frameworks in Xcode and then copy this framework into Xcode again for re-reference.

library not found for -lstdc++ in Xcode

I am using the openCV2.framework in my application. It works fine in the simulator, but is not compiling for iOS devices. It get the following error
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I added other linking flag also...
Try using libc++ instead of stdc++. (lib)std++ went GPLv3, so Apple is pushing libc/c++ instead.
I am answer my own question. I solved this problem by add the go to Target -> BuildSettings ->search Path -> library Searchpath
give the correct path of added dynamic library Path .
Now it will work

Accessing Graph API getting errors

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..
:)