Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 8    Views: 94

willjj85
Aspiring developer
Profile
Posts: 93
Reg: Feb 14, 2011
ireland
3,480
02/21/13 02:33 PM (11 years ago)

The configuration data for this application is invalid

When i change the Design to Live i get this error anybody have this happen be for and i checked JSON validation tool and the file is valid Thanks Will Here is the output 2013-02-21 21:46:29.985 mmagymnetwork[60529:c07] BT_application: initializing buzztouch application 2013-02-21 21:46:29.987 mmagymnetwork[60529:c07] BT_device: INIT 2013-02-21 21:46:29.990 mmagymnetwork[60529:c07] BT_device: Unique UUID exists. 2013-02-21 21:46:29.990 mmagymnetwork[60529:c07] BT_device: This device is NOT an iPad. 2013-02-21 21:46:29.991 mmagymnetwork[60529:c07] BT_device: This device can make phone calls 2013-02-21 21:46:29.997 mmagymnetwork[60529:c07] BT_device: This device can send emails 2013-02-21 21:46:29.998 mmagymnetwork[60529:c07] BT_device: This device cannot send SMS 2013-02-21 21:46:30.002 mmagymnetwork[60529:c07] BT_device: This device can report it's location 2013-02-21 21:46:30.003 mmagymnetwork[60529:c07] BT_device: This device cannot take pictures or videos 2013-02-21 21:46:30.004 mmagymnetwork[60529:c07] BT_user: INIT 2013-02-21 21:46:30.004 mmagymnetwork[60529:c07] BT_networkState: INIT 2013-02-21 21:46:30.005 mmagymnetwork[60529:c07] BT_networkState: Monitoring Connection: WiFi Not Available 2013-02-21 21:46:30.006 mmagymnetwork[60529:c07] BT_networkState: Monitoring Connection: WiFi Available 2013-02-21 21:46:30.007 mmagymnetwork[60529:c07] BT_networkState: Monitoring Connection: WiFi Available 2013-02-21 21:46:30.010 mmagymnetwork[60529:5107] mmagymnetwork_appDelegate: initAudioPlayer in background thread 2013-02-21 21:46:30.011 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: refreshAppData 2013-02-21 21:46:30.011 mmagymnetwork[60529:5403] mmagymnetwork_appDelegate: loadSoundEffects SEE appDelegete.m, line 924 2013-02-21 21:46:30.011 mmagymnetwork[60529:5107] BT_audioPlayer: INIT (preparing it for possible background audio) 2013-02-21 21:46:30.012 mmagymnetwork[60529:c07] BT_fileManager: File does not exist in cached directory: cachedAppConfig.txt 2013-02-21 21:46:30.013 mmagymnetwork[60529:c07] BT_fileManager: File does exist in Xcode bundle: BT_config.txt 2013-02-21 21:46:30.014 mmagymnetwork[60529:c07] BT_fileManager: readTextFileFromBundleWithEncoding: BT_config.txt encoding: -1 2013-02-21 21:46:30.021 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: Using configuration data included in the project bundle. 2013-02-21 21:46:30.023 mmagymnetwork[60529:c07] BT_application: validateApplicationData 2013-02-21 21:46:30.026 mmagymnetwork[60529:c07] BT_application: ERROR parsing JSON in validateApplicationData: ( "Error Domain=org.brautaset.JSON.ErrorDomain Code=5 "Unescaped control character '0xa'" UserInfo=0xaae1d70 {NSLocalizedDescription=Unescaped control character '0xa'}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: subTitle" UserInfo=0xaae1db0 {NSUnderlyingError=0xaae1d90 "Unescaped control character '0xa'", NSLocalizedDescription=Object value expected for key: subTitle}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Expected value while parsing array" UserInfo=0xaae1e20 {NSUnderlyingError=0xaae1dd0 "Object value expected for key: subTitle", NSLocalizedDescription=Expected value while parsing array}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: childItems" UserInfo=0xaae1e60 {NSUnderlyingError=0xaae1e40 "Expected value while parsing array", NSLocalizedDescription=Object value expected for key: childItems}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Expected value while parsing array" UserInfo=0xaae1ee0 {NSUnderlyingError=0xaae1e80 "Object value expected for key: childItems", NSLocalizedDescription=Expected value while parsing array}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: BT_screens" UserInfo=0xaae1f40 {NSUnderlyingError=0xaae1f00 "Expected value while parsing array", NSLocalizedDescription=Object value expected for key: BT_screens}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Expected value while parsing array" UserInfo=0xaae1fc0 {NSUnderlyingError=0xaae1fa0 "Object value expected for key: BT_screens", NSLocalizedDescription=Expected value while parsing array}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: BT_items" UserInfo=0xaae2000 {NSUnderlyingError=0xaae1fe0 "Expected value while parsing array", NSLocalizedDescription=Object value expected for key: BT_items}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: BT_appConfig" UserInfo=0xaae2080 {NSUnderlyingError=0xaae2060 "Object value expected for key: BT_items", NSLocalizedDescription=Object value expected for key: BT_appConfig}" ) 2013-02-21 21:46:30.027 mmagymnetwork[60529:c07] BT_application: validateApplicationData: ERROR: There was a problem parsing some configuration data. Please make sure that it is well-formed. 2013-02-21 21:46:30.028 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: error parsing application data. 2013-02-21 21:46:30.028 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: hideProgress 2013-02-21 21:46:30.084 mmagymnetwork[60529:c07] BT_fileManager: deleteFile: cachedAppConfig.txt 2013-02-21 21:46:30.084 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: applicationDidBecomeActive 2013-02-21 21:46:30.085 mmagymnetwork[60529:c07] [RevMob] Initializing Fullscreen. 2013-02-21 21:46:30.091 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: reportToCloud 2013-02-21 21:46:30.091 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: not reporting to cloud, no dataURL or reportToCloudURL 2013-02-21 21:46:30.099 mmagymnetwork[60529:c07] Application windows are expected to have a root view controller at the end of application launch 2013-02-21 21:46:30.106 mmagymnetwork[60529:c07] BT_networkState: Monitoring Connection: WiFi Not Available 2013-02-21 21:46:31.012 mmagymnetwork[60529:c07] [RevMob] Ad received: (200). 2013-02-21 21:46:31.018 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: supportedInterfaceOrientationsForWindow 2013-02-21 21:46:31.019 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: supportedInterfaceOrientationsForWindow 2013-02-21 21:46:31.020 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: supportedInterfaceOrientationsForWindow 2013-02-21 21:46:31.021 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: supportedInterfaceOrientationsForWindow 2013-02-21 21:46:31.022 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: supportedInterfaceOrientationsForWindow 2013-02-21 21:46:31.022 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: supportedInterfaceOrientationsForWindow 2013-02-21 21:46:31.023 mmagymnetwork[60529:c07] mmagymnetwork_appDelegate: supportedInterfaceOrientationsForWindow
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/21/13 03:14 PM (11 years ago)
I'd try re-copying the config.txt file into Xcode > clean > run. Looks like there's something funky in the config.txt Tim
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/21/13 03:16 PM (11 years ago)
Oh, and be sure you hit "Publish Changes" before you copy the "Live Mode Data"
 
willjj85
Aspiring developer
Profile
Posts: 93
Reg: Feb 14, 2011
ireland
3,480
like
02/21/13 03:34 PM (11 years ago)
Re-copyed the config.txt file into Xcode > clean > run still not working
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/21/13 03:50 PM (11 years ago)
Just to be sure, copy the config.txt from Xcode, not from your control panel and paste it into http://jsonlint.com still looks like something wrong with that file
 
willjj85
Aspiring developer
Profile
Posts: 93
Reg: Feb 14, 2011
ireland
3,480
like
02/21/13 03:56 PM (11 years ago)
config.txt from Xcode is Valid JSON i dont no what to do the app will not work in live or Design mode any more ideas anyone Thanks Will
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/21/13 04:05 PM (11 years ago)
Reboot the machine. Sounds dumb but...
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/21/13 04:34 PM (11 years ago)
Try another project as well... isolate it to the project, not the environment. Do you have a matching Android project? Cheers! -- Smug
 
willjj85
Aspiring developer
Profile
Posts: 93
Reg: Feb 14, 2011
ireland
3,480
like
02/22/13 07:27 AM (11 years ago)
I tried another project and that is the same so it has to be the environment anyone know how to reset xcode back to default Thanks Will
 

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.