Quitting the simulator and relaunching fixed this for me.
In case anyone is wondering what is meant by "empty settings" that should be unchecked as mentioned in the answer of maricle and in the comment of Vinayak GH At least that is what caused the problem for me.
Make Sure that you have not Checked Any "empty settings" in Product > Scheme > Edit scheme > Run > Environment variables. this cause the above issue.
check your scheme settings and make sure all empty settings are unchecked.
The only thing that worked for me was:
Simulator > Reset Content And Setting
Then clean and run your project
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