Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 13    Views: 113

mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
01/06/13 12:26 PM (13 years ago)

I think I broke my app... strange

Starting a few days ago the strangest thing happens... when run my app in the simulator or install on my device (iPhone 5) my custom home screen plugin doesn't load and instead all you see is the background picture. However when I hit the refresh icon at the top then the home page loads. But if I exit the app and come back in it's just the background again. I've updated my config.txt file twice and it keeps happening. I don't recall messing around with any settings in xcode itself but I must have done something. My home screen plugin is called xib_home. Here's the output from the console: --------------------------------- 2013-01-06 14:18:16.201 erres2[777:1af03] BT_application: initializing buzztouch application 2013-01-06 14:18:16.203 erres2[777:1af03] BT_device: INIT 2013-01-06 14:18:16.204 erres2[777:1af03] BT_device: Unique UUID exists. 2013-01-06 14:18:16.206 erres2[777:1af03] BT_device: This device is NOT an iPad. 2013-01-06 14:18:16.207 erres2[777:1af03] BT_device: This device can make phone calls 2013-01-06 14:18:16.211 erres2[777:1af03] BT_device: This device can send emails 2013-01-06 14:18:16.212 erres2[777:1af03] BT_device: This device cannot send SMS 2013-01-06 14:18:16.213 erres2[777:1af03] BT_device: This device can reports it's location 2013-01-06 14:18:16.214 erres2[777:1af03] BT_device: This device cannot take pictures or videos 2013-01-06 14:18:16.214 erres2[777:1af03] BT_user: INIT 2013-01-06 14:18:16.216 erres2[777:1af03] BT_networkState: INIT 2013-01-06 14:18:16.220 erres2[777:1af03] BT_networkState: Monitoring Connection: WiFi Not Available 2013-01-06 14:18:16.221 erres2[777:1af03] BT_networkState: Monitoring Connection: WiFi Available 2013-01-06 14:18:16.222 erres2[777:1af03] BT_networkState: Monitoring Connection: WiFi Available 2013-01-06 14:18:16.225 erres2[777:1af03] erres2_appDelegate: refreshAppData 2013-01-06 14:18:16.225 erres2[777:1ee07] erres2_appDelegate: initAudioPlayer in background thread 2013-01-06 14:18:16.225 erres2[777:1f303] erres2_appDelegate: loadSoundEffects SOUNDS NOT LOADING. SEE appDelegete.m, line 846 2013-01-06 14:18:16.225 erres2[777:1af03] BT_fileManager: File does exist in cached directory: cachedAppConfig.txt 2013-01-06 14:18:16.227 erres2[777:1af03] BT_fileManager: readTextFileFromCacheWithEncoding: cachedAppConfig.txt encoding: -1 2013-01-06 14:18:16.228 erres2[777:1af03] erres2_appDelegate: Parsing configuration data from application cache. 2013-01-06 14:18:16.228 erres2[777:1af03] BT_application: validateApplicationData 2013-01-06 14:18:16.226 erres2[777:1ee07] BT_audioPlayer: INIT (preparing it for possible background audio) 2013-01-06 14:18:16.241 erres2[777:1af03] BT_application: The application data appears to be valid. 2013-01-06 14:18:16.244 erres2[777:1af03] erres2_appDelegate: configureEnvironmentUsingAppData 2013-01-06 14:18:16.245 erres2[777:1af03] BT_application: parseJSONData: parsing application data 2013-01-06 14:18:16.301 erres2[777:1af03] BT_application: parsing themes, count: 1 2013-01-06 14:18:16.303 erres2[777:1af03] BT_application: parsing tabs, count: 0 2013-01-06 14:18:16.303 erres2[777:1af03] BT_application: parsing screens, count: 237 2013-01-06 14:18:16.306 erres2[777:1af03] BT_application: buildInterface app interface 2013-01-06 14:18:16.309 erres2[777:1af03] BT_application: building a single navigation controller app 2013-01-06 14:18:16.310 erres2[777:1af03] BT_viewControllerManager: initViewControllerForScreen nickname: "XIB Home" itemId: E627D3CFB7BBDB082EFD6F3 type: Xib_home 2013-01-06 14:18:16.311 erres2[777:1af03] Xib_home: INIT 2013-01-06 14:18:16.328 erres2[777:1af03] Xib_home: viewDidLoad 2013-01-06 14:18:16.329 erres2[777:1af03] BT_rotatingNavController: pushViewController 2013-01-06 14:18:16.330 erres2[777:1af03] BT_rotatingNavController: pushViewController for screen: E627D3CFB7BBDB082EFD6F3 2013-01-06 14:18:16.332 erres2[777:1af03] BT_viewUtilities: setting nav-bar background for "XIB Home" color: #000000 2013-01-06 14:18:16.333 erres2[777:1af03] BT_application: initialzing a splash screen with itemId: 5543A6917AC0739A82DAA77 2013-01-06 14:18:16.334 erres2[777:1af03] BT_application: getScreenDataByItemId 5543A6917AC0739A82DAA77 2013-01-06 14:18:16.334 erres2[777:1af03] BT_application: screenType is BT_screen_splash for screen with nickname: "Splash" and itemId: 5543A6917AC0739A82DAA77 2013-01-06 14:18:16.334 erres2[777:1af03] BT_viewControllerManager: initViewControllerForScreen nickname: "Splash" itemId: 5543A6917AC0739A82DAA77 type: BT_screen_splash 2013-01-06 14:18:16.334 erres2[777:1af03] BT_screen_splash: INIT 2013-01-06 14:18:16.334 erres2[777:1af03] BT_screen_splash: viewDidLoad 2013-01-06 14:18:16.335 erres2[777:1af03] BT_fileManager: File does exist in Xcode bundle: splash.png 2013-01-06 14:18:16.336 erres2[777:1af03] BT_screen_splash: Image for splash-screen exists in bundle - not downloading. 2013-01-06 14:18:16.337 erres2[777:1af03] BT_screen_splash: setImage 2013-01-06 14:18:16.337 erres2[777:1af03] BT_application: App has "Start Location Updates" set to "No". App is NOT starting the location monitor. 2013-01-06 14:18:16.338 erres2[777:1af03] BT_background_view: INIT 2013-01-06 14:18:16.338 erres2[777:1af03] BT_fileManager: File does exist in Xcode bundle: background.png 2013-01-06 14:18:16.339 erres2[777:1af03] BT_background_view: Image for background view exists in Xcode bundle - not downloading. 2013-01-06 14:18:16.339 erres2[777:1af03] BT_background_view: setImage 2013-01-06 14:18:16.339 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:18:16.340 erres2[777:1af03] BT_screen_splash: viewWillAppear 2013-01-06 14:18:16.341 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:18:16.341 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:18:16.341 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:18:16.342 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:18:16.344 erres2[777:1af03] Xib_home: viewWillAppear 2013-01-06 14:18:16.345 erres2[777:1af03] BT_viewUtilities: configureBackgroundAndNavBar for screen with nickname: "XIB Home" and itemId: E627D3CFB7BBDB082EFD6F3 and type: Xib_home 2013-01-06 14:18:16.351 erres2[777:1af03] BT_fileManager: File does exist in Xcode bundle: background.png 2013-01-06 14:18:16.351 erres2[777:1af03] BT_background_view: Image for background view exists in Xcode bundle - not downloading. 2013-01-06 14:18:16.352 erres2[777:1af03] BT_background_view: setImage 2013-01-06 14:18:16.352 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:18:16.355 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:18:16.356 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:18:16.356 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:18:16.357 erres2[777:1af03] erres2_appDelegate: hideProgress 2013-01-06 14:18:16.358 erres2[777:1af03] erres2_appDelegate: applicationDidBecomeActive 2013-01-06 14:18:16.358 erres2[777:1af03] erres2_appDelegate: reportToCloud 2013-01-06 14:18:16.358 erres2[777:1af03] erres2_appDelegate: not reporting to cloud, no reportToCloudURL 2013-01-06 14:18:16.360 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:18:16.657 erres2[777:1af03] erres2_appDelegate: reportToCloud 2013-01-06 14:18:16.675 erres2[777:1af03] erres2_appDelegate: not reporting to cloud, no reportToCloudURL 2013-01-06 14:18:17.338 erres2[777:1af03] BT_screen_splash: animating splash screen 2013-01-06 14:18:41.309 erres2[777:1af03] BT_networkState: Monitoring Connection: WiFi Not Available -------------------------------------------------------- It seems to find the plugin fine. And even if it didn't, once I refreshed the app you think it would stay but no, it disappears again. Does anyone have any idea what I did? I've tried messing around in xcode and can't figure it out. Getting ready to just delete xcode and reinstall... josh
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
01/06/13 12:29 PM (13 years ago)
And if it helps, this is what the console shows when I "refresh" and the plugin loads: ----------------------------------------- 2013-01-06 14:23:18.012 erres2[777:1af03] erres2_appDelegate: downloadAppData 2013-01-06 14:23:18.012 erres2[777:1af03] erres2_appDelegate: showProgress 2013-01-06 14:23:18.013 erres2[777:1af03] BT_strings: mergeBTVariablesInString (after merge): <a href="http://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA23796690D4B4BFAA0E7BAFE&apiKey=xxxxxxxx8&apiSecret=xxxxxxxxxx" target="_blank" rel="nofollow">http://www.buzztouch.com/api/app/?command=getAppData&appGuid=xxxxxxxxxx&apiKey=xxxxxxxxxxx&apiSecret=xxxxxxxxxxxx</a> 2013-01-06 14:23:18.013 erres2[777:1af03] BT_downloader: INIT 2013-01-06 14:23:18.014 erres2[777:1af03] BT_downloader: downloadFile: <a href="http://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA23796690D4B4BFAA0E7BAFE&apiKey=xxxxxxxxxxxx&apiSecret=xxxxxxxxxxxxx" target="_blank" rel="nofollow">http://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA23796690D4B4BFAA0E7BAFE&apiKey=xxxxxxxxxxx&apiSecret=xxxxxxxxxxxx</a> 2013-01-06 14:23:18.014 erres2[777:1af03] erres2_appDelegate: downloadFileStarted: starting download... 2013-01-06 14:23:18.674 erres2[777:1af03] BT_fileManager: saveTextFileToCacheWithEncoding: cachedAppConfig.txt encodingFlag: -1 2013-01-06 14:23:18.677 erres2[777:1af03] erres2_appDelegate: downloadFileCompleted 2013-01-06 14:23:18.677 erres2[777:1af03] erres2_appDelegate: hideProgress 2013-01-06 14:23:18.680 erres2[777:1af03] BT_fileManager: saveTextFileToCacheWithEncoding: cachedAppConfig.txt encodingFlag: -1 2013-01-06 14:23:18.683 erres2[777:1af03] BT_application: validateApplicationData 2013-01-06 14:23:18.695 erres2[777:1af03] BT_application: The application data appears to be valid. 2013-01-06 14:23:18.696 erres2[777:1af03] BT_fileManager: deleteAllLocalData 2013-01-06 14:23:18.696 erres2[777:1af03] BT_fileManager: NOT deleting (persisted): cachedAppConfig.txt 2013-01-06 14:23:18.696 erres2[777:1af03] BT_fileManager: deleting: com.erres.com 2013-01-06 14:23:18.697 erres2[777:1af03] erres2_appDelegate: configureEnvironmentUsingAppData 2013-01-06 14:23:18.697 erres2[777:1af03] BT_audioPlayer: stopAudio 2013-01-06 14:23:18.698 erres2[777:1af03] BT_application: parseJSONData: parsing application data 2013-01-06 14:23:18.710 erres2[777:1af03] BT_application: parsing themes, count: 1 2013-01-06 14:23:18.710 erres2[777:1af03] BT_application: parsing tabs, count: 0 2013-01-06 14:23:18.710 erres2[777:1af03] BT_application: parsing screens, count: 237 2013-01-06 14:23:18.711 erres2[777:1af03] BT_application: buildInterface app interface 2013-01-06 14:23:18.711 erres2[777:1af03] BT_application: building a single navigation controller app 2013-01-06 14:23:18.712 erres2[777:1af03] BT_viewControllerManager: initViewControllerForScreen nickname: "XIB Home" itemId: E627D3CFB7BBDB082EFD6F3 type: Xib_home 2013-01-06 14:23:18.712 erres2[777:1af03] Xib_home: INIT 2013-01-06 14:23:18.718 erres2[777:1af03] Xib_home: viewDidLoad 2013-01-06 14:23:18.718 erres2[777:1af03] BT_rotatingNavController: pushViewController 2013-01-06 14:23:18.718 erres2[777:1af03] BT_rotatingNavController: pushViewController for screen: E627D3CFB7BBDB082EFD6F3 2013-01-06 14:23:18.719 erres2[777:1af03] BT_viewUtilities: setting nav-bar background for "XIB Home" color: #000000 2013-01-06 14:23:18.719 erres2[777:1af03] BT_application: initialzing a splash screen with itemId: 5543A6917AC0739A82DAA77 2013-01-06 14:23:18.719 erres2[777:1af03] BT_application: getScreenDataByItemId 5543A6917AC0739A82DAA77 2013-01-06 14:23:18.720 erres2[777:1af03] BT_application: screenType is BT_screen_splash for screen with nickname: "Splash" and itemId: 5543A6917AC0739A82DAA77 2013-01-06 14:23:18.720 erres2[777:1af03] BT_viewControllerManager: initViewControllerForScreen nickname: "Splash" itemId: 5543A6917AC0739A82DAA77 type: BT_screen_splash 2013-01-06 14:23:18.720 erres2[777:1af03] BT_screen_splash: INIT 2013-01-06 14:23:18.720 erres2[777:1af03] BT_screen_splash: viewDidLoad 2013-01-06 14:23:18.721 erres2[777:1af03] BT_fileManager: File does exist in Xcode bundle: splash.png 2013-01-06 14:23:18.721 erres2[777:1af03] BT_screen_splash: Image for splash-screen exists in bundle - not downloading. 2013-01-06 14:23:18.721 erres2[777:1af03] BT_screen_splash: setImage 2013-01-06 14:23:18.722 erres2[777:1af03] BT_application: App has "Start Location Updates" set to "No". App is NOT starting the location monitor. 2013-01-06 14:23:18.722 erres2[777:1af03] BT_background_view: INIT 2013-01-06 14:23:18.722 erres2[777:1af03] BT_fileManager: File does exist in Xcode bundle: background.png 2013-01-06 14:23:18.722 erres2[777:1af03] BT_background_view: Image for background view exists in Xcode bundle - not downloading. 2013-01-06 14:23:18.722 erres2[777:1af03] BT_background_view: setImage 2013-01-06 14:23:18.723 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:23:18.723 erres2[777:1af03] BT_screen_splash: viewWillAppear 2013-01-06 14:23:18.724 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:23:18.724 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:23:18.724 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:23:18.724 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:23:18.725 erres2[777:1af03] Xib_home: viewWillAppear 2013-01-06 14:23:18.725 erres2[777:1af03] BT_viewUtilities: configureBackgroundAndNavBar for screen with nickname: "XIB Home" and itemId: E627D3CFB7BBDB082EFD6F3 and type: Xib_home 2013-01-06 14:23:18.728 erres2[777:1af03] BT_fileManager: File does exist in Xcode bundle: background.png 2013-01-06 14:23:18.728 erres2[777:1af03] BT_background_view: Image for background view exists in Xcode bundle - not downloading. 2013-01-06 14:23:18.728 erres2[777:1af03] BT_background_view: setImage 2013-01-06 14:23:18.728 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:23:18.730 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:23:18.749 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:23:18.750 erres2[777:1af03] erres2_appDelegate: supportedInterfaceOrientationsForWindow 2013-01-06 14:23:18.750 erres2[777:1af03] erres2_appDelegate: hideProgress 2013-01-06 14:23:19.051 erres2[777:1af03] erres2_appDelegate: reportToCloud 2013-01-06 14:23:19.051 erres2[777:1af03] erres2_appDelegate: not reporting to cloud, no reportToCloudURL 2013-01-06 14:23:19.722 erres2[777:1af03] BT_screen_splash: animating splash screen ------------------------------------------------
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
01/06/13 01:26 PM (13 years ago)
Deleting and reinstalling xcode didn't fix anything. argh...
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/06/13 01:30 PM (13 years ago)
Hey @mutzy, You installed a splash screen since last build? Did you change the Global to Splash screen? LA
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
01/06/13 01:32 PM (13 years ago)
No, the splash screen has been there for awhile, haven't changed anything with that. And actually the splash screen still works okay, but when it fades away the home screen plugin doesn't appear until I refresh. At that point the splash screen loads again but then my home screen appears. Doesn't make any sense but it keeps happening.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/06/13 01:37 PM (13 years ago)
A few questions: Your splash screen an image, video, or animated image? What happens if you take away your splash screen, then does home menu come up? LA
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/06/13 02:32 PM (13 years ago)
Just throwing out some ideas here... Does more than one screen have the same nickname? Have you deleted/rebuilt the 'problem' screen? Do you have entries in both 'tabbed' and 'non tabbed' layouts? Can you create a new blank screen and set it as your 'home' screen for a test? Any change? If your test screen comes up fine, and your 'desired home' screen isn't, then of course, it points to something on your home screen. You could either delete and rebuild it, or inspect the JSON data to ensure it's got the right data in the right format... Just trying to jiggle something loose... Cheers! -- Smug
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
01/06/13 03:28 PM (13 years ago)
If I delete the splash screen the same thing happens. If I change my home screen to a different screen it does seem to work but another odd thing I've realized is that even if I take my current config.txt data from BT and paste it into my app when I go to run on my iPhone or the simulator it prompts me to refresh. It looks like it's not reading the stored config.txt for some reason.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
01/06/13 03:29 PM (13 years ago)
And no, I don't have both tabbed and non-tabbed layouts, just non-tabbed. I don't think it's a problem with the plugin since when I refresh the app it loads fine.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
01/06/13 03:41 PM (13 years ago)
This is what it says in my console: 2013-01-06 17:38:31.427 erres2[7804:1af03] BT_fileManager: File does exist in cached directory: cachedAppConfig.txt 2013-01-06 17:38:31.428 erres2[7804:1af03] BT_fileManager: readTextFileFromCacheWithEncoding: cachedAppConfig.txt encoding: -1 2013-01-06 17:38:31.431 erres2[7804:1af03] BT_fileManager: File does exist in Xcode bundle: BT_config.txt 2013-01-06 17:38:31.434 erres2[7804:1af03] BT_fileManager: readTextFileFromBundleWithEncoding: BT_config.txt encoding: -1 2013-01-06 17:38:31.445 erres2[7804:1af03] erres2_appDelegate: Using configuration data from application cache. Looks like it's ignoring the the config.txt in my project and using cached data but I can't figure out how to change it. not sure why it started doing that in the first place!
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
01/06/13 04:56 PM (13 years ago)
Jumping in late, but did you try deleting the app from your device and simulator?
 
flyin ryan
I hate code!
Profile
Posts: 17
Reg: Jan 05, 2012
arlington
2,870
like
01/06/13 07:38 PM (13 years ago)
The same thing happened to me and it was a nightmare but i had it uploaded to the store and it came up with the test graphics i used when you downloaded it but when you hit the refresh it worked fine. I cant remember all i did but i ended up deleting the project in xcode and uploading the new source code to a new project name and submitting an update. It seems to be working fine now.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
01/07/13 09:04 AM (13 years ago)
I believe I've had this problem before, and just recreated it in Xcode as a test. Not Cleaning after pasting the config.txt seems to generate the same behavior. Tim
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
01/07/13 09:14 AM (13 years ago)
Update: after deleting and reinstalling xcode, redownloading my project, deleting and reinstalling my splash screen, clearing my cache, deleting and reinstalling on my iPhone, and trying multiple other home screens I FINALLY came to the realization that the problem was with my custom xib button home screen. I have two other custom xib plugins and those both worked fine. What appears to have caused the problem is a couple days ago I was trying to figure out how to get it to rotate in landscape using a separate view in the xib file (see discussion post below): http://www.buzztouch.com/forum/thread.php?tid=61DA093905F1AE0EE3AAA6F&command=isSearching&currentPage=1&topicTitle=landscape&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= I found a solution online that seemed to work great but it was a day or two later that my app went crazy. I went back into my .m file and deleted the code I had added and now it works fine again. But now I'm back to square one trying to get it to work in landscape :( THanks everyone for the help, but as usual seems like I did it to myself. Josh
 

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.