Comments (10)
Are you talking about https://github.com/groue/GRDB.swift/blob/master/GRDB/module.modulemap#L8 ?
What path did you have to use in order to have GRDB compile on your machine?
from grdb.swift.
Yes, mine was:
"/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sqlite3.h"
from grdb.swift.
So you did not install the regular Xcode, did you?
from grdb.swift.
@philtre I did not intend to close the issue, sorry. Yet I don't quite know how to solve it.
from grdb.swift.
@philtre I'm considering closing this issue since it looks like it only affects people who did not install the regular Xcode. Anything against it?
from grdb.swift.
A solution to this issue may lie in stephencelis/SQLite.swift#163
from grdb.swift.
Hi @davedelong.
I've tried to replace the hard-coded path to sqlite3.h with a direct embedding of SDKROOT/user/include/sqlite3.h, following your advice on stephencelis/SQLite.swift#163.
This leads to a partial success:
- Carthage is able to build the framework, and an application could run on top of it.
- Cocoapods is able to perform its setup, but application could not run on top of it, with the "include of non-modular header inside framework module" error. It is so despite the CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES flag being set to YES in all targets I could find in the universe.
- I could not apply your advice without adding sqlite3.h as a public header of the framework. I'm wondering if it's a good practice, considering the fact that the regular way of including sqlite3.h is
#include <sqlite3.h>
, not#include "sqlite3.h"
or#include <MyFramework/sqlite3.h>
. Plus there is a risk that this included header eventually goes out of sync with the one shipped with the SDK, the one that describes the actually linked dylib.
I was wondering what would be your opinion on point 3 (although I could sleep on it until an issue would come up), and if you had any advice on point 2.
Thanks for reading!
from grdb.swift.
@groue CocoaPods doesn't support header files that aren't within the scope of the project. You'll need to continue to use the module map for CocoaPods at the very least.
from grdb.swift.
Thank you Stephen :-) Cross-linking to CocoaPods/CocoaPods#3942 for reference.
from grdb.swift.
There is no currently solution to this problem. The workaround is to use the latest release of Xcode, which a quite reasonable requirement: I'm closing the issue.
from grdb.swift.
Related Issues (20)
- Build Failure with GRDB.swift in Xcode Framework: 'missing required module 'CSQLite' HOT 3
- `eraseDatabaseOnSchemaChange` nukes data unexpectedly albeit no changes in schema between runs HOT 3
- Reusing a database with costly migrations HOT 11
- How can I be sure my database is encrypted HOT 1
- Error while Encoding Generic Records using singleValueContainer HOT 7
- Unable to successfully initialize GRDB HOT 1
- Do we have better way to resolve this issue? HOT 5
- JSONRequiredError while Decoding Generic Records using singleValueContainer HOT 7
- Record Enum Columns cannot be queried by filter.fetchAll(db) HOT 1
- Issue with SQLCipher in v6.28.0 HOT 1
- The initial value of `lastInsertedRowID` HOT 8
- Support for UPSERT: ON CONFLICT DO NOTHING HOT 3
- find(db, key:"xxx") show error: The operation couldn’t be completed. (GRDB.RecordError error 0.) HOT 3
- accessing db on external volume fails HOT 2
- `BelongsToAssociation` doesn't conform sendable. HOT 1
- Compilation failure with Xcode 16 beta 5 due to missing `strcmp` HOT 5
- Cannot find 'strcmp' in scope error showing up in Xcode 16.0 beta 5 and above HOT 2
- XCode warns "No 'async' operations occur within 'await' expression" HOT 2
- App crashes with `EXC_BAD_ACCESS ` on first database read in Xcode 16 Beta 6
- Swift 6 concurrency warnings HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grdb.swift.