The fact is that I set some default values before starting the application for a specific purpose:

Here's how I check if my goal works or not:
if NSProcessInfo.processInfo().arguments.contains("DIFF") {}
or
if NSProcessInfo.processInfo().environment["DIFF"] != nil {}
but they only work after I compiled the application on the device. As soon as I close the application and run the icon application on the device again, it no longer works. Why?
source
share