We are evaluating CouchBase as the local storage and sync solution for our cross platform framework. When I run the app on my iPhone, I get an error when the app tries to add a ChangeListener to a query:
System.ExecutionEngineException: Attempting to JIT compile method ‘(wrapper native-to-managed) Couchbase.Lite.Database:DbObserverCallback (LiteCore.Interop.C4DatabaseObserver*,void*)’ while running in aot-only mode. See https://developer.xamarin.com/guides/ios/advanced_topics/limitations/ for more information.
The code resides in the shared project(MainPage.xaml.cs) and works on Android:
var database = new Database(“FirstBucket”);
var query = QueryBuilder.Select(SelectResult.All()) .From(DataSource.Database(database)) .Where(Expression.Property(“type”).EqualTo(Expression.String(“SDK”)));
var queryToken = query.AddChangeListener((sender, args) =>
Any help would be appreciated,