This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 240 - libsqlite3.dylib not found
: libsqlite3.dylib not found
Status: RESOLVED FIXED
Product: iOS
Classification: Xamarin
Component: Runtime
: 4.x
: PC Mac OS
: --- normal
: Untriaged
Assigned To: Bugzilla
:
:
:
:
  Show dependency treegraph
 
Reported: 2011-08-09 08:41 EDT by Mike Bluestein
Modified: 2011-08-09 08:50 EDT (History)
2 users (show)

See Also:
Tags: SQLite
Test Case URL:
External Submit: ---


Attachments

Description Mike Bluestein 2011-08-09 08:41:42 EDT
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 4.0.4.1. 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 2011-08-09 08:50:54 EDT
This has been fixed already and will be in the upcoming 4.1 release.

Note You need to log in before you can comment on or make changes to this bug.