I’ve been running Couchbase.Lite.Enterprise 2.8.6 (stand-alone no sync) from Xamarin.Forms for few years now. Now all of a sudden, it stopped working due this error. It works in simulator but not in the actual iPhone. The exception is coming from this piece of code:
Exception of type ‘Mono.Debugger.Soft.VMDisconnectedException’ was thrown.
HResult
-2146233036
int
HelpLink
(null)
string
InnerException
{System.DllNotFoundException: Unable to find or open library at /System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork at Couchbase.Lite.Support.IOSProxy.GetPointer (System.String libPath, System.String symbolName) [0x00015…}
System.DllNotFoundException
base
{System.TypeLoadException}
System.TypeLoadException
base
{System.SystemException}
System.SystemException
Exception of type ‘Mono.Debugger.Soft.VMDisconnectedException’ was thrown.
Message
Unable to find or open library at /System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork
string
TypeName
string
Non-public members
AssemblyName
The name ‘AssemblyName’ does not exist in the current context.
ClassName
The name ‘ClassName’ does not exist in the current context.
MessageArg
The name ‘MessageArg’ does not exist in the current context.
ResourceId
The name ‘ResourceId’ does not exist in the current context.
Message
The type initializer for ‘Couchbase.Lite.Support.IOSProxy’ threw an exception.
string
Source
Couchbase.Lite
string
StackTrace
at Couchbase.Lite.DI.Service…cctor () [0x00036] in C:\Jenkins\workspace\couchbase-lite-net-edition-build\couchbase-lite-net-ee\couchbase-lite-net\src\Couchbase.Lite.Shared\API\DI\Service.cs:87
string
TargetSite
{Void .cctor()}
System.Reflection.RuntimeConstructorInfo
Exception of type ‘Mono.Debugger.Soft.VMDisconnectedException’ was thrown.
This was probably caused by an update to iOS. At some point Apple changed the location of one of the libraries that Couchbase Lite was using. The new location is attempted, along with the old one, starting with version 3.1.3.