farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
04/23/13 02:25 AM (12 years ago)

black screen IOS, need to reset simulator

Hi Gang, I am working on a new IOS app (self-hosted) and I am getting the dreaded black screen on the simulator. The only way I can get the app running on the simulator is by "reset content and Settings". Then it works. I have to do that every single time I make a change on the control panel and want to see the result on the simulator. A bit tedious. Anyone has any idea what's going on and how I can solve this issue? Thanks, Farcat
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
04/23/13 02:30 AM (12 years ago)
Sometimes Xcode is just a pain in the backside try deleting the derived data sometimes multiple caches are kept with the same app. You can find it by going to preferences
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/23/13 02:36 AM (12 years ago)
A pain indeed! Thanks @Kittsy. Would you happen to know where I need to look in preferences, can't see anything related to cache. Although, I forgot to say that I need to copy and paste the configuration data every single time as well as clean the simulator.
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/23/13 02:43 AM (12 years ago)
It might not be related but when I launch Xcode I get the message: "Xcode wants to connect to developer.apple.com on TCP port 80 (http): -Any connection -Only port 80TCP (http) -Only developer.apple.com -Only developer.apple.com and port 80 TCP (http)" I am working on a new computer and I am just starting to use Xcode on it (didn't get that message on my other computer). Thanks for any advice, Farcat
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
04/23/13 02:57 AM (12 years ago)
I've never seen that error sorry, It derived data not cache sorry. I'm not in front of a mac so its blind navigation. Go to preferences in xcode it should have a few tabs I think it's the third The top one is the derived data click teh arrow to go to the file and delete it all, thats like a hard reste of the simulator aswell as the derived data it will have links to logs and such
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/23/13 03:10 AM (12 years ago)
Pretty good navigation from memory! Unfortunately I have cleared the derived data and nothing, still black screen. It looks like the app doesn't communicate with the control panel since changes happen only when the config data is copied onto Xcode. Anybody came across this? Farcat
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/23/13 05:22 AM (12 years ago)
What does your BT_config.txt file look like? Anything quasi-normal? Things just sound a bit too odd. Check to see the config file is reasonably good. Cheers! -- Smug
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/23/13 08:46 AM (12 years ago)
Hi Smug, The file looks fine but I am no expert. It is odd indeed. Do you mind if I email you a copy to have a quick look? Cheers, Farcat
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
04/23/13 08:47 AM (12 years ago)
Trust me if refreshing and reseting the simulator makes it work once it is not the code that causing teh problem it's xcode being tempremental . It's just happened to me now jinx. Just force quit xcode to a few cleans
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/23/13 09:06 AM (12 years ago)
I am not doing anything different than other apps, just on a different machine. I am working on a fresh instal of xcode on a new computer. Do you think that it is worth re-installing xcode? I have already deleted the app and started from scratch with the same result. I am stumped.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
04/23/13 09:07 AM (12 years ago)
Might be worth a shot, if it was the json it would error
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/23/13 09:19 AM (12 years ago)
I ran json in the validator and it came out OK
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/23/13 10:08 AM (12 years ago)
So it's fine on initial install but black on subsequent runs? Is that true if you do not refresh? There's an outside chance it's due to something with your online config data - especially if you're using a custom/unofficial plugin as your home screen or you were monkeying with manual overrides of JSON data. Wouldn't necessarily show up on JSON validation. If it consistently does the same thing, it would lead me to believe its more than the simulator being screwy. But if its inconsistent then it very well could be the simulator. I know mine sometimes takes forever to transition from the black screen to actually running the app. Occasionally it won't load at all and I have to quit both the simulator and Xcode and re-open them both.
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/23/13 10:54 AM (12 years ago)
Hi Chris! No, it was black from the start. It is early stage on this app development, I haven't had a chance to monkey around the config data yet. The only way for me to run the simulator is to reset it, close the simulator, close the app and relaunch. If I then make changes on the control panel it may or may not crash the simulator. For example, I changed the title on a screen and that was OK. I changed the layout to tab and added the 5 relevant screens and it crashes. If I then reset, close and relaunch, the simulator would should me the old version of the app (without the tabs), although I can see the tabs set up on my CP. The home screen is a menu button, I do have a custom-made plugin on the project but no screens made with it yet. I deleted it and it didn't make any difference. I downloaded a fresh source code and started again with the same result. I have Xcode on two machines, this behavior shows on both. Sorry for the long post, Xcode is driving me up the walls! Farcat
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/23/13 12:39 PM (12 years ago)
do other apps do the same thing? Does the debug start to log anything?
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/23/13 01:41 PM (12 years ago)
I build another test app and it behaves normally. On the debugger when I run the simulator I get: Thread1: signal SIGABRT "int retVal= UIApplicationMain(argc,argv,@"UIApplication",@"cablecar_appDelegate");"
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/23/13 01:48 PM (12 years ago)
sounds like definitely something wrong with your code. Do you get any other debug info? Try setting up an exception breakpoint as shown in this how-to: http://ijoshsmith.com/2011/11/28/debugging-exceptions-in-xcode-4-2/
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/23/13 02:06 PM (12 years ago)
Thanks Chris, I have set up an exception breakpoint as per the instructions. I am not familiar with the debugger, not too sure what I am looking for. Here is a screenshot, just in case you see something obvious. https://dl.dropboxusercontent.com/u/79990593/Screen%20Shot%202013-04-23%20at%2011.01.50%20PM.png
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/23/13 02:08 PM (12 years ago)
Ah - the issue is your plugin isn't updated for the new XCode standards. Are you sure you're using a fresh source code download? The line that caused the error should read: [BT_debugger showIt:self theMessage:@"viewDidLoad"];
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/23/13 02:23 PM (12 years ago)
Very relieved you found the issue! Thanks! Yes, the source code is very fresh from this afternoon. Do I just over type this code in the debugger?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/23/13 02:23 PM (12 years ago)
Yes - but if there's one issue like that, there may be more...
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/23/13 02:27 PM (12 years ago)
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/23/13 02:28 PM (12 years ago)
Are you on self-hosted by chance?
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/23/13 02:33 PM (12 years ago)
yes, I am self hosted. I have just done now a new download of the source code with the same error.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/23/13 02:35 PM (12 years ago)
Make sure you're running the most up-to-date plugins. Go to "Admin"-->"Manage Plugins"-->"Plugin Maintenance"-->"Download plugins from your buzztouch.com Control Panel". Click the 'Download' button and click 'Update' next to each plugin.
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
04/23/13 03:01 PM (12 years ago)
Bingo, the issue was an out of date plugin! I updated, downloaded the source again and now all is well. Thanks a lot for your time Chris! Farcat
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/23/13 03:02 PM (12 years ago)
no problem - glad you got it working! :)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.