Closed willyjl closed 8 years ago
What version of Xcode are you using, and what version of Swift?
Swift version: 2.2 Xcode version: 7.3.1
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?
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'.
Can you compile and run the DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj project?
Yes yes, I can compile the demo app.
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.
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.
Hi Still iam facing this issue
same here
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
andEmbedded Binaries
. Upon compiling Xcode returns error onmodule.modulemap
file underGRDB\Supporting Files
.In my previous attempt of including GRDB via Cocoapods I also encountered the same thing.