Swift build error: could not build Objective-C module 'Darwin'

Hi!

I'm trying to use the package manager, but I can't do anything...
Initialized with swift package init --type executable, but bot swift build and swift package update commands fails with the following output:

https://pastebin.com/EXRJ6cXJ

Any idea what could be wrong? (I have xcode 10.1, command line tools installed, several swift projects created by xcode)

If you're using Homebrew try executing brew doctor. I had a similar problem (wrong .h files in /usr/local/include), and it helped me identify messed files.

Hi!

Thanks for the reply but I've already tried that, brew says: "Your system is ready to brew."

I was able to build an empty package with copying the build command from the verbose output to the console o.O
But got stuck with Kitura, LoggerAPI dependency fails with the same error...