Swift 3: No such module 'os.log'
<p>I was trying to compile a swift 3 file which contains nothing but:</p>

<pre><code>import Cocoa
</code></pre>

<p>The compiler output was:</p>

<pre><code>&lt;unknown&gt;:0: error: missing required module 'os.log'
</code></pre>

<p>So I edited the file to be:</p>

<pre><code>import os.log
import Cocoa
</code></pre>

<p>And now the compiler output is:</p>

<pre><code>test.swift:1:8: error: no such module 'os.log'
</code></pre>

<p>I suspect that the compiler is having trouble finding the legitimate module os.log. I should note that I'm editing the file in VIM, and the same program works fine in my Swift playground.</p>