I have this strange issue. When I run application from Xcode (even on device), it works fine without any crash. But as and when I run it on device without Xcode, it crashes when I navigate back from one of the viewController. I am not able to get the reason for crash as I can't use log. Has someone experienced this before?
Connect your iPhone to a macOS machine with a USB line. Then in Xcode, click Product —> Destination menu item in the top menu bar. Then select your real iPhone device in the popup menu list under the Device menu. Then you can click the Run button ( triangle button) at the top to run the app on the target iPhone.
I recently experienced this after adding an MKMapView to the Storyboard. It ran perfectly when the device was attached to Xcode, but crashed when running without being connected to the computer.
The mistake I made was not checking the Embedded Frameworks.. the app was trying to load the MKMapView without having the MapKit framework imported.
The best way to diagnose this though, is to check your crash logs on the device you're using and you'll get a better understanding on what caused it
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