Environment variables and arguments passed on launch are not working once I compile the app
<p>The thing is that I set some defaults before I run the app under specific target:</p>

<p><a href="https://i.stack.imgur.com/ioZy9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ioZy9.png" alt="enter image description here"></a></p>

<p>This is how I check if my target runs or not:</p>

<pre><code>if NSProcessInfo.processInfo().arguments.contains("DIFF") {}
</code></pre>

<p>or</p>

<pre><code>if NSProcessInfo.processInfo().environment["DIFF"] != nil {}
</code></pre>

<p>but they works only after I compile the app on device. Once I close the app, and run again from the icon app on device, it doesnt work anymore. Why?</p>