groue / GRDB.swift

A toolkit for SQLite databases, with a focus on application development
MIT License
6.88k stars 708 forks source link

Umbrella header GRDB.h not found #106

Closed willyjl closed 8 years ago

willyjl commented 8 years ago

Hi there

I added GRDB.swift to my existing project manually using the guideline provided on this repo's README, by embedding it to my project and add it as Target dependencies and Embedded Binaries. Upon compiling Xcode returns error on module.modulemap file under GRDB\Supporting Files.

In my previous attempt of including GRDB via Cocoapods I also encountered the same thing.

swiftlyfalling commented 8 years ago

What version of Xcode are you using, and what version of Swift?

willyjl commented 8 years ago

Swift version: 2.2 Xcode version: 7.3.1

groue commented 8 years ago

Hello @willyjl

That's odd. The GRDB distribution comes with a demo app which "manually" embeds the library: DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj. Can you compile and run this demo app?

willyjl commented 8 years ago

Yes @groue. I wonder why I can't compile it when I embed it to my project. It says Could not build Objective-C module 'GRDB'.

groue commented 8 years ago

Can you compile and run the DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj project?

willyjl commented 8 years ago

Yes yes, I can compile the demo app.

groue commented 8 years ago

OK. So something has to be fixed in the setup of your application. Not in GRDB. See?

Read again the manual procedure, and compare your app with the demo app until you find any relevant difference. If you remain stuck, I advise searching the Stack Overflow website for someone who has experience of "Could not build Objective-C module XXX" error in Swift projects.

condycode commented 7 years ago

I've been working on it for a whole day,but it's worth it.I tried all the ways here, but I didn't solve it. I created a new project, an experiment, and I found out User Header Search Path was setted ${SRCROOT} recursive, and I changed it to ${SRCROOT} non-recursive, changed the bridging header path(e.g. #import "SVProgressHUD.h" -> #import "Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.h"), the error went away.

midhunek commented 6 years ago

Hi Still iam facing this issue

TheMisfit68 commented 5 years ago

same here