Back in Black
by Zilla · in iTorque 2D · 08/18/2009 (4:01 pm) · 15 replies
Until today, I could successfully test my games in iTGB and in simulator.
But now all I get in simulator is the famous black screen.
All of the apps that worked fine (Touch Game, Behaviour Shooter etc.) now produce nothing but a black screen w/ mouse in simulator.
They work fine from the iTGB editor as a Mac or Windows program.
I tried the solutions that I found in other threads:
1) Delete the Xcode build directory with the .app files
2) Follow the Xcode steps (compiling to simulator) in the tutorial (delete/add common, game, main.cs etc.)
3) Build simulator app from iTGB (besides: where's the difference to step 2?)
What else could I try?
But now all I get in simulator is the famous black screen.
All of the apps that worked fine (Touch Game, Behaviour Shooter etc.) now produce nothing but a black screen w/ mouse in simulator.
They work fine from the iTGB editor as a Mac or Windows program.
I tried the solutions that I found in other threads:
1) Delete the Xcode build directory with the .app files
2) Follow the Xcode steps (compiling to simulator) in the tutorial (delete/add common, game, main.cs etc.)
3) Build simulator app from iTGB (besides: where's the difference to step 2?)
What else could I try?
#2
I tried to search the forums but could not find unique answers for my questions.
1) Where do I set these compiler flags in Xcode?
2) Which one(s) should I set?
3) Is it correct that they should match the settings in the build window of the iTGB editor?
4) Where's the difference of testing an app in Xcode (as decribed in the official tutorial) and building it from the iTGB editor.
5) How do I rebuild an app from scratch?
a) Delete the Xcode build directory with the .app files
b) "Clean all targets" in Xcode
c) Delete all the DSOs in iTGB
d) ...
Thanks for your help :)
@Marc
It seems that we are almost neighbours in the global village:
Sunny greetings from Basel :)
08/19/2009 (6:45 am)
oops... I have some more n00b question because I am still struggling with the Xcode IDE (learning/reading books in progress... I switched from XNA to iTGB/Xcode recently...). So all you experienced users, please be indulgent ;)I tried to search the forums but could not find unique answers for my questions.
1) Where do I set these compiler flags in Xcode?
2) Which one(s) should I set?
3) Is it correct that they should match the settings in the build window of the iTGB editor?
4) Where's the difference of testing an app in Xcode (as decribed in the official tutorial) and building it from the iTGB editor.
5) How do I rebuild an app from scratch?
a) Delete the Xcode build directory with the .app files
b) "Clean all targets" in Xcode
c) Delete all the DSOs in iTGB
d) ...
Thanks for your help :)
@Marc
It seems that we are almost neighbours in the global village:
Sunny greetings from Basel :)
#3
2) See iTGB Cheat sheet above in the sticky
3) You can't set those things there. But they must match the flags you set for TGBGame and the editor on recompile. You can not have iTGB with script optimized and editor & game without script optimized
4) Building it will generate an xcode project for build and deploy to device
5) Click longer on the build button and you can choose clean.
If you just want it to update the resources if you altered dsos or media, you would use a. c won't help as xcode does not care about it.
And yupp, seems like you are only a stonethrow away ;)
Perhaps we can meet some day and/or work together on something :)
08/19/2009 (7:01 am)
1) in the project settings. I commonly forget about the exact place so I search for PUAP_OPTIMIZE in one of the optimize build targets project settings for iTGB2) See iTGB Cheat sheet above in the sticky
3) You can't set those things there. But they must match the flags you set for TGBGame and the editor on recompile. You can not have iTGB with script optimized and editor & game without script optimized
4) Building it will generate an xcode project for build and deploy to device
5) Click longer on the build button and you can choose clean.
If you just want it to update the resources if you altered dsos or media, you would use a. c won't help as xcode does not care about it.
And yupp, seems like you are only a stonethrow away ;)
Perhaps we can meet some day and/or work together on something :)
#4
Thank you for your detailed help :)
08/19/2009 (11:00 am)
Quote:Perhaps we can meet some day and/or work together on something :)Life is like a box of chocolates, you never know what you're gonna get ;)
Thank you for your detailed help :)
#5
08/19/2009 (11:06 am)
Quote:I commonly forget about the exact placewww.garagegames.com/community/forums/viewthread/91225/1#comment-620865
#6
I tried to reinstall Xcode and iTGB on the machine where the black screen occurs but the apps that ran o.k. on a different mac still produce nothing...
How can I clean the complete IDE and reinstall it from scratch?
08/20/2009 (7:32 am)
mmmh... I tested all my apps and the tutorials on another mac and they run just fine in the simulator :) although when I try to build them in iTGB the error cannot open main.cs occurs???I tried to reinstall Xcode and iTGB on the machine where the black screen occurs but the apps that ran o.k. on a different mac still produce nothing...
How can I clean the complete IDE and reinstall it from scratch?
#7
08/20/2009 (8:51 am)
Run this in a terminal:sudo /Developer/Library/uninstall-devtools --mode=all
#8
Maybe it will also solve my other Xcode problem: www.garagegames.com/community/forums/viewthread/100025 where you also tried to help me :)
Have you ever seen the error in the iTGB editor's build option that I mentioned above: cannot open main.cs though main.cs is present and the app can be compiled in Xcode and runs from the iTGB editor?
08/20/2009 (10:47 am)
Thank you Ronny :) I will try this.Maybe it will also solve my other Xcode problem: www.garagegames.com/community/forums/viewthread/100025 where you also tried to help me :)
Have you ever seen the error in the iTGB editor's build option that I mentioned above: cannot open main.cs though main.cs is present and the app can be compiled in Xcode and runs from the iTGB editor?
#9
I had one small Cocoa program I was working on that didn't build right on one iMac (2007 model), and the two of us fiddling with it couldn't figure out why the hell it worked on a mini, but not that. Reinstalling Xcode made that particular program work again. Other programs compiled fine.
In another case, I've seen Xcode completely unable to build any stable and functional Core Data programs on a hackintosh. No amount of reinstallation worked there.
I've also had an installation that did not work for iPhone development on my MacBook. Xcode seems to have an issue where the installer messes it up somehow, once in a red moon.
08/20/2009 (8:56 pm)
I don't recall the main.cs problem from anywhere. When you have wiped Xcode and reinstalled, do a full clean & rebuild on all targets in the Xcode projects. Perhaps you simply had a broken installation that compiled wrong.I had one small Cocoa program I was working on that didn't build right on one iMac (2007 model), and the two of us fiddling with it couldn't figure out why the hell it worked on a mini, but not that. Reinstalling Xcode made that particular program work again. Other programs compiled fine.
In another case, I've seen Xcode completely unable to build any stable and functional Core Data programs on a hackintosh. No amount of reinstallation worked there.
I've also had an installation that did not work for iPhone development on my MacBook. Xcode seems to have an issue where the installer messes it up somehow, once in a red moon.
#10
(I tried all active targets and different SDKs)

I don't know what to do :(
08/21/2009 (6:08 am)
I did a complete uninstall of Xcode as you suggested but Xcode can still not open ANY app in simulator that runs fine on another machine...(I tried all active targets and different SDKs)

I don't know what to do :(
#11
With the simulator open, go: iPhone Simulator -> Reset Content and Settings.
08/21/2009 (4:14 pm)
You probably already did this, but try resetting the simulator.With the simulator open, go: iPhone Simulator -> Reset Content and Settings.
#12
That did the trick :)
Problem solved, mistery remains...
@Marc, Ronny & David:
Thank you very much for your advice :)
08/25/2009 (7:58 am)
Yes, I did, but when I realized that also non-iTGB apps did not open in Simulator, I started operation clean-sweep and reinstalled OSX.That did the trick :)
Problem solved, mistery remains...
@Marc, Ronny & David:
Thank you very much for your advice :)
#13
08/25/2009 (9:53 am)
The mystery is how you broke the OS, but at least extreme measures fixed it :)
#14
/Users/<username>/Library/Application Support/iPhone Simulator/User/Applications/
and remove all your apps from there.
I get that problem on occasion and doing this fixes it 100% of the time for me.
08/25/2009 (1:13 pm)
If you have issues with the iPhone simulator, the best thing I find is go to:/Users/<username>/Library/Application Support/iPhone Simulator/User/Applications/
and remove all your apps from there.
I get that problem on occasion and doing this fixes it 100% of the time for me.
#15
08/25/2009 (1:19 pm)
You can also delete apps just like you do it on the device - hold down the left mousebutton on an icon to enter delete mode.
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft