Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 3    Views: 90

Fingers Crossed
Veteran developer
Profile
Posts: 234
Reg: Jan 16, 2012
Simcoe, ON
6,390
04/24/13 06:41 AM (11 years ago)

New app version released, old app displaying for 5.1, new for 6.0

I just released a new version of my app. When you run it under iOS 6+, it works just fine. If it was installed before and I run it (or run it in the simulator) I get a VERY old version that won't refresh, nor give me a screen to do so! I wonder if it's anything to do with it finding a 'cachedAppConfig.txt' and using it, but not sure how to remove it. Basically then it looks for old screens that no longer exist. Any ideas?
 
Fingers Crossed
Veteran developer
Profile
Posts: 234
Reg: Jan 16, 2012
Simcoe, ON
6,390
like
04/24/13 07:03 AM (11 years ago)
Here's the output from the one that works... Again, it's exactly the same app, running under 6.1 simulator it's fine, 5.1 it's not. 2013-04-24 09:53:08.229 cogv3[26739:c07] cogv3_appDelegate: Using the default BT_config.txt. 2013-04-24 09:53:08.231 cogv3[26739:c07] BT_application: initializing buzztouch application 2013-04-24 09:53:08.232 cogv3[26739:c07] BT_device: INIT 2013-04-24 09:53:08.232 cogv3[26739:c07] BT_device: Unique UUID exists. 2013-04-24 09:53:08.233 cogv3[26739:c07] BT_device: This device is NOT an iPad. 2013-04-24 09:53:08.234 cogv3[26739:c07] BT_device: This device can make phone calls 2013-04-24 09:53:08.238 cogv3[26739:c07] BT_device: This device can send emails 2013-04-24 09:53:08.239 cogv3[26739:c07] BT_device: This device can send SMS 2013-04-24 09:53:08.240 cogv3[26739:c07] BT_device: This device can report it's location 2013-04-24 09:53:08.241 cogv3[26739:c07] BT_device: This device cannot take pictures or videos 2013-04-24 09:53:08.241 cogv3[26739:c07] BT_user: INIT 2013-04-24 09:53:08.242 cogv3[26739:c07] BT_networkState: INIT 2013-04-24 09:53:08.245 cogv3[26739:c07] BT_networkState: Monitoring Connection: WiFi Not Available 2013-04-24 09:53:08.246 cogv3[26739:c07] BT_networkState: Monitoring Connection: WiFi Available 2013-04-24 09:53:08.246 cogv3[26739:c07] BT_networkState: Monitoring Connection: WiFi Available 2013-04-24 09:53:08.249 cogv3[26739:4207] cogv3_appDelegate: initAudioPlayer in background thread 2013-04-24 09:53:08.249 cogv3[26739:c07] cogv3_appDelegate: refreshAppData 2013-04-24 09:53:08.249 cogv3[26739:4603] cogv3_appDelegate: loadSoundEffects SEE appDelegete.m, line 924 2013-04-24 09:53:08.252 cogv3[26739:c07] BT_fileManager: File does exist in cached directory: cachedAppConfig.txt 2013-04-24 09:53:08.253 cogv3[26739:4207] BT_audioPlayer: INIT (preparing it for possible background audio) 2013-04-24 09:53:08.253 cogv3[26739:c07] BT_fileManager: readTextFileFromCacheWithEncoding: cachedAppConfig.txt encoding: -1 2013-04-24 09:53:08.255 cogv3[26739:c07] BT_fileManager: File does exist in Xcode bundle: BT_config.txt 2013-04-24 09:53:08.257 cogv3[26739:c07] BT_fileManager: readTextFileFromBundleWithEncoding: BT_config.txt encoding: -1 2013-04-24 09:53:08.264 cogv3[26739:c07] cogv3_appDelegate: Using configuration data from application cache. 2013-04-24 09:53:08.264 cogv3[26739:c07] BT_application: validateApplicationData 2013-04-24 09:53:08.269 cogv3[26739:c07] BT_application: The application data appears to be valid. 2013-04-24 09:53:08.269 cogv3[26739:c07] cogv3_appDelegate: configureEnvironmentUsingAppData 2013-04-24 09:53:08.270 cogv3[26739:c07] BT_audioPlayer: stopAudio 2013-04-24 09:53:08.271 cogv3[26739:c07] BT_application: parseJSONData: parsing application data 2013-04-24 09:53:08.276 cogv3[26739:c07] BT_application: parsing themes, count: 1 2013-04-24 09:53:08.276 cogv3[26739:c07] BT_application: parsing tabs, count: 5 2013-04-24 09:53:08.277 cogv3[26739:c07] BT_application: parsing screens, count: 51 2013-04-24 09:53:08.277 cogv3[26739:c07] BT_application: buildInterface app interface 2013-04-24 09:53:08.278 cogv3[26739:c07] BT_application: building a tabbed based navigation app 2013-04-24 09:53:08.279 cogv3[26739:c07] BT_tabBarController: view loaded 2013-04-24 09:53:08.280 cogv3[26739:c07] BT_application: getScreenDataByItemId 682ACEEA52086AC629BBB59 -----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8< Here's the output from the one that doesn't. Bad 51. version 2013-04-24 09:48:35.560 cogv3[26628:c07] cogv3_appDelegate: Using the default BT_config.txt. 2013-04-24 09:48:35.562 cogv3[26628:c07] BT_application: initializing buzztouch application 2013-04-24 09:48:35.562 cogv3[26628:c07] BT_device: INIT 2013-04-24 09:48:35.563 cogv3[26628:c07] BT_device: Unique UUID exists. 2013-04-24 09:48:35.564 cogv3[26628:c07] BT_device: This device is NOT an iPad. 2013-04-24 09:48:35.565 cogv3[26628:c07] BT_device: This device can make phone calls 2013-04-24 09:48:35.572 cogv3[26628:c07] BT_device: This device can send emails 2013-04-24 09:48:35.573 cogv3[26628:c07] BT_device: This device can send SMS 2013-04-24 09:48:35.574 cogv3[26628:c07] BT_device: This device can report it's location 2013-04-24 09:48:35.575 cogv3[26628:c07] BT_device: This device cannot take pictures or videos 2013-04-24 09:48:35.575 cogv3[26628:c07] BT_user: INIT 2013-04-24 09:48:35.576 cogv3[26628:c07] BT_networkState: INIT 2013-04-24 09:48:35.579 cogv3[26628:c07] BT_networkState: Monitoring Connection: WiFi Not Available 2013-04-24 09:48:35.579 cogv3[26628:c07] BT_networkState: Monitoring Connection: WiFi Available 2013-04-24 09:48:35.580 cogv3[26628:c07] BT_networkState: Monitoring Connection: WiFi Available 2013-04-24 09:48:35.582 cogv3[26628:c07] cogv3_appDelegate: refreshAppData 2013-04-24 09:48:35.582 cogv3[26628:3b07] cogv3_appDelegate: initAudioPlayer in background thread 2013-04-24 09:48:35.582 cogv3[26628:4203] cogv3_appDelegate: loadSoundEffects SEE appDelegete.m, line 924 2013-04-24 09:48:35.585 cogv3[26628:c07] BT_fileManager: File does exist in cached directory: cachedAppConfig.txt 2013-04-24 09:48:35.586 cogv3[26628:3b07] BT_audioPlayer: INIT (preparing it for possible background audio) 2013-04-24 09:48:35.586 cogv3[26628:c07] BT_fileManager: readTextFileFromCacheWithEncoding: cachedAppConfig.txt encoding: -1 2013-04-24 09:48:35.589 cogv3[26628:c07] BT_fileManager: File does exist in Xcode bundle: BT_config.txt 2013-04-24 09:48:35.589 cogv3[26628:c07] BT_fileManager: readTextFileFromBundleWithEncoding: BT_config.txt encoding: -1 2013-04-24 09:48:35.591 cogv3[26628:c07] cogv3_appDelegate: Using configuration data from application cache. 2013-04-24 09:48:35.592 cogv3[26628:c07] BT_application: validateApplicationData 2013-04-24 09:48:35.602 cogv3[26628:c07] BT_application: The application data appears to be valid. 2013-04-24 09:48:35.603 cogv3[26628:c07] cogv3_appDelegate: configureEnvironmentUsingAppData 2013-04-24 09:48:35.603 cogv3[26628:c07] BT_audioPlayer: stopAudio 2013-04-24 09:48:35.604 cogv3[26628:c07] BT_application: parseJSONData: parsing application data 2013-04-24 09:48:35.612 cogv3[26628:c07] BT_application: parsing themes, count: 1 2013-04-24 09:48:35.612 cogv3[26628:c07] BT_application: parsing tabs, count: 4 2013-04-24 09:48:35.612 cogv3[26628:c07] BT_application: parsing screens, count: 92 2013-04-24 09:48:35.613 cogv3[26628:c07] BT_application: buildInterface app interface 2013-04-24 09:48:35.613 cogv3[26628:c07] BT_application: building a tabbed based navigation app 2013-04-24 09:48:35.615 cogv3[26628:c07] BT_tabBarController: view loaded 2013-04-24 09:48:35.616 cogv3[26628:c07] BT_application: getScreenDataByItemId B9E29E20119D8F01657A87A
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
04/24/13 07:18 AM (11 years ago)
try resetting the simulator, and or delete derived sdata and try again. Sometimes the simulator holds onto old code
 
Fingers Crossed
Veteran developer
Profile
Posts: 234
Reg: Jan 16, 2012
Simcoe, ON
6,390
like
04/24/13 07:24 AM (11 years ago)
I know that if people uninstall it, and reinstall it, it's fine. It happens on real devices once they download the update. Which points to XCode I figure. Where can I find the derived sdata?
 

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.