Why do I need to clean the xcode project everytime I build the project?
<p>I have an iOS app written in Swift. Whenever I run the project, it gives <code>Shell Script Invocation Errors</code>:
<a href="https://i.stack.imgur.com/7QhSv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7QhSv.png" alt="enter image description here"></a></p>

<p>When I clean the project, the subsequent build performs ok. But again, if I build the project next time, it again gives the same error.</p>

<p>Cleaning and rebuilding the project takes a lot of time. Is there some way around it?</p>