Game Development Community

Apps do not compile correctly

by Ricky Hopper · in iTorque 2D · 10/20/2009 (5:21 pm) · 34 replies

Hey,

Whenever I try to compile an app to the Simulator, it brings up the loading screen, and then the logo just darkens and nothing happens after that. Does anyone know anything that would cause this?
Page«First 1 2 Next»
#21
11/03/2009 (10:59 am)
A note on the Stdlib stuff,

"Link with standard libraries" :

"If this setting activated, then the compiler driver will automatically pass its standard libraries to the linker to use during linking. If desired, this flag can be used to disable linking with the standard libraries, and then individual libraries can be passed as Other Linker Flags. [LINK_WITH_STANDARD_LIBRARIES, -nostdlib]"

This might be in the build options and disabled by mistake.

For the other posts :

Did you "pause" in the debugger when it darkened the screen and looked at the call stack? I have a suspicion of what it might be but i need to know what the call stack says. If it mentions UIAlert and AlertOkCancel or AlertRetryCancel its quite a simple fix.
#22
11/03/2009 (10:06 pm)
There's a Platform::AlertOK, but not an AlertOkCancel or either of the other ones. And "Link with standard libraries" is checked in all build settings (project and targets).
#23
11/03/2009 (10:13 pm)
Also, I just set "iPhone OS Deployment Target" to 2.0, and now I have a black screen that quickly turns to a white screen, which does nothing but does not darken. Hopefully I'm getting closer to a working product.
#24
11/04/2009 (3:15 am)
Yea, i can post a fix for the alert thing today. You should be able to look in the debugger window and check out the error (might be something to do with the audio profiles messed up, or that there is a problem with main.cs etc)...If you can look at the "message" in the debugger, it will tell you what the error is (and i will post the fix for the alert not showing up in a short while)
#25
11/04/2009 (5:42 am)
Ok, i have located the cause of the Alert Views not showing up and i am working on a fix. It has to do with the Default.png being visible, making the alert views not show up! Im busy fixing this now but you can try fixing the problems that it is alerting you about (using the debugger) and you can try removing default.png for now as well.
#26
11/04/2009 (4:14 pm)
I'm not sure what you're talking about with the message, but here's a screenshot for what I have with the white screen and the debugger:

Screenshot of debugger: http://img269.imageshack.us/img269/226/screenshot20091104at310.png
#27
11/10/2009 (11:09 pm)
Any other help from anyone?
#28
11/11/2009 (3:37 pm)
Ricky I was having a bunch of the same issues you where, so I ended up formatting my computer and reinstalling everything. I did this for other reason but it fix my bugs.

As for the white screen double check your commonConfig.xml see if the screen size is bigger then the iphone.
#29
11/11/2009 (5:11 pm)
Looking at the commonConfig.xml, it says the resolution is "480 320 32". I thought it was 320x240 but I could be wrong. I did clear everything off of my computer a while back, didn't fix things though. Is it worth it to try it again?
#30
11/11/2009 (5:32 pm)
I don't know if re formatting will help your right now, it more of a I can't figure this out, so lets try something. :)

As for the white screen, I have had this issue a number of times, but I can't really remember what cause it in the first place, so here is a grapeshot of issue that I think it could be.

First the screen size is not set for the iphone I.E. 800 x 600.
To fix: open TGB select the SceneGraph in "Project" tab then go to "Edit" tab and change the camera to the desired iphone screen.

You didn't add the files you needed, or you didn't add the files, or you didn't add then in the correct way or you forgot to build the DSO before you added them to your project.
To Fix: remove your game files from your xcode project, run the game, then added the files and make sure you have the build folders in xcode not yellow.

Your project doesn't have the correct DSO, make sure your building with an iphone version of the iTGB and not the standard NON iPhone TGB.
To Fix: Open up the tgb that is in iTGB run your project and then add it to xcode.

I don't know if this will help, but lets make sure it not this.


#31
11/11/2009 (5:47 pm)
Alright, just tried all those, and none of them seem to be the problem.
#32
11/12/2009 (6:21 pm)
K, I was hoping it would be that simple :)

Could you send me your console output evanchri (AT) gmail (dot) com
#33
11/15/2009 (9:28 pm)
Alright, I emailed Chris, and his reply got me trying to figure some things out. I now have it working great in simulator, but when put on the device, it loads up the logo and the screen darkens after 5-10 seconds. The debugger does not acknowledge anything being wrong. For the previous problem, I figured out that I had been adding files with "Recursively create folders..." on instead of "Create groups..." or whatever they are.

Looks like it's getting closer to working.
#34
11/22/2009 (7:35 pm)
Haven't seen any other replies, so maybe some console output will help diagnose the problem?

[Session started at 2009-11-18 17:44:02 -0500.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1128) (Sat Sep 26 06:46:24 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
Loading program into debugger…
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-60890-23
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
[Switching to thread 11779]
[Switching to thread 11779]
sharedlibrary apply-load-rules all
(gdb) continue
Initial Command Line
0 : /var/mobile/Applications/496201A1-B156-4864-BB49-2787E4DAA011/broken.app/broken
Merged Command Line
0 : /var/mobile/Applications/496201A1-B156-4864-BB49-2787E4DAA011/broken.app/broken
performing mainInit()
Program received signal: “EXC_BAD_ACCESS”.
(gdb)

This is on the device itself.
Page«First 1 2 Next»