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.
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.
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.
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).
"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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With