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)
- podspec is not including the Privacy manifest HOT 4
- SQLite error 283 (notification message): recovered 864 frames from WAL file HOT 1
- 6.25.0 does not support provisioning profiles HOT 3
- Question about usage of generated columns HOT 4
- Assertion failed: unexpected NULL value HOT 5
- Confusion over .including(all:) query HOT 6
- How can I do floating-point division on an association count? HOT 8
- Latest version 6.26.0 is not deployed to the Cocoapod HOT 4
- Please add the Privacy Manifest file to the v5.x release. HOT 1
- package 'package.swift' is using Swift tools version 3.1.0 which is no longer supported; consider using '/ swift-tools-version: 5.9' to specify the current tools... HOT 1
- Request: Add citation to the repo HOT 3
- Cocoapods hasn't published since 6.24.1 HOT 2
- Cocoapods 6.26.0 release is not available in Cocapods Specs repo HOT 1
- Privacy Manifest: Entry missing for accessing file timestamps via creationDate API HOT 4
- When transaction updating multiple records in the database, if one of the records does not exist, it leads to update failure. HOT 4
- Avoid conflict with other SPM packages by renaming the CSQLite SPM target
- ValueObservation.tracking called on the updating thread HOT 5
- GRDB does not seem to copy over all rows when inserting within a migration HOT 4
- Unable to decode database NULL value as Swift nil value of type Int? when using ScopeAdapter built from splittingRowAdapters HOT 13
- PlayerRequest.swift is identical in GRDBAsyncDemo and GRDBCombineDemo HOT 4
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.