Having troubles running app in simulator...
by Daniel Hopkins · in iTorque 2D · 11/29/2009 (10:36 pm) · 2 replies
Hey,
I recently purchased iTGB and am trying to get the basics on building and running a simple app on the iPhone. Being a Windows user, I'm also new to Xcode and the Mac OS.
I'm currently using the simulator, as I haven't received my iphone development authorization email yet. Here are my settings:
Active Executable: iTGB_Script_Optimize - iPhone Simulator (3.1.2)
Base SDK: iPhone Simulator 3.1.2
Compiler Version: GCC 4.2
Configuration: Release
So, I create a new iTGB project, add a couple sprites into the scene, save it, and then play it--everything works fine. Then I open the "Xcode_iPhone->Torque2D" project, do a "Clean All," delete the "common," "game," and "main.cs" files, and build and run. Everything builds fine. However, when the simulator loads, and the games starts, it gets stuck on the default iTGB startup splash screen. The odd thing is that everything worked fine the first time, but after that, it would never display the scene--just the splash screen.
Any help would be greatly appreciated!
Thanks,
Daniel
I recently purchased iTGB and am trying to get the basics on building and running a simple app on the iPhone. Being a Windows user, I'm also new to Xcode and the Mac OS.
I'm currently using the simulator, as I haven't received my iphone development authorization email yet. Here are my settings:
Active Executable: iTGB_Script_Optimize - iPhone Simulator (3.1.2)
Base SDK: iPhone Simulator 3.1.2
Compiler Version: GCC 4.2
Configuration: Release
So, I create a new iTGB project, add a couple sprites into the scene, save it, and then play it--everything works fine. Then I open the "Xcode_iPhone->Torque2D" project, do a "Clean All," delete the "common," "game," and "main.cs" files, and build and run. Everything builds fine. However, when the simulator loads, and the games starts, it gets stuck on the default iTGB startup splash screen. The odd thing is that everything worked fine the first time, but after that, it would never display the scene--just the splash screen.
Any help would be greatly appreciated!
Thanks,
Daniel
#2
I then deleted the generated app, deleted the "common" "game" and "main.cs" files, and performed a "Clean All." Then I started a completely new iTGB project, built the scene, ran it, imported the appropriate folders into the "Resources" folder, and then compiled and ran. This time, once the splash screen went away, there was a white bar around the left and bottom sides--everything else was black and nothing from my scene was displayed.
Again, any help would be great!
Thanks,
Daniel
EDIT: I aplogize. I did a search and found the answer. Everything is now working! Thanks again for your help!
11/30/2009 (12:43 am)
Thank you very much for the quick response! Everything now compiles and gets past the splash screen. However, now I'm having another problem. Everything ran fine until I looked up how to change the application name via the "Product name" field in the "Targets->iTGB->Get Info" dialog box. I set the name to "iTouchSim" and then re-built it. Now, once the splash screen goes away nothing is displayed (i.e. black screen). I then deleted the generated app, deleted the "common" "game" and "main.cs" files, and performed a "Clean All." Then I started a completely new iTGB project, built the scene, ran it, imported the appropriate folders into the "Resources" folder, and then compiled and ran. This time, once the splash screen went away, there was a white bar around the left and bottom sides--everything else was black and nothing from my scene was displayed.
Again, any help would be great!
Thanks,
Daniel
EDIT: I aplogize. I did a search and found the answer. Everything is now working! Thanks again for your help!
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft