Running Ios Project From Xcode. Always Fails To Get Task For Process , Could Not Launch.

If I launch the app on a real device it will always fail to launch. If I do it in the simulator it’s fine. I can run the app on the device, just not from Xcode.

It’s not that big a deal, just wondering if anyone knows why.