“process launch failed: failed to get the task for process 2282” How to solve this?

2 Solutions Collect From Internet About ““process launch failed: failed to get the task for process 2282” How to solve this?”

I am assuming you are running on device. Using a different provisioning profile solved this issue key point is to use a Developer profile rather than a Distribution profile.

In my case this dialog came along in an Objective-C project using Swift pods.
We debug directly the Release configuration.
If this is the case what fixed my problem was to turn off optimizations of ‘Swift Compiler – Code Generation’ for Release:
Swift Compiler - Code Generation > Optimization Level