Tools, Target Failed to execute: Remote exception: "Failed to get task for pid"

I have no control over assemblies. I also don't have an apple dev account. I can use the debug / checked / release build. When starting test automation, I continue to encounter this error: Target failed to start: Remote exception: "Failed to get the task for pid 506"

Automation starts, the application opens, and then quickly closes. here are some console exits

Oct 25 09:46:48 iphone com.apple.launchd [1] (UIKitApplication: com.something.dogfood [0xd456] [504]): (UIKitApplication: com.something.dogfood [0xd456]) Exit: killed: 9

Oct 25 09:46:48 iphone SpringBoard [29]: "MyApplicaton" application came out abnormally with signal 9: killed: 9

Any suggestions?

+8
ios iphone instruments
source share
1 answer

Tools basically do their job, becoming a debugger for the application. Sometimes after using Xcode to debug applications, I find that I cannot use Tools until I reboot the device.

Unlike Xcode, tools can be confused between two applications with the same name, but with different package identifiers. (Or, possibly, the same name and similar package identifiers.) When I have several versions of an application on a device, I often have to remove unnecessary ones to make Tools connect to the correct application.

So, remove all duplicate applications and restart the device.

+10
source share

All Articles