SaltechSystems / couchbase_lite

Flutter plugin for the Community edition of Couchbase Lite. Couchbase Lite is an embedded lightweight, document-oriented (NoSQL), syncable database engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fatal Error: couchbase_lite/couchbase_lite-Swift.h file not found

DustyLamp opened this issue · comments

I am trying to run a flutter app on the ios simulator and it's failing with the following error:

ios/Classes/CouchbaseLitePlugin.m:2:9: fatal error: 'couchbase_lite/couchbase_lite-Swift.h'
file not found
#import <couchbase_lite/couchbase_lite-Swift.h>

which ultimately results in:

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.

I couldn't find the file either but I'm quite unfamiliar with ios builds. Is couchbase_lite-Swift.h a generated file or something? Or do I need to install or copy couchbase lite swift files somewhere?

The application was started about 10 months ago and has been built in VScode on a windows machine. It runs without a problem on Android and I'm now trying to get it onto an iPhone simulator.

I'm pointing at a beta branch commit from my pubspec.yaml:

  couchbase_lite:
    git:
      url: git://github.com/SaltechSystems/couchbase_lite.git
      ref: 2b53288

Steps to reproduce the behavior:

  1. Navigate to my project folder
  2. type:

Flutter Run

  1. See error
  • Device: iPhone 11 simulator

Ok looks like it's working after modifying my Podfile to include:

  # Plugin Pods
  use_frameworks!
  pod 'CouchbaseLite-Swift', '~> 2.6.3'