Discussion Forums  >  Grunts, Groans, Complaints

Replies: 2    Views: 92

XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
06/19/13 07:38 PM (10 years ago)

Configuration Data is Invalid

When I just opened up my app in Xcode, I ran my app in the simulator, and it gave an error on the simulator as soon as the app launched, and on the device, it says The Configuration Data For This Application is invalid. Then I went on the Xcode 5 Dev Preview, and tried to run the app on my iPhone 5 on iOS 7, and it also gave the same error and the console is as follows: --------------- 2013-06-19 22:31:46.409 Beat Boxing[1284:60b] soclosetotoast_appDelegate: Using the default BT_config.txt. 2013-06-19 22:31:46.414 Beat Boxing[1284:60b] BT_application: initializing buzztouch application 2013-06-19 22:31:46.415 Beat Boxing[1284:60b] BT_device: INIT 2013-06-19 22:31:46.416 Beat Boxing[1284:60b] BT_device: Unique UUID does not exist, creating. 2013-06-19 22:31:46.420 Beat Boxing[1284:60b] BT_device: This device is NOT an iPad. 2013-06-19 22:31:46.421 Beat Boxing[1284:60b] BT_device: This device can make phone calls 2013-06-19 22:31:46.429 Beat Boxing[1284:60b] BT_device: This device can send emails 2013-06-19 22:31:46.437 Beat Boxing[1284:60b] BT_device: This device can send SMS 2013-06-19 22:31:46.439 Beat Boxing[1284:60b] BT_device: This device can report it's location 2013-06-19 22:31:46.497 Beat Boxing[1284:60b] BT_device: This device can take still pictures 2013-06-19 22:31:46.498 Beat Boxing[1284:60b] BT_device: This device can take videos 2013-06-19 22:31:46.500 Beat Boxing[1284:60b] BT_user: INIT 2013-06-19 22:31:46.501 Beat Boxing[1284:60b] BT_networkState: INIT 2013-06-19 22:31:46.566 Beat Boxing[1284:60b] BT_networkState: Monitoring Connection: WiFi Not Available 2013-06-19 22:31:46.569 Beat Boxing[1284:60b] BT_networkState: Monitoring Connection: WiFi Available 2013-06-19 22:31:46.573 Beat Boxing[1284:60b] BT_networkState: Monitoring Connection: WiFi Available 2013-06-19 22:31:46.578 Beat Boxing[1284:4427] soclosetotoast_appDelegate: initAudioPlayer in background thread 2013-06-19 22:31:46.579 Beat Boxing[1284:60b] soclosetotoast_appDelegate: refreshAppData 2013-06-19 22:31:46.578 Beat Boxing[1284:5003] soclosetotoast_appDelegate: loadSoundEffects SEE appDelegete.m, line 924 2013-06-19 22:31:46.582 Beat Boxing[1284:60b] soclosetotoast_appDelegate: Using the default BT_config.txt. 2013-06-19 22:31:46.584 Beat Boxing[1284:60b] BT_fileManager: File does not exist in cached directory: cachedAppConfig.txt 2013-06-19 22:31:46.582 Beat Boxing[1284:4427] BT_audioPlayer: INIT (preparing it for possible background audio) 2013-06-19 22:31:46.585 Beat Boxing[1284:60b] BT_fileManager: File does exist in Xcode bundle: BT_config.txt 2013-06-19 22:31:46.586 Beat Boxing[1284:60b] BT_fileManager: readTextFileFromBundleWithEncoding: BT_config.txt encoding: -1 2013-06-19 22:31:46.588 Beat Boxing[1284:60b] soclosetotoast_appDelegate: Using configuration data included in the project bundle. 2013-06-19 22:31:46.592 Beat Boxing[1284:60b] BT_application: validateApplicationData 2013-06-19 22:31:46.597 Beat Boxing[1284:60b] BT_application: ERROR parsing JSON in validateApplicationData: ( "Error Domain=org.brautaset.JSON.ErrorDomain Code=8 "Illegal escape sequence '0x27'" UserInfo=0x14682880 {NSLocalizedDescription=Illegal escape sequence '0x27'}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: itemNickname" UserInfo=0x146828c0 {NSUnderlyingError=0x146828a0 "Illegal escape sequence '0x27'", NSLocalizedDescription=Object value expected for key: itemNickname}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Expected value while parsing array" UserInfo=0x14682930 {NSUnderlyingError=0x146828e0 "Object value expected for key: itemNickname", NSLocalizedDescription=Expected value while parsing array}", "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object value expected for key: BT_screens" UserInfo=0x14682970 {NSUnderlyingError=0x14682950 "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=0x146829f0 {NSUnderlyingError=0x14682990 "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=0x14682a50 {NSUnderlyingError=0x14682a10 "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=0x14682ad0 {NSUnderlyingError=0x14682ab0 "Object value expected for key: BT_items", NSLocalizedDescription=Object value expected for key: BT_appConfig}" ) 2013-06-19 22:31:46.604 Beat Boxing[1284:60b] BT_application: validateApplicationData: ERROR: There was a problem parsing some configuration data. Please make sure that it is well-formed. 2013-06-19 22:31:46.605 Beat Boxing[1284:60b] soclosetotoast_appDelegate: error parsing application data. 2013-06-19 22:31:46.606 Beat Boxing[1284:60b] soclosetotoast_appDelegate: hideProgress 2013-06-19 22:31:46.620 Beat Boxing[1284:5003] BT_fileManager: File does exist in Xcode bundle: BassDrum.mp3 2013-06-19 22:31:46.621 Beat Boxing[1284:60b] soclosetotoast_appDelegate: supportedInterfaceOrientationsForWindow 2013-06-19 22:31:46.623 Beat Boxing[1284:60b] soclosetotoast_appDelegate: supportedInterfaceOrientationsForWindow 2013-06-19 22:31:46.631 Beat Boxing[1284:60b] soclosetotoast_appDelegate: supportedInterfaceOrientationsForWindow 2013-06-19 22:31:46.632 Beat Boxing[1284:60b] soclosetotoast_appDelegate: supportedInterfaceOrientationsForWindow 2013-06-19 22:31:46.634 Beat Boxing[1284:60b] soclosetotoast_appDelegate: supportedInterfaceOrientationsForWindow 2013-06-19 22:31:46.634 Beat Boxing[1284:60b] soclosetotoast_appDelegate: supportedInterfaceOrientationsForWindow 2013-06-19 22:31:46.636 Beat Boxing[1284:60b] soclosetotoast_appDelegate: supportedInterfaceOrientationsForWindow 2013-06-19 22:31:46.730 Beat Boxing[1284:60b] soclosetotoast_appDelegate: supportedInterfaceOrientationsForWindow 2013-06-19 22:31:46.732 Beat Boxing[1284:60b] soclosetotoast_appDelegate: supportedInterfaceOrientationsForWindow 2013-06-19 22:31:46.743 Beat Boxing[1284:5003] BT_fileManager: File does exist in Xcode bundle: Crash.mp3 2013-06-19 22:31:46.987 Beat Boxing[1284:5003] BT_fileManager: File does exist in Xcode bundle: FloorTom.mp3 2013-06-19 22:31:47.007 Beat Boxing[1284:5003] BT_fileManager: File does exist in Xcode bundle: HiHat.mp3 2013-06-19 22:31:47.029 Beat Boxing[1284:5003] BT_fileManager: File does exist in Xcode bundle: Scratch.mp3 2013-06-19 22:31:47.048 Beat Boxing[1284:60b] BT_fileManager: deleteFile: cachedAppConfig.txt 2013-06-19 22:31:47.050 Beat Boxing[1284:60b] soclosetotoast_appDelegate: applicationDidBecomeActive 2013-06-19 22:31:47.053 Beat Boxing[1284:5003] BT_fileManager: File does exist in Xcode bundle: SnareDrum.mp3 2013-06-19 22:31:47.061 Beat Boxing[1284:60b] soclosetotoast_appDelegate: reportToCloud 2013-06-19 22:31:47.063 Beat Boxing[1284:60b] soclosetotoast_appDelegate: not reporting to cloud, no dataURL or reportToCloudURL 2013-06-19 22:31:47.283 Beat Boxing[1284:60b] Application windows are expected to have a root view controller at the end of application launch 2013-06-19 22:31:47.284 Beat Boxing[1284:60b] soclosetotoast_appDelegate: supportedInterfaceOrientationsForWindow 2013-06-19 22:31:47.285 Beat Boxing[1284:60b] soclosetotoast_appDelegate: supportedInterfaceOrientationsForWindow 2013-06-19 22:31:47.328 Beat Boxing[1284:60b] BT_networkState: Monitoring Connection: WiFi Not Available --------------- So, I tried to go to my Core Properties, and delete the Configuration Data URL & Cloud URL so it is blank. I also tried to load new configuration data, but no luck. This all just suddenly happened, my app was working fine before, and now when I wanted to test something out, it just gave an error. If anyone can shed some light on this, that would be greatly appreciated, Thank you, Raoul EDIT: Apparently it started to work in Xcode 4, but in Xcode 5, when I run on my iPhone 5, iOS 7, it immediately crashes.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/19/13 09:37 PM (10 years ago)
This could very easily be a strange character in a screen title or filename or something like that. Try taking your BT_Config.txt file and running it through jsonlint.com to see what it says. Let us know if you still can't find the problem. Mark
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
06/20/13 08:27 AM (10 years ago)
Hello Mark, So apparently it was an illegal character, "/" that was causing this. I deleted the entire button with it, and the app started to work fine again, however it did not work in the new Xcode 5 Dev Preview, it immediately crashes. Thanks, Raoul
 

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.