I’ll chalk this up as the clever idea of the week. This dude figured out how add special debugging capabilities to your production shippable TestFlight build without security compromises or other issues. 🤯
No #ifdef DEBUG
here, people.
👉 How to Enable Custom Debugging in Release Builds
I love that he first runs through all the “not-so-good” ideas that he tried before landing on this elegant solution (including hardcoded user id’s, a secret gesture, a secret URL scheme, and a different bills config.)
The anser, in a nutshell is:
Create a special configuration profile using Keychain Access and Apple Configurator 2, and install this on your devices. Detect the presence of this profile to enable your debugging features on that device.
Well played. Via iOS Dev Weekly.