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
Related
Never had a lot of problems until the time to buy Macbook Air M1. Just yesterday my app was build without any error in Xcode 12.4. I did not make any special changes and today build failed:
/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a' for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please can you help me, how to solve it?
Looks like a missing Arm64 simulator slice in the OpenSSL-Universal CocoaPods distribution.
Make sure that you're using the latest version with pod update and contact the OpenSSL-Universal if there's still an issue.
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.
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.
ld: warning: directory not found for option '-L"/Users/qingyun/Sqy/iosHistory/iOS/iOS/newSDK/newFramework/GameLive/GamePlusAPI/woa"'
ld: library not found for -lwoa_two
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Xcode 5.0-DP test by iPhone 5 iOS 7 beta 6
OS X 10.8.4
When i add Third-Party Libraries in my project. then had this issue. i don't know why.
if somebody knows how to resolve this issue, please let me know.
thanks for reading ..
Go to your project directory and remove the folders Pods/ and yourProject.xcworkspace.
Run pod install again and reopen yourProject.xcworkspace on XCode. Things should go back to normal.
I am following through this tutorial and after completing it I am getting an error on build.
The error isn't associated with any line of source code though.
This is the error I get:
Line Location Tool:0: collect2: ld returned 1 exit status
Line Location Tool:0: symbol(s) not found
Line Location Tool:0: -[todo initWithPrimaryKey:database:] in todo.o
Line Location Tool:0: "_sqlite3_bind_init", referenced from:
I'm not sure what the error is.
The tutorial is building for the iPhone 2.0 framework but I am building for 3.0.
Their libsqlite3.0.dylib is from the iPhone 2.0 SDK whereas mine is from the 2.2.1 SDK (that's the newest version that is over 1mb)
I've tried the 2.0, 2.2.1 and 3.0 framework libsqlite3.0.dylib files, they all provide this same error.
Could anyone give me some advice on what to do here? I've tried googling the error and I get nothing at all.
I was getting more errors similar to this one until I realized that I was using the libsqlite3.0.dylib from the OS X SDK not the iPhone SDK. Once I switched that I only had this error left.
Was a typo.
sqlite3_bind_init was supposed to say:
sqlite3_bind_int
init vs int.
Oops!
Bye!