"Ambiguous use of 'subscript'" out of nowhere
<p>There are a lot of questions about this error, but I haven't found anything relevant.</p>

<p>I compiled and run my project many times and everything was fine, then suddenly, completely out of nowhere, Xcode started to show following error to this line:</p>

<pre><code>if let userId = jsonresult["user_id"]{...}
</code></pre>

<p>I'm using SwiftyJSON.</p>

<p>I'm confused because this error was not here before. I haven't changed anything in this class, I even checked out to the previous commit where app was up and running and now the error is also there.</p>

<p>I tried cleaning the project and deleted derived data, but it does nothing.</p>