Symbol not found: _sqlite3_intarray_bind

Hello everybody. I need some help on runnig an application which uses self compiled sqlite library. The library is compiled together with the whole project and is located in the same directory as the application. The application compiles just fine without any complications but i get an error while trying to run it. Before the application cat start i get the following error:


dyld: Symbol not found: _sqlite3_intarray_bind

Referenced from: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData

Expected in: /Users/r00t/Documents/Develop/CPP/opticalmeltingcontrol/build/Debug/libsqlite3. 9.0.0.dylib

in /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData

Program ended with exit code: 9


And the interesting fact is that i can run the binary from the file manager and it works without any problems. But i need to get it runnig with xcode.


Thanks for help in advance and forgive me my bad english.

MacBook Pro (13-inch Mid 2012), OS X Mavericks (10.9), Additional frameworks: wxWidgets

Posted on Nov 26, 2013 3:51 AM

Reply
10 replies

Nov 26, 2013 6:30 AM in response to temudjin

Is it the same version of SQLite? Do the compile-time modifications change any of the function signatures? If not, then an easy fix is to just add a copy files phase and copy your dynamic library into the bundle. Then, add another build script to run install_name_tool to point your application's sqlite dynamic library to your bundled version with an @executable path.

Nov 26, 2013 8:16 AM in response to temudjin

The error you are getting is from CoreData. The runtime is expecting a certain version of SQLite. It isn't that you are adding functions, you seem to be removing them. Are there different SQLite build settings you can try that would satisfy both your app and CoreData? Whose use of CoreData is more important to you? Can you move one of them to an XPC task? Can you switch your CoreData to use XML?

Nov 26, 2013 10:42 PM in response to etresoft

With my compilation settings for sqlite i get the possibility to set a password for the database (this is never a default feature). The function i dont have is "sqlite_intarray_bind" and i could not even find this function anywhere in any heading files.

I dont have the possibility to use the XPC-Services, because i'm using the wxWidgets as the main framework (for the cross-platform application). And like i already mentioned, the application starts without the Xcode (manual start by openning the .app). Why is Xcode searching for other headings, when i say to it, where to search.

I tried to prioritize the path to the headings, but it didn't helped :/


P.S XML is no choice for me, because of the security and already programmed parts of the application.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Symbol not found: _sqlite3_intarray_bind

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.