Xcode 8 "The application does not have a valid signature" : <p>Xcode 8 throws the following error despite provisioning seems to be fine:</p>

<p><a href="https://i.stack.imgur.com/LqaRx.png"><img src="https://i.stack.imgur.com/LqaRx.png" alt="App installation failed. The application does not have a valid signature"></a></p>

<p>How to fix it?</p>
