Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

code doesn't behave the way it should when i create an ipa . However , if i flash the build directly from xcode it works fine ?

Hi ,


I am creating an ipad application . When the app launches i am trying to get some data from server , and show it at the beggining .

It works perfectly fine when i run the app in simulator , and flash the build in ipad from Xcode .


However ,as soon i create an ipa file , install in ipad it doesnt works . Sometimes , it shows network issue , other times its able to give me the data but as soon i convert the data to JSON objet with NSJSONSerialization class , it returns nill .


Any clue on this abrupt issue ??

iPad, iOS 6.1

Posted on Feb 24, 2013 10:46 PM

Reply
1 reply

Feb 26, 2013 8:27 PM in response to Kavishjuneja11

Hi,


Are you loading the data in didFinishLaunching ??

If yes then that is the problem.


ios defines a specific time for app launch, if your app takes more than the allowed time, ios will crash the app.


Possible solution might be move the webservice call from there to some other suitable place, this will ensure that you app will launch regardless of any network issue, which can be handled later.

code doesn't behave the way it should when i create an ipa . However , if i flash the build directly from xcode it works fine ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.