Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 6    Views: 151

tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
05/04/13 01:47 PM (11 years ago)

The configuration data for this application is invalid

Hi guys, It seems that I am posting new threads on this forum all the time, but here, I have a genuine problem I can't get my head around. When I launch my app from Xcode to the iPhone simulator, it comes up with an error "The configuration data for this application is invalid" before opening the app. Note that this is an error pop-up on the simulator, not Xcode. I have done what I normally do, and re-downloaded the source code, quit Xcode and quit the simulator. It's my first time launching this particular app, although I have made a few screens on my control panel. Anything I can do?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/04/13 02:01 PM (11 years ago)
Copy your config data and paste it into jsonlint. It should tell you where the problem is.
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
05/04/13 03:11 PM (11 years ago)
Ok, it does seem to appear there is an issue, but I wouldn't know how to fix this. This is what the error says: Parse error on line 286: ... "itemNickname": "Imaginate Children\'s Map", ------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/04/13 03:12 PM (11 years ago)
Looks like it's a problem with your apostrophe. I'm guessing Buzztouch automatically adds in the escape character for security issues, and I'm guessing the JSON doesn't like the escape character. Try making it just "Imaginate Childrens Map" and see what happens.
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
05/04/13 04:15 PM (11 years ago)
I changed all my screen nicknames that had apostrophes in them so they didn't and the JSONlint says it is fine and valid. However, this is where it gets very weird, the simulator still says the same error, despite JSONlint saying it is valid. Something odd is going on.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/04/13 04:37 PM (11 years ago)
Make sure you copy your JSON into your BT_config.txt file in XCode. Also, try resetting content and settings just to make sure.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
05/05/13 02:02 AM (11 years ago)
I've been having this issue all week. Config file is very sensitive. My issue was paragraph breaks and I had to remove all me text from screens that had it, launched app and it starts to work, then I had input text screen at a time and test simulator. I think this does present a problem because it means you cannot add the latest/updated config file to he project, as new installs will get the message. You will probably find that you will have to let them install and hope they update on launch. Silly really.
 

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.