Jason Lee
Jason Lee

Reputation: 3250

HOWTO attach to a released App on the iPhone? not a debug version

I've tried to attach to a debug App using Xcode : Product -> attach to process, and it works.

But when I tried to attach to an App installed from the App Store, the Xcode firstly said waiting the App to launch, and when I launch the App on the iPhone, Xcode just finished running the App on my iPhone... nothing else.

My problem is that my app released on the App Store has a bug, I want to attach to it to debug.

Many thanks.

For the reason (@Kendall Helmstetter Gelner):

This bug is hard to track, and I have an iPhone meet it.

Upvotes: 11

Views: 7974

Answers (3)

jeremywhuff
jeremywhuff

Reputation: 2980

"Once you have deployed your app, either through the App Store or as an Ad Hoc or Enterprise build, you won't be able to attach Xcode's debugger to it. To debug problems you'll need analyze Crash Logs and Console output from the device."

https://developer.apple.com/library/ios/qa/qa1747/_index.html

Upvotes: 10

Manish Agrawal
Manish Agrawal

Reputation: 11027

as far as i know, its not possible to attach an app in release mode.

Upvotes: 0

borrrden
borrrden

Reputation: 33423

You cannot debug an app store application. It would be foolish to allow such behavior. You don't want some random script kiddie trying to use the debugger to hack into your app. You need to fix the problem another way. Test your release build and confirm the differences (if any) between a normal release build and your app store build.

In short, test your release build from Xcode (build it with your development certificate).

Upvotes: 11

Related Questions