iOS app crashes using adhoc distribution profile
Asked Answered
E

3

6

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

Emikoemil answered 21/4, 2014 at 7:6 Comment(0)
S
4

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.

  1. Create the .ipa file.
  2. Install the .ipa file into iTunes.
  3. Finally install the .ipa file to your device via iTunes.

If you're still getting crashes, connect your device to your Mac and view its logs in XCode.

  1. In XCode, Go to Window -> Devices.
  2. Choose your connected device, then choose View Device Logs.

Here you are able to check your logs, errors and crash reports, which should tell you why the app is crashing.

Swap answered 21/4, 2014 at 7:14 Comment(3)
i use syncios software (in windows) to install ipa in deviceEmikoemil
but debuging not allowed with distribution profile... still it will describe the crash report..????Emikoemil
u can check your crash report( in your side or system side) in thereSwap
N
2

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:

  • Add the font files into Build Phases > Copy Bundle Resources and adding the font files into my main project folder (without copying them; only as references).
  • Or, remove the custom font as a CocoaPods dependency and copy-paste the font files to my project instead.

I went with the second one since I might accidentally delete one of the references to the font files and encounter the problem again.

Ninny answered 6/6, 2015 at 8:22 Comment(0)
H
1

... how to resolve this problem?

Well, you need the crash logs. Here are Apple's docs. They will help you gather them and interpret them.

Hypnoanalysis answered 21/4, 2014 at 7:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.