SQLite iPhone error, - iphone

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!

Related

Xcode error: building for iOS Simulator, but linking in object file built for iOS

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.

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

Apple LLVM compiler 3.0 Error comes in IPhone Phonegap BarcodeScannerplugin

I want to run Iphone Phonegap BarcodeScanner plugin in IPAD. I have gone through the zing document and Barcode read.txt files(git hub) . I did the actions mentioned in the documents but it will showing Apple LLVM compiler 3.0 Error . I have changed 3.0 to 4.2 version also but no change . so can any one guide me .
This the error if put 4.2 version
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
If i changed to 3.0
it shows this error clang error exit code 1
No i am using Xcode 4.2 version . I have changed all the things mentioned in the above link but it showing the the error following error Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
use this link
and read this topic"Compile Errors for Automagic Reference Counting (ARC)" in this link
and implement . I have resolve my problem .

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

Printing in 4.2 SDK - would like to support 4.0 without app crashing

I'm trying to have printing in my application.
While this works, and I can indeed print from my application, I would like to be able to run my application on devices that aren't running iOS 4.2.
Even if I check the version before I run the code.
The method that prints the document has all of the classes that are being used to print.
Whenever I switch the simulator back to 4.1, I get a Symbol not found exception that displays the error:
dyld: Symbol not found: _OBJC_CLASS_$_UIMarkupTextPrintFormatter
Referenced from: /Users/Jack/Library/Application Support/iPhone Simulator/4.1/Applications/794534DB-DB53-42E7-A294-7E78FDD3899B/Documentation.app/Documentation
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/UIKit.framework/UIKit
in /Users/Jack/Library/Application Support/iPhone Simulator/4.1/Applications/794534DB-DB53-42E7-A294-7E78FDD3899B/Documentation.app/Documentation
I don't want to discard the users who haven't upgraded to 4.2.
Any help appreciated.
Which compiler are you using? If you haven't, you should switch to LLVM GCC or LLVM to support automatic weak linking as described by Marco Arment in Supporting older versions of iOS while using new APIs.