I am working on a barcode reader app in iPhone. I am using the Zbar barcode reader app available on the web. I have tried sample code and it is working perfactly. It is scanning barcodes.
Now I want to fetch the code and pass it as unique Id in my SQLite database.
The problem is when I try to add libraries of both SQLite and barcode. It is giving me errors like:
Undefined symbols for architecture i386:
"_objc_autoreleasePoolPush", referenced from:
_main in main.o
"_objc_msgSend", referenced from:
_main in main.o
-[AppDelegate dealloc] in AppDelegate.o
-[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
-[AppDelegate createEditableCopyOfDatabaseIfNeeded] in AppDelegate.o
-[AppDelegate applicationDocumentsDirectory] in AppDelegate.o
-[ViewController databaseOpen] in ViewController.o
-[ViewController SaveData:] in ViewController.o
...
"_NSStringFromClass", referenced from:
_main in main.o
"_objc_autoreleasePoolPop", referenced from:
_main in main.o
I am getting 28 same type of errors..
I have searched on the web. But no one has used bar codes with SQLite. They have used other databases. Can I use an SQLite database to store barcode fetched data? How do I fix these errors?
This links may be useful to you.
Please check them out.
1] Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage", referenced from: error
2] Try adding QuartzCore.framework to your app if you have not added it
3] Also make sure you have added all the libraries that you need to.
Please cross check it as this is generally an error that comes up when some framework or library is missing.
Hope this helps you.