问题
My debug builds don't crash, but the release builds do.
I've modified the Run scheme to use produce TestFlight release build and install it on my device. This works. But the app keeps crashing during usage. The Organizer window gives me no device logs. There are no crash reports. Nothing at all.
How do the Pros do it?
回答1:
Some possibilities:
Get a console app for your iPhone and look at the console on your device (e.g. https://itunes.apple.com/nl/app/console/id317676250?mt=8)
Use another web service like BugSense (www.bugsense.com) to receive online crash reports
Your Organizer window should give you device logs anyway (if the device is connected, that is). You can also try to get the device logs with another Apple tool (http://support.apple.com/kb/DL1465)
回答2:
Integrate the TestFlight SDK in your app: https://testflightapp.com/sdk/
来源:https://stackoverflow.com/questions/14977624/how-to-debug-a-crashing-release-build