Discussion Forums  >  Uncategorized

Replies: 8    Views: 225

Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
09/01/11 08:55 PM (14 years ago)

iPhone App Crashes on iPad

My app, Minneapolis Lakes, was approved today! I submitted it as an iPhone only app--in Xcode I set the Targeted Device Family to iPhone. I downloaded it from the App Store on my iPhone, and it works perfectly. Then I downloaded it on my iPad, (as an iPhone app, of course), just to make sure that would work as well. It crashes intermittently and sometimes immediately upon opening the app, but always crashes eventually within a minute of starting the app. When it crashes, it immediately returns to the iPhone home screen. I can go right back into the app where I left off. I tried deleting the app and reinstalling it, and that didn't solve the problem. I also updated my iPad to the latest version, but that didn't solve the problem either. Any ideas on why this would happen? I am holding off on announcements about the app until I can figure this out. Thank you!
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
09/01/11 09:11 PM (14 years ago)
Say, I tried running it on the simulator and it crashed there as well. I found an error EXC_BAD_ACCESS. I hope that helps.
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
09/02/11 05:02 PM (14 years ago)
I think I figured out the problem. The iOS deployment target was set to 3.2, and when I changed it to 4.2 the problem with crashing disappeared. I had set the iOS deployment target to 3.2 in an effort to solve a different problem, but the crashing problem is more serious so will work with 4.2 instead.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/05/11 06:39 PM (14 years ago)
Maybe i'm missing someting. If it's iPhone only in the store, it still allows install on iPad? I didn't think this was possible. For sure you'll want to use something OTHER than 3.2 target if you're putting on both devices ;-)
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
09/06/11 11:07 AM (14 years ago)
On the iPad APP Store, if you do a search for apps, you will see two sets of search results. The top set is for iPad, and beneath that is the set for iPhone. When you view an iPhone app on iPad, you can either view it at iPhone size or 2x. I was playing with different versions over the weekend, and the newer versions work better, but they still crash. When I change the Targeted Device Family to iPhone/iPad, the problem goes away. It sounds like my solution is to release an update that is for both iPad and iPhone. I just need some artwork for iPad which I will put together in a few weeks. Thanks, Dave!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/06/11 11:49 PM (14 years ago)
Yeah, a Universal App release does sound logical. I'm scratching my head though about the crashes - not sure how to explain it? I wonder if there's a hidden / secret / cryptic OR OBVIOUS build-setting we don't understand? Not sure reallly. Because v1.5 was intended to be Universal from the start we never really dug around and tested what would happen with different build settings. Sounds like you have. I'll do a bit more digging after Android is released (9/15/2011) so we can know for sure what's happening. Artwork for iPad shouldn't be too tough ;0)
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
09/19/11 08:10 PM (14 years ago)
I received a complaint from an iPad user who said it was crashing for him, so set to trying to fix this again. Once I repaired the build settings it always crashes in the same place--in the BT_downloader.m file, at the [downloadTimer release];. I commented out the line (//), and that seemed to solve the problem. Do you think commenting out that line will cause any other problems?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/20/11 08:33 AM (14 years ago)
Fix-er-upper, you're turning into a programmer. This is a good find and I'm sure lots of folks will benefit from it. If the BT_downloader.m file was causing an issue with iPad, and you commected out something to get it fixed - OK. If all you commented out was the [downloadTimer release] line and it seems good, good. This probably means the timer was being released somewhere else in the code (or by iOS to save memory). Our releasing it (in our code) would for sure cause a crash if that's the case. I'll get a look to see if the file needs updating. For your project, don't worry, you didn't hurt anything ;-)
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
09/20/11 05:32 PM (14 years ago)
Awesome! Thank you so much, Dave! After I fix this, my next goal is to get my apps up on Android 1.5!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.