Closed dexterleng closed 2 weeks ago
Thanks for your input, @dexterleng. I close the issue as a duplicate because there already exist issues regarding the CSQLite module. So far, no one was able to come up with something that should be done at the level of this library. There are multiple workarounds, though.
I wasn't able to get any to work :/
😬 I'm very sorry, but, as I said above, no one was able to come up with something that should be done at the level of this library. Please report an issue at http://feedbackassistant.apple.com. My own fight with this Xcode problem is described there. The goal here is to share solutions. Complaints should go to Apple.
What did you do?
import GRDB
in one of the filesWhat did you expect to happen?
Build to succeed.
What happened instead?
I get this error:
missing required module 'CSQLite'
I've tried the following:
@_exported import GRDB
Export.swift
and prependingimport CSQLite
to every Swift file inGRDB/
, following this commit (https://github.com/groue/GRDB.swift/commit/6e09c32d2659436ee5febcad99e480a5b0c55ea3)The only thing that did work was setting Building Libraries for Distribution to No but then I can't use my framework in my other projects.
Environment
GRDB flavor(s): (GRDB, SQLCipher, Custom SQLite build?)
GRDB
GRDB version:
master (4b934fd)
Installation method: (CocoaPods, SPM, manual?)
SPM
Xcode version:
Version 15.4 (15F31d)
Swift version:
Swift 5
Platform(s) running GRDB: (iOS, macOS, watchOS?)
macOS
macOS version running Xcode:
macOS 14.5
Demo Project
GRDBFramework.zip