GLBasic forum

Main forum => GLBasic - en => Topic started by: djtoon on 2010-Aug-11

Title: the app compiled but crashes on the end
Post by: djtoon on 2010-Aug-11
is there a way to know what happend?
i start the app
the screen is black
and then it crashes back to the homescreen
Title: Re: the app compiled but crashes on the end
Post by: trucidare on 2010-Aug-11
write the GDB output, there are some hinds why it crashes
Title: Re: the app compiled but crashes on the end
Post by: djtoon on 2010-Aug-11
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

Title: Re: the app compiled but crashes on the end
Post by: backslider on 2010-Aug-11
Maybe this Thread will help you...
http://www.glbasic.com/forum/index.php?topic=4806.0

greets
Title: Re: the app compiled but crashes on the end
Post by: trucidare on 2010-Aug-11
Ignore the Warning, its only in this XCode project, i created a new one for V8 and MacIDE without this warning.
Title: Re: the app compiled but crashes on the end
Post by: djtoon on 2010-Aug-11
still getting the same crush ..
is it my os ? 3.1.2?
or someting else
im compiling the itouchdemo
Title: Re: the app compiled but crashes on the end
Post by: backslider on 2010-Aug-11
What´s your setting for the Target-Device? OS = 3.1.2? If yes, then try 3.0!
Title: Re: the app compiled but crashes on the end
Post by: djtoon on 2010-Aug-11
could it be the provisioning file?

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

Title: Re: the app compiled but crashes on the end
Post by: matchy on 2010-Aug-11
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
Title: Re: the app compiled but crashes on the end
Post by: djtoon on 2010-Aug-11
well that worked :)
seem like i have a bug

anyway to debug?
Title: Re: the app compiled but crashes on the end
Post by: djtoon on 2010-Aug-11
do i need to copy my png files someware?
in the media in the xcode library?
Title: Re: the app compiled but crashes on the end
Post by: djtoon on 2010-Aug-11
the app works great on the pc
Title: Re: the app compiled but crashes on the end
Post by: backslider on 2010-Aug-11
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
Title: Re: the app compiled but crashes on the end
Post by: djtoon on 2010-Aug-11
ok works :)
10x
Title: Re: the app compiled but crashes on the end
Post by: matchy on 2010-Aug-11
If you add new files to the ../xcode/glbasic/media folder be sure to build clean all otherwise an error will occur on LOADSPRITE!