Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-30-2009, 08:44 AM   #1 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 3
Default 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?
dpraskumar is offline   Reply With Quote
Old 03-30-2009, 08:54 AM   #2 (permalink)
Former NeXTStep Developer
 
Join Date: Mar 2009
Posts: 997
Default

Quote:
Originally Posted by dpraskumar View Post
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?

joe
FlyingDiver is offline   Reply With Quote
Old 03-30-2009, 09:12 AM   #3 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 3
Default

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
dpraskumar is offline   Reply With Quote
Old 03-30-2009, 09:34 AM   #4 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 11
Default Probably a memory issue

Quote:
Originally Posted by dpraskumar View Post
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.

Hope it helps
The_Messen9er is offline   Reply With Quote
Old 03-30-2009, 09:37 AM   #5 (permalink)
Former NeXTStep Developer
 
Join Date: Mar 2009
Posts: 997
Default

Quote:
Originally Posted by dpraskumar View Post
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.

joe
FlyingDiver is offline   Reply With Quote
Old 03-30-2009, 10:20 AM   #6 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 3
Default

Quote:
Originally Posted by The_Messen9er View Post
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.
dpraskumar is offline   Reply With Quote
Old 03-30-2009, 10:34 AM   #7 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 11
Default

Quote:
Originally Posted by dpraskumar View Post
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.
The_Messen9er is offline   Reply With Quote
Reply

Bookmarks

Tags
adhoc, cras, iphone, simulator

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 273
23 members and 250 guests
ADY, AragornSG, Bertrand21, Dani77, Dattee, fkmtc, HDshot, HemiMG, iDifferent, jakerocheleau, JasonR, jimbo, macquitzon216, mer10, prchn4christ, Rudy, sacha1996, silverwiz, sneaky, spiderguy84, Sunny46, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:07 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0