i creates iOS app and it works completely using development profile in device. it never crashes in device using development provisioning profile.
But when i create its adhoc distribution profile and creates ipa with it then the app crashed at many point. But the problem is that with the distributed profile i cant debug so i unable to see crash log. so i cant understand why the app crash which is complete run over the development profile... and how to resolve this problem?
Thanx to all
Your ad-hoc distribution profile may crash the app the first time it is run on your device, but run fine the second time, in alternate ways. The following steps will help you resolve the problem.
If you're still getting crashes, connect your device to your Mac and view its logs in XCode.
Here you are able to check your logs, errors and crash reports, which should tell you why the app is crashing.
I followed @Anbu's tip to check the device logs via Xcode > Window > Devices > View Device Logs
.
The problem for me was that I am using a custom font which is integrated into my project via CocoaPods. During development time, the app runs smoothly because my computer can see where the font files are. However, Xcode doesn't bundle the font files from the pod into the project, so I had to either:
Build Phases > Copy Bundle Resources
and adding the font files into my main project folder (without copying them; only as references).I went with the second one since I might accidentally delete one of the references to the font files and encounter the problem again.
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