Wrapped GRDB.xcframework cannot be used in consumer application, which result is compilation error (arm64-apple-ios.private.swiftinterface:7:8 Missing required module 'CSQLite'). #1784
harufumigithub
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🔧 1. Create a Wrapper Xcode Project
1. Open Xcode → File → New → Project.
2. Choose Framework template under iOS.
3. Name it something like GRDBWrapper → Save in a new folder.
⸻
🔗 2. Add GRDB via Swift Package Manager
1. Go to your project settings → Package Dependencies.
2. Click +, then search: https://github.com/groue/GRDB.swift
3. Only add non dynamic GRDB
Choose a version Up to Next Major 6.0.0 and add the product GRDB to your framework target.
run build.sh (this creates GRDB.xcframework):
#!/bin/zsh
xcodebuild archive
-scheme XGRDB
-configuration Release
-destination "generic/platform=iOS"
-archivePath ./archives/ios_devices.xcarchive
SKIP_INSTALL=NO
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild -create-xcframework
-framework ./archives/ios_devices.xcarchive/Products/Library/Frameworks/XGRDB.framework
-framework ./archives/ios_simulators.xcarchive/Products/Library/Frameworks/XGRDB.framework
-output XGRDB.xcframework
/{project}.swiftmodule/arm64-apple-ios.private.swiftinterface:7:8 Missing required module 'CSQLite'
Beta Was this translation helpful? Give feedback.
All reactions