ioscoronasdkappstore-approvalrelease-builds

App Submission fails but bug cannot be reproduced in debug mode in Corona SDK


We are having this weird issue related to submitting our app on iOS. Basically when we build ( using developer profile ) and test ( via test flight ) everything works fine as expected even with most extensive test cases.

But when build ( using iOS distribution profile ) and submitted to apple ... in the review process it fails to pass due to a bug which we CANNOT REPRODUCE.

So, my best guess is that the bug/error is only happening in the release build ( probably due to code optimisation ) .. but I can't even know where and what to look for if I can't reproduce ?

I have submitted it the app twice so far ( with possible guess and fix ) and both time it came back with same error.

How do I test or even see the logs using a release build ? ( so far the DTS has been useless in providing any useful information)

/EDITED/

A bit more background info: This is a game application made with Corona SDK. If you're familiar with corona sdk then you know what a scene is.

So basically,

  1. I have a "home scene" I have an "open" button on my scene.

  2. I click on the open button a spinner shows up->the app reads a json file->goes to the next scene.

What apple is seeing in the review process is: Upon clicking on the "open button" on "home scene" the spinner shows up and it does not do anything further. Hence, the app is failing to pass apple's review process.

Please note: this only happens in the release mode (that is built with distribution profile) and not in debug mode ( that is built with provisioning profile )... thus I am unable to reproduce.


Solution

  • For starters, if your App was rejected due to a crash, Apple will send you the crash logs. And they'll crash it multiple times and send you multiple logs.

    Now then, there are two ways to view crash logs for release build versions of apps.

    1. On your device, open Settings. Choose General > About > Diagnostics & Usage > Diagnostics & Usage Data. This will be a list of files. Some of them should be your crash logs.
    2. If you plug your phone into a computer after a crash, the crash logs are moved on to the computer.

    The location is OS-specific.

    And finally, your IDE almost definitely has a way of browsing the on-device crash logs. I'm not familiar with any non-Xcode IDEs for developing iOS apps so I can't give any specific advice--but look around. Surely there's something.