Code Monkey home page Code Monkey logo

Comments (10)

groue avatar groue commented on May 19, 2024

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.

philtre avatar philtre commented on May 19, 2024

Yes, mine was:
"/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sqlite3.h"

from grdb.swift.

groue avatar groue commented on May 19, 2024

So you did not install the regular Xcode, did you?

from grdb.swift.

groue avatar groue commented on May 19, 2024

@philtre I did not intend to close the issue, sorry. Yet I don't quite know how to solve it.

from grdb.swift.

groue avatar groue commented on May 19, 2024

@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.

groue avatar groue commented on May 19, 2024

A solution to this issue may lie in stephencelis/SQLite.swift#163

from grdb.swift.

groue avatar groue commented on May 19, 2024

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:

  1. Carthage is able to build the framework, and an application could run on top of it.
  2. 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.
  3. 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.

stephencelis avatar stephencelis commented on May 19, 2024

@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.

groue avatar groue commented on May 19, 2024

Thank you Stephen :-) Cross-linking to CocoaPods/CocoaPods#3942 for reference.

from grdb.swift.

groue avatar groue commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.