For me this scenario happened after a merge.
The Solution was to remove an environment variable in Edit Scheme-> Run-> Arguments.
I removed the environment variable and then added it again.
That solved the issue.
Topic:
App & System Services
SubTopic:
Core OS
Tags: