Conflict with iPad1

We are using the latest corona SDK and my present xCode is 4.5. When i build my App it runs properly in Ipad2 but the same build does not run in iPad 1.

Kindly suggest what could be wrong and how to rectify it.

Thanks
Rishi [import]uid: 103269 topic_id: 33165 reply_id: 333165[/import]

I had to dust off my iPad 1 :slight_smile: Haven’t used it in a while…
I use the latest daily build 2012.791, with Xcode 4.5.2 and I managed to install and run my Corona apps with no problem.

Which iOS version is on your iPad 1? My iPad 1 is running iOS 5.1.1.
EDIT:
I assume that the app is crashing on your iPad 1.
You can start the Xcode Organizer and check your device log for your app to see where and what is causing the crash. [import]uid: 70847 topic_id: 33165 reply_id: 131707[/import]

Keep in mind the iPad 1 only has like 256M of memory (the same memory as a 3Gs) and with the larger images needed to drive that display, you run out of memory much faster than you would on an iPhone 4 or an iPad 2 with their 512M of memory. You are likely getting a low memory error and it’s shutting your app down.

I’ve found that while Corona SDK gives us a low memory warning, sometimes the OS is very aggressive in killing you and not giving you time to clean up memory.

If you’re app is based on Storyboard, scenes do not automatically get purged/removed until the app gets a low memory warning, and by then may be too late.

[import]uid: 19626 topic_id: 33165 reply_id: 131764[/import]

I had to dust off my iPad 1 :slight_smile: Haven’t used it in a while…
I use the latest daily build 2012.791, with Xcode 4.5.2 and I managed to install and run my Corona apps with no problem.

Which iOS version is on your iPad 1? My iPad 1 is running iOS 5.1.1.
EDIT:
I assume that the app is crashing on your iPad 1.
You can start the Xcode Organizer and check your device log for your app to see where and what is causing the crash. [import]uid: 70847 topic_id: 33165 reply_id: 131707[/import]

Keep in mind the iPad 1 only has like 256M of memory (the same memory as a 3Gs) and with the larger images needed to drive that display, you run out of memory much faster than you would on an iPhone 4 or an iPad 2 with their 512M of memory. You are likely getting a low memory error and it’s shutting your app down.

I’ve found that while Corona SDK gives us a low memory warning, sometimes the OS is very aggressive in killing you and not giving you time to clean up memory.

If you’re app is based on Storyboard, scenes do not automatically get purged/removed until the app gets a low memory warning, and by then may be too late.

[import]uid: 19626 topic_id: 33165 reply_id: 131764[/import]

Thanks for the feedback rob. I think that might be an issue. [import]uid: 103269 topic_id: 33165 reply_id: 131901[/import]

Yeah, that could be the issue. However, you’ll be able to confirm if that is the case if you check the Device Log for your device in the Xcode Organizer. [import]uid: 70847 topic_id: 33165 reply_id: 131908[/import]

Thanks for the feedback rob. I think that might be an issue. [import]uid: 103269 topic_id: 33165 reply_id: 131901[/import]

Yeah, that could be the issue. However, you’ll be able to confirm if that is the case if you check the Device Log for your device in the Xcode Organizer. [import]uid: 70847 topic_id: 33165 reply_id: 131908[/import]

Yes i realized the memory was an issue, since i created a basic app using my same mentioned configuration, and it worked in iPad 1 & 2.

So since i am creating a story book which has lot of images and animation it seems iPad1 is not supporting that to open. I have to look for ways so that the app loads in iPad1.

Kindly suggest if there are some ways.

Thanks [import]uid: 103269 topic_id: 33165 reply_id: 132033[/import]

You might have already done what I’m about to suggest, but some basic advice would be not to load too many graphics resources at once. Only load what’s necessary for the current page, and dispose of them when not needed.
Also don’t use Retina graphics and scale them down, that wastes a lot of precious memory. It’s better to use Corona’s dynamic image resolution and have 2 separate files. One for standard resolution (iPad 1 and 2) and one for Retina displays. [import]uid: 70847 topic_id: 33165 reply_id: 132040[/import]

And if you’re using storyboard… remove the previous scene or do a removeAll. There is even an autoPurge flag you can set (though I prefer removing rather than purging). Don’t let those scenes build up specially if you don’t plan to go back to them.

[import]uid: 19626 topic_id: 33165 reply_id: 132075[/import]

Yes i realized the memory was an issue, since i created a basic app using my same mentioned configuration, and it worked in iPad 1 & 2.

So since i am creating a story book which has lot of images and animation it seems iPad1 is not supporting that to open. I have to look for ways so that the app loads in iPad1.

Kindly suggest if there are some ways.

Thanks [import]uid: 103269 topic_id: 33165 reply_id: 132033[/import]

You might have already done what I’m about to suggest, but some basic advice would be not to load too many graphics resources at once. Only load what’s necessary for the current page, and dispose of them when not needed.
Also don’t use Retina graphics and scale them down, that wastes a lot of precious memory. It’s better to use Corona’s dynamic image resolution and have 2 separate files. One for standard resolution (iPad 1 and 2) and one for Retina displays. [import]uid: 70847 topic_id: 33165 reply_id: 132040[/import]

And if you’re using storyboard… remove the previous scene or do a removeAll. There is even an autoPurge flag you can set (though I prefer removing rather than purging). Don’t let those scenes build up specially if you don’t plan to go back to them.

[import]uid: 19626 topic_id: 33165 reply_id: 132075[/import]