Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to link Tiger's SQLite3 library in Xcode?
    primarykey
    data
    text
    <p>I have been working on a project which uses Tiger's SQLite3 library (which if I remember well is contained in CoreData.framework?) and came across a problem when building with the "Release" config. I get linking errors telling me the sqlite3 symbols I use through my project are undefined. I'm pretty sure this is due to the needed sqlite3 library not being linked in the Release build but I can't seem to find why and where to set the Release build's linking.</p> <p>My project has no problem compiling in the Debug config. I have the CoreData.framework under "Other Frameworks" in my project. I tried putting it under "Linked Frameworks" but that does not change the outcome of the build.</p> <p>I have tried to find differences between the Debug and Release build configs in the Build Preferences but I can't seem to find anything different related to linking which could cause this issue.</p> <p>I bet there's a very small operation I should have done to prevent this but I did my research and I still can't seem to find anything anywhere. Some hints but nothing that helped me much so far. So I'm calling for your expertise.</p> <p>If you need any more info just tell me I'll update the question.</p> <p>Thanks in advance!</p> <hr> <p>UPDATE 1: I disabled the ZeroLink option in my target (for some reason I don't understand there is another option for this in the <em>project's</em> build tab which was disabled by default) and now the linking problem happens in the debug build configuration too, so I guess it's a step in the good direction. Now I only need to link the library. I have read the Apple docs on linking but I can't seem to find a way to make it work.</p> <p>What I don't know:</p> <ul> <li>Where exactly is Tiger's SQLite3 library which ZeroLink linked to previously to make it work? (is it /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/sqlite3/libtclsqlite3.dylib ?)</li> <li>How to add the library to my project's build. I tried dropping the dylib in my Frameworks and Target's "Link Binary With Libraries" but the build displays some other errors related to the dylib file.</li> </ul> <hr> <p>UPDATE 2: I solved my problem by including the SQLite3 amalgamation (.c and .h source files) in my project so they are built with it. I still don't know how to link a dylib though, and am interested in knowing where the SQLite3 library is in Tiger / Leopard.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload