iPhone Application works fine in Simulator but creashes in the iPhone Device
Hi.
I have developed an iPhone application which works fine in the Simulator.
Both in XCode and Simultor, I have used the version as 2.2
I installed the Application in my iPhone which has the same version as 2.2 using Ad Hoc distribution. When I tried to open the Application, it simply crashes and goes back to the Home page of the iPhone.
Can anybody help me to fix this?
Hi.
I have developed an iPhone application which works fine in the Simulator.
Both in XCode and Simultor, I have used the version as 2.2
I installed the Application in my iPhone which has the same version as 2.2 using Ad Hoc distribution. When I tried to open the Application, it simply crashes and goes back to the Home page of the iPhone.
Can anybody help me to fix this?
Did you run a debug version on the device from Xcode, so you can see the console and debugger output?
No.
The problem was I dont have an iPhone with me and Im testing this in my Friends IPhone. So I couldnt get the logs
that is probably a memory issue. When your iphone runs out of memory it will crash your app. Makr sure you are releasing every object you either init or retain when you no longer need it.
No.
The problem was I dont have an iPhone with me and Im testing this in my Friends IPhone. So I couldnt get the logs
Without being able to run it with the debugger and console, all anyone can do is a wild *** guess. You really need to connect it to your development system.
that is probably a memory issue. When your iphone runs out of memory it will crash your app. Makr sure you are releasing every object you either init or retain when you no longer need it.
Hope it helps
Hey, I want to know whether the application crashes because of the memory issue as soon as you click on your application icon in the iPhone?
Im asking this because, I couldnt even see the app working for a single second. It just crashes once it is selected.
If yes, then I will have to do a lot of changes then.
Hey, I want to know whether the application crashes because of the memory issue as soon as you click on your application icon in the iPhone?
Im asking this because, I couldnt even see the app working for a single second. It just crashes once it is selected.
If yes, then I will have to do a lot of changes then.
Well, I guess it IS unlikely. but if you are loading too much data at startup, it can very possibly happen. Still I have to agree with the other posts, you have to run a debug session on the actual device. It could also be that you are not retaining an object and then calling a selector on it, and then it is no longer there. If you don't have an iphone available, just take a hard look at your code and check the init/retain/release calls to check if everything is right. If the app runs ok on the simulator and you made sure you are compiling for the right version I'd say it's a memory issue.