Closed skagedal closed 5 years ago
So the issue here is that SwiftPM does not set CLANG_ENABLE_MODULES
, see bug report.
The workaround is to change this setting manually in the generated Xcode project. I propose this info is added to the README under the Swift Package Manager heading.
Hello @skagedal , yes I have seen this issue as well. Here is the link to the bug report. https://bugs.swift.org/browse/SR-8629 Ankit Aggarwal from Apple says how to fix it in the comments:
You can also see a fix for this on my out-of-date branch: https://github.com/stephencelis/SQLite.swift/pull/885
Xcode fails when building a Swift Package Manager-generate project that has SQLite.swift as a dependency.
Steps to reproduce
Complete output of
xcodebuild
:Build Information