The thing is that I set some defaults before I run the app under specific target:
This is how I check if my target runs or not:
if NSProcessInfo.processInfo().arguments.contains("DIFF") {}
or
if NSProcessInfo.processInfo().environment["DIFF"] != nil {}
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?
Those arguments are only passed to the app when it is launched by Xcode using your scheme. When the app is launched by the user tapping the the icon, the arguments will not be passed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With