capacitor-community / sqlite

Community plugin for native & electron SQLite databases
MIT License
426 stars 104 forks source link

"CapacitorSQLite" plugin is not implemented on ios #530

Closed itsalb3rt closed 1 month ago

itsalb3rt commented 1 month ago

Describe the bug

I received "CapacitorSQLite" plugin is not implemented on ios in the console after running the iOS emulator, using Quasar v2

Only one thing won't happened in my Podfile the plugin is not in the list and when I add this manually, the npx cap sync removed that from the list, this is my Podfile

require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers'

platform :ios, '13.0'
use_frameworks!

# workaround to avoid Xcode caching of Pods that requires
# Product -> Clean Build Folder after new Cordova plugins installed
# Requires CocoaPods 1.6 or newer
install! 'cocoapods', :disable_input_output_paths => true

def capacitor_pods
  pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCommunityAppleSignIn', :path => '../../node_modules/@capacitor-community/apple-sign-in'
  pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
  pod 'CapacitorFilesystem', :path => '../../node_modules/@capacitor/filesystem'
  pod 'CodetrixStudioCapacitorGoogleAuth', :path => '../../node_modules/@codetrix-studio/capacitor-google-auth'
end

target 'App' do
  capacitor_pods
  # Add your Pods here
end

post_install do |installer|
  assertDeploymentTarget(installer)
end
jepiqueau commented 1 month ago

@itsalb3rt Did you look at the tutorial at https://github.com/jepiqueau/jepiqueau.github.io/blob/main/_posts/2023-11-28-Quasar-SQLite-CRUD-App.md clone it and run it. is it working. If yes look at the différences with your code.

itsalb3rt commented 1 month ago

Yes, I follow this step by step but not working on my project

itsalb3rt commented 1 month ago

ohhh Sh**tt I see the problem, I have a src-capacitor dir, and I install the @capacitor-community/sqlite package outside this lol, sorry. thanks!

jepiqueau commented 1 month ago

@itsalb3rt 👍