Bug 240 - libsqlite3.dylib not found
Summary: libsqlite3.dylib not found
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 4.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2011-08-09 08:41 UTC by Mike Bluestein
Modified: 2011-08-09 08:50 UTC (History)
2 users (show)

Tags: SQLite
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Mike Bluestein 2011-08-09 08:41:42 UTC
I'm getting a DLLNotFoundException in the simulator. 

Unhandled Exception: System.DllNotFoundException: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/usr/lib/libsqlite3.dylib
  at (wrapper managed-to-native) Mono.Data.Sqlite.UnsafeNativeMethods:sqlite3_open_v2 (byte[],intptr&,int,intptr)
  at Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) [0x00040] in /Developer/MonoTouch/Source/mono/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs:119 
  at Mono.Data.Sqlite.SqliteConnection.Open () [0x0021a] in /Developer/MonoTouch/Source/mono/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLiteConnection.cs:876 

This is on Lion with Xcode 4.1, iOS 4.3, Mono 2.10.3 MonoDevelop 2.4.2 and MonoTouch MonoTouch seems to be looking for it in the iOS 3.2 simulator, which I don't have on this machine. Nothing is set for 3.2 in the project. Work-around is just to create the 3.2 directory and copy the libsqlite3.dylib from the 4.3 sdk.
Comment 1 Rolf Bjarne Kvinge [MSFT] 2011-08-09 08:50:54 UTC
This has been fixed already and will be in the upcoming 4.1 release.