I upgraded to the latest Xamarin iOS update and now my app crashes on Couchbase initialization.
The code crashes when calling Manager.Instance with the following exception. It appears to be some sort of SecurityPermission issue with the logger. Anyone know of a solution or workaround? I’ve submitted bugs to both Xamarin and couchbase-lite-net (https://github.com/couchbase/couchbase-lite-net/issues/529)
CBTestApp[844:223812] The type initializer for ‘Couchbase.Lite.Util.Log’ threw an exception.
CBTestApp[844:223812] at Couchbase.Lite.Manager…ctor (System.IO.DirectoryInfo directoryFile, Couchbase.Lite.ManagerOptions options) [0x00006] in /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:199
at Couchbase.Lite.Manager.get_SharedInstance () [0x00000] in /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:111
at CBTestApp.ViewController.ViewDidLoad () [0x00008] in /Users/phamt/Projects/CBTestApp/ViewController.cs:24
CBTestApp[844:223812] Linked Away
CBTestApp[844:223812] at System.Security.Permissions.SecurityPermission…ctor (SecurityPermissionFlag ) <0x2e9b60 + 0x0001c> in :0
at System.Diagnostics.Trace.get_Listeners () [0x00000] in /Users/builder/data/lanes/2356/3c0ec355/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/System/compmod/system/diagnostics/Trace.cs:34
at Couchbase.Lite.Util.CustomLogger…ctor (SourceLevels logLevel) [0x00024] in /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Util/CustomLogger.cs:67
at Couchbase.Lite.Util.LoggerFactory.CreateLogger () [0x00000] in /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Util/LoggerFactory.cs:57
at Couchbase.Lite.Util.Log…cctor () [0x00000] in /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Util/Log.cs:55