-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add sqlite3.h to Xcode project #163
Comments
@davedelong Hm, this was one of the first things I tried and compilation failed. I'll try again tonight and see if I can get it to work. Otherwise I'll file a radar. |
Got it working! Must have bungled it the first time around. Just need to confirm/push |
This is "fixed" in the |
Greetings. Looks like still having the |
Instead of manually defining the path to sqlite3.h in
module.modulemap
, you should instead add the file directly to the xcodeproj.Add it by finding it within your current SDK (i.e.,
Xcode.app/Contents/Developer/Platforms/{platform}.platform/Developer/SDKs/{SDK}.sdk/usr/include/sqlite3.h
). When you add it this way, Xcode notices that it's relative to your current SDK, and so it gets added to the .xcodeproj as a relative file, like this:Since the "sourceTree" of the file is "SDKROOT", it will correctly resolve to either the Mac SDK or the iOS SDK, depending on what your build destination is. Then you can delete the manual path specification in
module.modulemap
, and it should all Just Work™.The text was updated successfully, but these errors were encountered: