Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 17    Views: 323

trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
01/22/13 03:00 PM (13 years ago)

Blank Screen IOS Simulator & Device

I'm getting a blank screen in my ios simulator and devices. I don't have any errors. This from the logcat. 2013-01-22 14:55:50.530 sedonatravelguide[1559:17f03] -[XLappMgr registerForPush] [Line 325] Attempt to register for push notifications... 2013-01-22 14:55:50.575 sedonatravelguide[1559:17f03] BT_application: initializing buzztouch application 2013-01-22 14:55:50.575 sedonatravelguide[1559:17f03] BT_device: INIT 2013-01-22 14:55:50.575 sedonatravelguide[1559:17f03] BT_device: Unique UUID does not exist, creating. 2013-01-22 14:55:50.576 sedonatravelguide[1559:17f03] BT_device: This device is NOT an iPad. 2013-01-22 14:55:50.576 sedonatravelguide[1559:17f03] BT_device: This device can make phone calls 2013-01-22 14:55:50.661 sedonatravelguide[1559:17f03] BT_device: This device can send emails 2013-01-22 14:55:50.680 sedonatravelguide[1559:17f03] BT_device: This device cannot send SMS 2013-01-22 14:55:50.680 sedonatravelguide[1559:17f03] BT_device: This device can report it's location 2013-01-22 14:55:50.694 sedonatravelguide[1559:17f03] BT_device: This device cannot take pictures or videos 2013-01-22 14:55:50.695 sedonatravelguide[1559:17f03] BT_user: INIT 2013-01-22 14:55:50.706 sedonatravelguide[1559:1d00f] sedonatravelguide_appDelegate: initAudioPlayer in background thread 2013-01-22 14:55:50.706 sedonatravelguide[1559:17f03] sedonatravelguide_appDelegate: refreshAppData 2013-01-22 14:55:50.706 sedonatravelguide[1559:1d503] sedonatravelguide_appDelegate: loadSoundEffects SOUNDS NOT LOADING. SEE appDelegete.m, line 846 2013-01-22 14:55:50.708 sedonatravelguide[1559:17f03] BT_fileManager: File does not exist in cached directory: cachedAppConfig.txt 2013-01-22 14:55:50.708 sedonatravelguide[1559:17f03] BT_fileManager: File does exist in Xcode bundle: BT_config.txt 2013-01-22 14:55:50.708 sedonatravelguide[1559:17f03] BT_fileManager: readTextFileFromBundleWithEncoding: BT_config.txt encoding: -1 2013-01-22 14:55:50.709 sedonatravelguide[1559:17f03] sedonatravelguide_appDelegate: Parsing configuration data included in the project bundle. 2013-01-22 14:55:50.710 sedonatravelguide[1559:17f03] BT_application: validateApplicationData 2013-01-22 14:55:50.711 sedonatravelguide[1559:17f03] -[SBJsonParser errorTrace]: unrecognized selector sent to instance 0xd820d40 2013-01-22 14:55:50.743 sedonatravelguide[1559:1d00f] BT_audioPlayer: INIT (preparing it for possible background audio) 2013-01-22 14:55:50.794 sedonatravelguide[1559:17f03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SBJsonParser errorTrace]: unrecognized selector sent to instance 0xd820d40' *** First throw call stack: (0x252a052 0x2319d0a 0x252bced 0x2490f00 0x2490ce2 0x1c5c1 0x466d8 0x45deb 0xfed9d6 0xfee8a6 0xffd743 0xffe1f8 0xff1aa9 0x2cb9fa9 0x24fe1c5 0x2463022 0x2461
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/22/13 03:02 PM (13 years ago)
I'm going to predict that your plugins folder hasn't been added to your project in accordance withe the 'instructions.pdf' that is included with the code download? Just add that; things will come around. Cheers! -- Smug
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/22/13 03:03 PM (13 years ago)
Hmmmm...I'll check that out. I just added a new plugin the other day. Thanks.
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/22/13 03:15 PM (13 years ago)
Nope, I followed all the instructions to the T. Same blank screen. b
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/22/13 03:24 PM (13 years ago)
Hmm... It's going to be something simple... Look specifically for syntax errors in your references. Everything that calls a screen, ensure it exists. The reason a 'blank' page is coming up, is that it can't find the page. The only reason it won't find the page is because it's not there. And if it IS there and it can't find the page, it has to be syntax (spelling). Cheers! -- Smug
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/22/13 03:25 PM (13 years ago)
If I may inquire, I can't help but notice you're doing a 'Sedona Travel Guide'. I'm also working on a Touristy kind of App for my Area; Guam. I'll show you mine if you show me yours ;) Cheers! -- Smug
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/22/13 03:37 PM (13 years ago)
Sure, I'll show you. PM me and I'll DropBox it. I think it has something to do with either the Splash Screen or MacImage Gallery (That I just added). I'm getting the "Thread 1: signal SIGABRT" error. I've restarted the machine a bunch of times but makes no difference. 2013-01-22 15:29:46.758 sedonatravelguide[3821:707] BT_user: INIT 2013-01-22 15:29:46.771 sedonatravelguide[3821:5107] sedonatravelguide_appDelegate: initAudioPlayer in background thread 2013-01-22 15:29:46.775 sedonatravelguide[3821:5107] BT_audioPlayer: INIT (preparing it for possible background audio) 2013-01-22 15:29:46.802 sedonatravelguide[3821:5803] sedonatravelguide_appDelegate: loadSoundEffects SOUNDS NOT LOADING. SEE appDelegete.m, line 846 2013-01-22 15:29:46.844 sedonatravelguide[3821:707] sedonatravelguide_appDelegate: refreshAppData 2013-01-22 15:29:46.851 sedonatravelguide[3821:707] BT_fileManager: File does not exist in cached directory: cachedAppConfig.txt 2013-01-22 15:29:46.858 sedonatravelguide[3821:707] BT_fileManager: File does exist in Xcode bundle: BT_config.txt 2013-01-22 15:29:46.864 sedonatravelguide[3821:707] BT_fileManager: readTextFileFromBundleWithEncoding: BT_config.txt encoding: -1 2013-01-22 15:29:46.879 sedonatravelguide[3821:707] sedonatravelguide_appDelegate: Parsing configuration data included in the project bundle. 2013-01-22 15:29:46.906 sedonatravelguide[3821:707] BT_application: validateApplicationData 2013-01-22 15:29:46.925 sedonatravelguide[3821:707] -[SBJsonParser errorTrace]: unrecognized selector sent to instance 0x47c420 2013-01-22 15:29:46.932 sedonatravelguide[3821:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SBJsonParser errorTrace]: unrecognized selector sent to instance 0x47c420' *** First throw call stack: (0x361de88f 0x31154259 0x361e1a9b 0x361e0915 0x3613b650 0x17a57 0x395e5 0x38e4d 0x31afbcab 0x31af57dd 0x31ac3ac3 0x31ac3567 0x31ac2f3b 0x31a3a22b 0x361b2523 0x361b24c5 0x361b1313 0x361344a5 0x3613436d 0x31af486b 0x31af1cd5 0x35ab7 0x320c) terminate called throwing an exception(lldb)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/22/13 04:07 PM (13 years ago)
Have you tried removing the suspect Plugin and trying it again? Cheers! -- Smug
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/22/13 04:40 PM (13 years ago)
Splash screens seem to be problematic. I'd start by removing that. I always use the Default*.png files as my splash screen. Maybe it's related to the new push stuff? Mark
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/22/13 04:44 PM (13 years ago)
I'm getting the SIGABRT error on the UIApplicationMain Line #import <UIKit/UIKit.h> int main(int argc, char *argv[]) { //return sedonatravelguide_appDelegate as UIApplicationMain NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal= UIApplicationMain(argc,argv,@"UIApplication",@"sedonatravelguide_appDelegate"); [pool release]; return retVal; } Can I just remove the plugins until I find the problem? If that's the problem... b
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/22/13 05:16 PM (13 years ago)
Took all the push code out of the appdelegate, removed the splash screen, removed macimage gallery. Still have the blank screen on the emulator and the device. b
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/22/13 08:06 PM (13 years ago)
Hey Bruce...can you email me your BT_Config.txt file? Mark
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
01/23/13 10:42 AM (13 years ago)
Ok...Turns out I had some apostrophe's in my code which put in some \ escapes: {"itemId":"82AE5E362CBC61A7B1EBD32", "itemType":"WB_screen_menuImage", "itemNickname":"Devil\'s Bridge Trail", Mark helped me learn a new troubleshooting tip. Run your BT_Config.txt code through <a href="http://jsonlint.com" target="_blank" rel="nofollow">http://jsonlint.com</a>. That's how he found the problem. Thanks Mark!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/23/13 10:48 AM (13 years ago)
Rock on! It's allways the little things in development that cause the biggest headaches! Mark
 
sanamionline
Aspiring developer
Profile
Posts: 61
Reg: Jul 22, 2012
Yulin, Guangxi
3,510
like
02/03/13 08:34 PM (12 years ago)
Hi have the same blank screen issue in the simulator. I'm using XCode 4.6 iOS 6.1 so I'm not sure if that's related or not. I've followed the directions in the pdf and transferred all the folders to xCode and none are duplicates. I'v checked the BT.Config.txt file and it seems all ok. Any other suggestions? thanks
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/03/13 10:28 PM (12 years ago)
Hi @sanamionline, Is there anything showing up in the Xcode debug console at the time the screen should be loading that points to an issue? Do you have an actual screen configured in the control panel where you think it is for this particular portion of the app? Have you checked the Layout tab in your control panel to make sure a Home screen has been configured? Mark
 
sanamionline
Aspiring developer
Profile
Posts: 61
Reg: Jul 22, 2012
Yulin, Guangxi
3,510
like
02/03/13 10:58 PM (12 years ago)
Mark I don't know what did I do but it's fixed. If it doesn't work just download another project and run it through again ...
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/03/13 11:08 PM (12 years ago)
Well, I'll be honest, and say that doesn't make a lot of sense that it works by downloading the source again! When you do a download of the source, it packages the code for ALL the plugins you have in your control panel, whether you have the plugin as part of your actual app or not. That allows you to easily add the screen at a later date. The only reason you'd need to download the source again is if (1) it was corrupt the first time, or (2) you bought a new plugin, added it to your control panel, and then wanted to update your app. Aside from that, the source doesn't change, and the only thing that does is the configuration data, which you can get from your control panel and paste into your local BT_Config.txt file. Quite a mystery! Mark
 

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.