Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

ios

iphone

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.

like image 595
Jason Lee Avatar asked May 10 '13 03:05

Jason Lee


People also ask

What is difference between debug and release build iOS?

By default, Debug build configuration is used for development(run apps on Simulator or real devices by hitting run button on Xcode); Release build configuration is used for archiving(upload build to App Store Connect). Please do NOT forget, you can set whatever build configuration for development or archiving.

What does debug mode mean on iPhone?

When troubleshooting an issue that cannot be resolved right away, you may be asked to enable debug mode to give the YouMail support team additional data logs. Once enabled, you will have to replicate the issue so it is logged and then submit the log which will go directly to our app developers.


2 Answers

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).

like image 183
borrrden Avatar answered Nov 15 '22 21:11

borrrden


"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

like image 27
user1021430 Avatar answered Nov 15 '22 21:11

user1021430