Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Compiler Error #12

Closed
iCodist opened this issue Sep 29, 2014 · 5 comments
Closed

Swift Compiler Error #12

iCodist opened this issue Sep 29, 2014 · 5 comments

Comments

@iCodist
Copy link

iCodist commented Sep 29, 2014

Xcode 6.0 OS X 10.10 Swift Compiler Error: Could not build Objective-C module 'sqlite3'

@rwtoner
Copy link

rwtoner commented Sep 29, 2014

I am getting the same error as ForDrink. "Could not build Objective-C module 'sqlite3'

@mkairys
Copy link

mkairys commented Sep 30, 2014

I had the same issue and took me a little time to work it out. I had to update my module.mod to point to the library in the OS X 10.10 SDK:

module sqlite3 {
    header "/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sqlite3.h"
    link "sqlite3"
    export *
}

Squeal was compiling fine after that change with Xcode 6.1 Beta 3.

@nerdyc
Copy link
Owner

nerdyc commented Sep 30, 2014

I haven't updated to the latest beta, but will check on this after I do. I've heard it's pretty buggy!

@mkairys Were you using the module.map included in the Squeal repo before you updated? It seems strange that /usr/include/sqlite3.h would be gone.

@mkairys
Copy link

mkairys commented Sep 30, 2014

@nerdyc I just worked out the issue, I didn't have Xcode Command Line tools installed on my Yosemite build. Without it, /usr/include is missing.

@nerdyc nerdyc closed this as completed in 1846262 Sep 30, 2014
@nerdyc
Copy link
Owner

nerdyc commented Sep 30, 2014

I updated the README to be clearer about this requirement. But I also opened issue #13 because really it would be better if this module.map business wasn't needed at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants