Iphone User
Iphone User

Reputation: 1950

Failed to Attach to Process ID Xcode for Live Application (from store)

I am trying to attach to process by PID or Name to my application currently published on the store but without any success till now.

I need to attach the process in order to get my production push Id token since no NSLog exist. I need to retrieve that field in order to test the production push after facing issue in delivering production notification. My Debugger shown LLDB once I clicked on "Attach to process by PID or Name" I tried searching forums for this matter, but all I found is attaching the process in development mode.

Could not attach to pid : “14863”

Ensure “AppName” is not already running, and YourUser has permission to debug it.

Is there a way to attach apps from store and debug it?

Upvotes: 4

Views: 3812

Answers (1)

Jim Ingham
Jim Ingham

Reputation: 27203

You usually can not attach the debugger to binaries built for Release. In order for the debugger to attach to a binary, the binary has to be signed with an entitlement specifically allowing this. That entitlement is automatically added (by Xcode) to binaries built for Debug, but not for Release. It is technically possible to add the entitlement to a Release built binary before you code-sign it. It is not possible to do so after the fact for obvious reasons.

I don't know whether there are store submission policies allowing this or not, however.

Upvotes: 5

Related Questions