the app compiled but crashes on the end

Previous topic - Next topic

djtoon

is there a way to know what happend?
i start the app
the screen is black
and then it crashes back to the homescreen

trucidare

write the GDB output, there are some hinds why it crashes
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

djtoon

i created the itouchdemo file and compiled it
i got one error on compile:

Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'iPhone-Info.plist'.

and when i run the app
the app starts and then ends automaticly like a cruch ?

im useing ios 3.1.2
with the new ios4 sdk



trucidare

Ignore the Warning, its only in this XCode project, i created a new one for V8 and MacIDE without this warning.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

djtoon

still getting the same crush ..
is it my os ? 3.1.2?
or someting else
im compiling the itouchdemo

backslider

What´s your setting for the Target-Device? OS = 3.1.2? If yes, then try 3.0!

djtoon

could it be the provisioning file?

i enterd
3LJV44QT6J.com.dooshigames.sungame.${PRODUCT_NAME:rfc1034identifier}
is this the right way?


matchy

If the iPhone screen goes black then to home, then it means the app has signed and started to run fine. There should be an debug error on the crash. So is it the same for other code? eg:
Code (glbasic) Select
PRINT "Hello World",0,0:SHOWSCREEN:MOUSEWAIT

djtoon

well that worked :)
seem like i have a bug

anyway to debug?

djtoon

do i need to copy my png files someware?
in the media in the xcode library?

djtoon

the app works great on the pc

backslider

You have to copy your files from the pc project to the xcode/glb/media folder.

You can debug your Program!
use STDOUT "loading textures", STDOUT "running main loop" for e.g. in your glb-code before u call your method or while loop....
Then u can read your outputs on the debug-console in xcode! Thats very helpful ;)

greets

djtoon


matchy

If you add new files to the ../xcode/glbasic/media folder be sure to build clean all otherwise an error will occur on LOADSPRITE!