App runs in simulator, not on iPad

My new app runs great in the simulator, installs on my iPad, but when I click the icon, the screen goes blank, then the app exits. App is under 10MB. Any suggestions? Thanks. [import]uid: 10083 topic_id: 2758 reply_id: 302758[/import]

What does the XCode Organizer says regarding logfiles? And check the casing of the filenames of your images. That they match your code.

Did oyu run the simulator through the terminal. There you can see some errors too. [import]uid: 5712 topic_id: 2758 reply_id: 8311[/import]

Hi Mike,

Thanks for the reply. I’ll double check all the spelling and see what XCode reports. So far the terminal isn’t showing any problems. [import]uid: 10083 topic_id: 2758 reply_id: 8321[/import]

I ment the Corona terminal. Start the simulator via the Corona Terminal. The weird thing about LUA is that it can through an error but it seems that your app runs fine. On the device it could be different then. [import]uid: 5712 topic_id: 2758 reply_id: 8347[/import]

Hello,

I’ve have noticed sometimes the same behavior.
It happens often (but not allways) each time I don’t have removed the old version on my iPhone (or iPad).

So, from now on, I allways delete the application on the iPhone first.
If it may help…

Olivier. [import]uid: 9079 topic_id: 2758 reply_id: 9860[/import]

Here’s more info about Corona Terminal:

http://developer.anscamobile.com/content/corona-simulator-and-debugger-corona-simulator-and-debugger

Double-click on Corona Terminal instead of Corona Simulator in the application folder. The terminal will launch the simulator for you. Then open your app. If there are any errors, you’ll see them come up in the terminal window.

[import]uid: 5917 topic_id: 2758 reply_id: 10546[/import]

Hello!!! I have veeery big problem!!! I can’t run my application on my iPad (still on simulator it works perfect). Even corona sample applications don’t work. The screen goes blank, then the app exits. Maybe itis because my iPad has iOS 4.2? [import]uid: 12728 topic_id: 2758 reply_id: 15729[/import]

My iPad works fine on the latest iOS.

Are you making sure you select “iPad” and not “iPhone” when you choose what device you are targeting?

Also, what sample apps are you building? [import]uid: 10144 topic_id: 2758 reply_id: 15816[/import]

Yes i’m sure i select iPad when build the app! i’m tried to build almost all sample apps, for example even Hello World app doesn’t work!! :frowning: [import]uid: 12728 topic_id: 2758 reply_id: 15822[/import]

Maybe try a demo written to work on iPad?

Try this one; http://developer.anscamobile.com/code/ghosts-vs-monsters

Let us know if that works :slight_smile: [import]uid: 10144 topic_id: 2758 reply_id: 15823[/import]

the same result!!! doesn’t work!! :frowning:
when i run the app it opens loading page, and then after some seconds it exits!!!
[import]uid: 12728 topic_id: 2758 reply_id: 15828[/import]

Have you tried using the Xcode debugger? [import]uid: 10144 topic_id: 2758 reply_id: 15829[/import]

Actually i haven’t tried Xcode debugger! when i build for xcode simulator, it works well on it, and i don’t know how to use xcode debugger with corona built app. [import]uid: 12728 topic_id: 2758 reply_id: 15831[/import]

Is there anything in the devices console after it exits? You can view the output of print statements and the like on device through the xcode organizer. [import]uid: 3 topic_id: 2758 reply_id: 16153[/import]

There is nothing in device console after app exits (ghosts vs monsters). But here is device logs:

[code]
Incident Identifier: 85541749-2B42-4CB5-843C-A241FA43506F
CrashReporter Key: 9b0f0d31575eea321558f1aef5c89554775ff290
Hardware Model: iPad1,1
Process: Ghostsvs.Monsters2 [4291]
Path: /var/mobile/Applications/BCF0A851-2580-45D0-83C5-8B30048B0B71/Ghostsvs.Monsters2.app/Ghostsvs.Monsters2
Identifier: Ghostsvs.Monsters2
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]

Date/Time: 2010-09-08 15:21:22.811 +0500
OS Version: iPhone OS 4.2.1 (8C148)
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000
Crashed Thread: 0

Thread 0 Crashed:
0 Ghostsvs.Monsters2 0x001027c4 0x1000 + 1054660
1 Ghostsvs.Monsters2 0x00005b44 0x1000 + 19268
2 UIKit 0x341e1bfa 0x341a5000 + 248826
3 UIKit 0x341dd252 0x341a5000 + 229970
4 UIKit 0x341a9484 0x341a5000 + 17540
5 UIKit 0x341a8ec2 0x341a5000 + 16066
6 UIKit 0x341a8900 0x341a5000 + 14592
7 GraphicsServices 0x320c8efc 0x320c4000 + 20220
8 CoreFoundation 0x3580f6f8 0x357da000 + 218872
9 CoreFoundation 0x3580f6bc 0x357da000 + 218812
10 CoreFoundation 0x35801f76 0x357da000 + 163702
11 CoreFoundation 0x35801c80 0x357da000 + 162944
12 CoreFoundation 0x35801b88 0x357da000 + 162696
13 UIKit 0x341dc302 0x341a5000 + 226050
14 UIKit 0x341d9e8c 0x341a5000 + 216716
15 Ghostsvs.Monsters2 0x00003b80 0x1000 + 11136
16 Ghostsvs.Monsters2 0x00003b50 0x1000 + 11088

Thread 1:
0 libSystem.B.dylib 0x30d30974 0x30d03000 + 186740
1 libSystem.B.dylib 0x30dda704 0x30d03000 + 882436
2 libSystem.B.dylib 0x30dda174 0x30d03000 + 881012
3 libSystem.B.dylib 0x30dd9b98 0x30d03000 + 879512
4 libSystem.B.dylib 0x30d7e24a 0x30d03000 + 504394
5 libSystem.B.dylib 0x30d76970 0x30d03000 + 473456

Thread 2:
0 libSystem.B.dylib 0x30d7e9e0 0x30d03000 + 506336
1 libSystem.B.dylib 0x30d7e364 0x30d03000 + 504676
2 libSystem.B.dylib 0x30d76970 0x30d03000 + 473456

Thread 3:
0 libSystem.B.dylib 0x30d04268 0x30d03000 + 4712
1 libSystem.B.dylib 0x30d06354 0x30d03000 + 13140
2 CoreFoundation 0x35802648 0x357da000 + 165448
3 CoreFoundation 0x35801ed2 0x357da000 + 163538
4 CoreFoundation 0x35801c80 0x357da000 + 162944
5 CoreFoundation 0x35801b88 0x357da000 + 162696
6 WebCore 0x34bf6124 0x34b3f000 + 749860
7 libSystem.B.dylib 0x30d7d886 0x30d03000 + 501894
8 libSystem.B.dylib 0x30d72a88 0x30d03000 + 457352

Thread 4:
0 libSystem.B.dylib 0x30de5f50 0x30d03000 + 929616
1 libSystem.B.dylib 0x30d83130 0x30d03000 + 524592
2 libSystem.B.dylib 0x30d05188 0x30d03000 + 8584
3 libSystem.B.dylib 0x30d0514c 0x30d03000 + 8524
4 libsqlite3.dylib 0x361848e2 0x36170000 + 84194
5 libsqlite3.dylib 0x36172b28 0x36170000 + 11048
6 libsqlite3.dylib 0x36172d08 0x36170000 + 11528
7 libsqlite3.dylib 0x3617cafc 0x36170000 + 51964
8 libsqlite3.dylib 0x36181a20 0x36170000 + 72224
9 libsqlite3.dylib 0x361a5222 0x36170000 + 217634
10 libsqlite3.dylib 0x361a5f98 0x36170000 + 221080
11 libsqlite3.dylib 0x361a6440 0x36170000 + 222272
12 libsqlite3.dylib 0x361a6602 0x36170000 + 222722
13 libsqlite3.dylib 0x361721f8 0x36170000 + 8696
14 libsqlite3.dylib 0x36171f3e 0x36170000 + 7998
15 libsqlite3.dylib 0x361abea6 0x36170000 + 245414
16 libsqlite3.dylib 0x3617201e 0x36170000 + 8222
17 libsqlite3.dylib 0x3619d73a 0x36170000 + 186170
18 libsqlite3.dylib 0x3619d8b4 0x36170000 + 186548
19 libsqlite3.dylib 0x3619d930 0x36170000 + 186672
20 libsqlite3.dylib 0x3619f900 0x36170000 + 194816
21 libsqlite3.dylib 0x3619f9e4 0x36170000 + 195044
22 libsqlite3.dylib 0x3617594e 0x36170000 + 22862
23 libsqlite3.dylib 0x3617723a 0x36170000 + 29242
24 libsqlite3.dylib 0x361978fe 0x36170000 + 162046
25 libsqlite3.dylib 0x361a51aa 0x36170000 + 217514
26 libsqlite3.dylib 0x361a5f98 0x36170000 + 221080
27 libsqlite3.dylib 0x361a6440 0x36170000 + 222272
28 libsqlite3.dylib 0x361a6602 0x36170000 + 222722
29 libsqlite3.dylib 0x36171178 0x36170000 + 4472
30 AppSupport 0x3082530a 0x30821000 + 17162
31 AppSupport 0x308254e6 0x30821000 + 17638
32 AppSupport 0x30826574 0x30821000 + 21876
33 AppSupport 0x308269de 0x30821000 + 23006
34 AppSupport 0x30826afe 0x30821000 + 23294
35 AddressBook 0x34168cf4 0x3415c000 + 52468
36 AddressBook 0x3415eeda 0x3415c000 + 11994
37 AddressBook 0x3415f1e8 0x3415c000 + 12776
38 AddressBook 0x3415f1f4 0x3415c000 + 12788
39 AddressBook 0x3416b394 0x3415c000 + 62356
40 TextInput 0x3210826c 0x32100000 + 33388
41 TextInput 0x3210c802 0x32100000 + 51202
42 TextInput 0x3210e000 0x32100000 + 57344
43 libSystem.B.dylib 0x30d7d886 0x30d03000 + 501894
44 libSystem.B.dylib 0x30d72a88 0x30d03000 + 457352

Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x0000001e r2: 0x00000028 r3: 0xfffffff5
r4: 0x003bc860 r5: 0x00000021 r6: 0x344b68ef r7: 0x2fdfe364
r8: 0x00000000 r9: 0x00000001 r10: 0x344babbf r11: 0x344baba0
ip: 0x00000010 sp: 0x2fdfe35c lr: 0xffffffff pc: 0x001027c4
cpsr: 0x80000010

[/code] [import]uid: 12728 topic_id: 2758 reply_id: 16267[/import]

If nothing works, are you sure you added the device properly to the adhoc distribution profile? It might be worth looking into. [import]uid: 10835 topic_id: 2758 reply_id: 16284[/import]

Yes i’m sure because on iPhone apps work fine, but not on iPad!!! [import]uid: 12728 topic_id: 2758 reply_id: 16359[/import]

Still, maybe all this because of iOS version?
Does somebody have normally working corona app on iPad with iOS 4.2.1? [import]uid: 12728 topic_id: 2758 reply_id: 16400[/import]

“Yes i’m sure because on iPhone apps work fine, but not on iPad!!!”

That it works on your iPhone doesn’t mean you entered the iPad UDID correctly at all.

Did you update your dev certificate and redownload and reintall it again?

Since the problem is exclusive to your iPad I’d start looking into that. Stuff works fine on my iPad by the way, so it’s not a Corona thing. [import]uid: 10835 topic_id: 2758 reply_id: 16405[/import]

I updated my dev certificate and redownload and reinstalled it. Still doesn’t work.
That is interesting, I installed corona app Eyes of the Prophet from appstore and it works well,
and I built this project by myself in corona sdk, and it crashs!!! [import]uid: 12728 topic_id: 2758 reply_id: 16884[/import]