Skip to content

Support Swift Package Manager #568

Closed

Description

@marius-se

Is your feature request related to a problem? Please describe.
We set up a Capacitor app with SPM instead of Cocoa pods. Therefor this library doesn't work for us.

Describe the solution you'd like
A Package.swift file/ SPM support

For now i forked this library and somehow managed to get this working, but honestly I don't feel super safe about it, as I also had to mess with SQLCipher. Links I followed:

Activity

  1. wills01 commented on Jul 28, 2024

    @wills01

    This would be a great addition

  2. oliveryasuna commented on Sep 22, 2024

    @oliveryasuna

    @marius-se Do you mind sharing your fork? Would offer a good starting place for investigating this feature.

  3. mtnair commented on Aug 27, 2025

    @mtnair

    Any chance of this getting implemented at some point?

  4. abegehr commented on Aug 27, 2025

    @abegehr

    @marius-se to the rescue 🥇

  5. kairadiagne commented on Oct 3, 2025

    @kairadiagne

    CocoaPods announced that its Specs repo will become read-only in May 2025 and no new podspecs will be accepted after that. Are there any plans to support Swift Package Manager, or has anyone already managed to set it up?

  6. easpinall commented on Dec 15, 2025

    @easpinall

    With Capacitor 8 using SPM by default and other Capacitor plugins no longer supporting CocoaPods, we need your assistance in releasing a SPM based version of the package please

  7. robingenz commented on Dec 15, 2025

    @robingenz
    Member

    PRs are welcome, but as far as I know, https://github.com/sqlcipher/sqlcipher/ does not officially support SPM.

  8. easpinall commented on Dec 16, 2025

    @easpinall

    Hi Robin

    If I'm not mistaken the SPM version is sitting at https://github.com/sqlcipher/sqlcipher.swift that was introduced by Zetetic

    Some more background available at https://www.zetetic.net/sqlcipher/sqlcipher-apple-integrators/

  9. robingenz commented on Dec 16, 2025

    @robingenz
    Member

    Would you be willing to create a PR?

  10. paulstelzer commented on Dec 18, 2025

    @paulstelzer

    Created a PR. Would be great if others could test it too.

    PS: There is also a new plugin by @robingenz which seems to have SPM Support out of the box at https://github.com/capawesome-team/capacitor-plugins/tree/main/packages/sqlite, but unfortunately it is not open source, so I cannot say something about the quality and features.

  11. robingenz commented on Dec 18, 2025

    @robingenz
    Member

    @paulstelzer Thank you! I will take a look and create a dev release for testing.

    Also, thank you for mentioning the Capawesome SQLite plugin. It maintains the same quality as all our Insider plugins. The most significant difference lies in the improved web support with SQLite WASM and the fact that we do NOT utilise SQLCipher for unencrypted databases. This offers the advantage of not being subject to encryption export regulations and not needing to submit an annual self-classification report to the U.S. government.

    EDIT: See #673 for the dev release.

  12. michaelpeterlee commented on Feb 17, 2026

    @michaelpeterlee

    Hi folks, Q. Do we have an estimate on when this feature will be merged?

  13. ebarolo commented on Mar 5, 2026

    @ebarolo

    up

  14. kensentell commented on Mar 16, 2026

    @kensentell

    I tested this in my Capacitor 8 project for iOS (Android too just to be sure) and it worked without issues. Any estimated date for merge/release into the main code?

  15. robingenz commented on Mar 17, 2026

    @robingenz
    Member

    I will merge the PR as soon as all merge conflicts and comments are resolved.

  16. robingenz commented on Mar 18, 2026

    @robingenz
    Member

    I had to create a new PR for this feature. Please test this new dev release and let me know if you spot any bugs:

    npm i @capacitor-community/sqlite@8.0.1-dev.e8ac337.1773820348
    
  17. kensentell commented on Mar 18, 2026

    @kensentell

    I installed the dev release and it works for me! The packages were installed automatically and now the database works on my iOS device. Thanks for all your work!

  18. jacobg commented on Mar 24, 2026

    @jacobg

    I had to create a new PR for this feature. Please test this new dev release and let me know if you spot any bugs:

    npm i @capacitor-community/sqlite@8.0.1-dev.e8ac337.1773820348
    

    @robingenz Thanks! Works great for me! I endorse official release 😄

  19. robingenz commented on Mar 24, 2026

    @robingenz
    Member

    I'm waiting for feedback this week, and then I'll release it.

  20. gion-andri commented on Mar 25, 2026

    @gion-andri
    Contributor

    I had to create a new PR for this feature. Please test this new dev release and let me know if you spot any bugs:

    npm i @capacitor-community/sqlite@8.0.1-dev.e8ac337.1773820348
    

    I updated our app to that dev release and it seems to work perfectly. Thank you very much for your work ❤️

  21. locked as resolved and limited conversation to collaborators on May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions