We help IT Professionals succeed at work.

iphone application failing to execute on my iphone, but working on simulator

gplana
gplana asked
on
Dear Expert:

I'm developing an iphone application which worked perfectly until 2 days ago on my iPhone device, executed by pressing play at xcode. The same application, without any changes, is now failing executing it on my iphone device, but it's working perfectly on the xcode iphone simulator.

I have tryied to make the certificates again on the provisioning portal, but the same occurs.

The point where application stops is on second line of main:
   
int retVal = UIApplicationMain(argc, argv, nil, nil)
And the error shown is:
   
Thread 1: Program received signal: "SIGABRT"

Open in new window


I can also see an error message on the "All Output" area (on the bottom of Xcode Window) which says:
   Couldn't register com.goldspotmedia.glut with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.

I tried to remove preious application on my iphone and cleaning the build before running again and the same happens.

Can you help me ?
Comment
Watch Question

Commented:
I hope it will be enough to delete this app from your phone and install again:
1. Disconnect your phone from the computer.
2. Uninstall this application from the phone.
3. Connect the phone to the computer and launch Xcode.
4. Clean and build the project.
5. Run the application on the iPhone.

Sorry I have done all these steps, but the same happens.
Commented:
When you debug your app in Xcode, you may check the console window - the bottom part of the Xcode window, you'll see there a bit more detailed explanation why your app crashes.
There are too many reasons for such crash - for example, the debug version will "crash" in this way, if you call an unknown method of an object, if you try call method from a nil-variable, try to release an object that's already been released, etc.
Add NSLog to you app and check the console window. Add breakpoints and see what's going on.
You can try to use "Analyze" in Xcode and fix whatever will be possible to fix in your app. Use Instruments and so on.
Good luck.
Sorry, I finnally solved this by just shuting down my iphone and starting up it again. However, your idea for debugging will help me in next steps to solve performance issues, so I will rewarding points to you.

Thank you.
I solved by my own, but the ideas exposed are good and will help me to solve other things. Thank you.