Hi everyone,
I’ve just started a new project using Capacitor 8.0.0 (Blazor WASM) and I am looking for a reliable, SPM-compatible database solution for iOS and MacCatalyst.
As many of you know, Capacitor 8 relies heavily on the Swift Package Manager. I’ve tried the community SQLite plugins, but I’m facing significant build issues on macOS (errors like Missing package product CapApp-SPM or compilation failures in Xcode). It seems the migration path for free SQLite plugins to version 8 is still very rocky.
My requirements:
-
Persistent Storage: Data must survive WebView cache purges (stored in native folders).
-
MacCatalyst Support: Essential for my desktop target.
-
License: Preferably free / open-source.
My Questions:
-
Are there any native DB plugins (SQL or NoSQL) that are already fully compatible with Capacitor 8’s SPM structure?
-
Given the current plugin situation, would it be a “best practice” to use SQLite WASM inside the WebView and persist the data via the
@capacitor/filesystemplugin instead?
I want to avoid a “legacy” setup with CocoaPods and stay within the modern Capacitor 8 ecosystem. Any advice from those already working with v8 would be great!
pc