1

I'm a new iOS Developer Program member.

Now, I need to check my app on devices (iPhone and iPad).

EDIT : Everything work fine under Simulator.

I can run the app on devices when I lauch it from Xcode, and when devices are connected with USB cable.

But, the app crash when I launch it directly from the device springboard.

EDIT : A little precision : my App launch from the springboard, but when I touch somewhere in the screen (buttons or tableViewcell), the App stop.

Is it a normal behavior ?

Do I have to use ad-hoc technology to run my development app on my devices without Xcode and USB cable ?

Any help would be much appreciated, thanks!

Borongaj
  • 451
  • 4
  • 16
  • 1
    This is not normal behaviour - you should be able to run the app normally once disconnected. I'll leave it to someone else to suggest a solution though, as I've never encountered this problem. – colincameron Jan 14 '13 at 10:09
  • 1
    Have you tried explicitly closing your app from running in the background before trying to launch it? What I am fearing is you run it from Xcode unplug (without properly stopping it) and then attempting to open your app. That would definitely cause a crash as you unplugged the running app from its debugger. – Stunner Jan 14 '13 at 10:12
  • This is not normal, more likely it's a bug in your app. Using ad hoc would not solve the problem. Try to debug your app. – Maksim Jan 14 '13 at 10:13
  • 1
    check the crash log out of XCode(most likely, its a memory issue). – Ishank Jan 14 '13 at 10:15
  • Try https://testflightapp.com/, here you can test ad-hoc release builds. Also, its not normal that your app crash when its launched directly from the device springboard. Hope this info helps you.. – P.J Jan 14 '13 at 10:20
  • Thank you all! A little precision : my App launch from the springboard, but when I touch somewhere in the screen (buttons or tableViewcell), the App stop. – Borongaj Jan 14 '13 at 10:42
  • its a bug in your app then..., use breakpoints to find where actually it crashed also look at console for the error which leads app to crash – Aman Aggarwal Jan 14 '13 at 10:43
  • If I run the app from Xcode, all is ok. If I unplugged the USB cable, the app crash... :-/ – Borongaj Jan 14 '13 at 20:56
  • I've found the origin of the crash. As @Ishank said, it was a (deep) memory issue. Thanks to all. – Borongaj Jan 15 '13 at 13:39

2 Answers2

0

It's not a normal behavior. There must be bugs in your application. apps you developed can run just same as installed from appstore.

After you failed launch the app from springboard, connect the device again, in xcode organizer , check the device logs of the application.

Wubao Li
  • 1,728
  • 10
  • 13
  • It seems to be a 'Views Hierarchy' problem. I'm using a storyboard for my app. I can't post reply with log and image of my storyboard beginning for now (not enough reputation)... – Borongaj Jan 14 '13 at 11:22
  • check your button action code and table view cell did select method, if there're simulator specific code? – Wubao Li Jan 14 '13 at 14:09
  • I've no buttons on this view. The didSelectRowAtIndexPath is ok within the simulator. I suspect a storyboard segue problem. All my views are linked with a segue (push) between a button and a tableView. But my first view doesn't have any buttons. And no segue between the tableView and the details view. I push the view within code. Any idea ? – Borongaj Jan 14 '13 at 20:15
  • I've just tried to comment all code within the didSelectRowAtIndexPath method and my app still crash... :( – Borongaj Jan 14 '13 at 20:39
0

Shame on me, it was a twited memory issue.

As I omitted to turn the NSZombieEnabled option off, some memory issues don't occur in the simulator, but only on devices.

Thanks to all !

Borongaj
  • 451
  • 4
  • 16