8

Could not launch “Runner” Domain: IDEDebugSessionErrorDomain Code: 3 Failure Reason: failed to get the task for process 1189 User Info DVTRadarComponentKey = 855031; RawLLDBErrorMessage = "failed to get the task for process 1189";

柴奕轩
  • 81
  • 1
  • 2

4 Answers4

9

I resolved this error by Trusting my developer account on the iPhone. This particular setting can be found at.

Settings > General > Device Management

Nasreen Ustad
  • 1,564
  • 1
  • 19
  • 24
4

The problem is in Code signing. Your App is signed with wrong provisioning profile and Xcode isn't allowed to attach debugger to app. For example if you wanna to attach debugger to app that's is signed with AdHoc provisioning profile, you can install&run your app on your device but you can't debug it (attach debugger). If you wanna to attach debugger to your app, you need to use App signed with Development provisioning profile. Check your Signing setting for your project and be sure you are using development Provisioning profile to signing the app.

vcalfa
  • 156
  • 1
  • 6
2

Enabling WiFi/Cellular on my iPhone fixed the problem for me.

Konstantin Nikolskii
  • 1,075
  • 1
  • 12
  • 17
1

run the following command in terminal

sudo DevToolsSecurity -enable

ref :- https://developer.apple.com/forums/thread/120282