1

After following the installation instructions here: https://github.com/stephencelis/SQLite.swift

i get following error on building the project:

unextended-module.modulemap

Header not found:
'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h'

The issue seems to be that my Xcode is in directory Xcode-beta.app. I tried changing the path in above file, to /Applications/Xcode-beta.app/Contents/... but the file seems to get overwritten automatically on build.'

How do i resolve this?

Jasper
  • 8,440
  • 31
  • 92
  • 133

1 Answers1

0

At the moment, module maps appear to have to reference files that are absolute rather than relative to the current build SDK. Because of this, the Xcode path must be hard-coded. If you're building for Xcode 6.4 beta, please edit the module.modulemap file and replace "Xcode.app" with "Xcode-beta.app":

https://github.com/stephencelis/SQLite.swift/blob/743530d1e56c86b5cd4df5153839a98ecb05bf5f/SQLite/module.modulemap

I've generally had a beta branch in the past and will try to cut one soon in the future.

stephencelis
  • 4,954
  • 2
  • 29
  • 22