Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 34    Views: 133

benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
04/18/12 02:40 AM (13 years ago)

sorry for the cliche, but this is pretty important!

I know this has been asked a million different ways by a million different people but I REALLY need some help! I'm supposed to be taking my App (which I haven't been able to finish because I've been trying to fix this problem) into a school to test out with some kids tomorrow. It was working perfectly yesterday (its the Denglish App (I know I have loads of similarly named ones, actually, how do you delete apps you don't want any more?!)), but now I am getting either 'The configuration data for this application is invalid' or its bringing up a blank screen or its saying that the data can't be parsed. I have tried every fix on every forum response I can find. I need some of your mad Buzztouch skills! Save me Evangelists!
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
04/18/12 06:59 AM (13 years ago)
Do you have a quiz in the app that might have some single quotes, that will sometimes lead to a invalid config data or parsing error.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/18/12 07:18 AM (13 years ago)
Yep, good call @Stobe. Perhaps you pasted in some content from Word or something like that? Doing so invariably introduces a formatting error which would cause these problems. If you can get me your config file, I can take a look and see what I can possibly find? MrkFleming at gmail dot com Mark
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 09:50 AM (13 years ago)
I've had both invalid config and parsing errors, and yes, there was a quiz, but I've removed it (from the app, not from Buzztouch). I have emailed Mark the source code. Hoping for a fix or I'll have to start again :(
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
04/18/12 10:06 AM (13 years ago)
One easy way to trouble shoot the config.txt is to Cut the suspect code out of the file (in xCode or Eclipse) and recompile (hopefully successfully). Then paste parts of it back in until you get the error again. Then you can narrow down what's causing it.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/18/12 10:12 AM (13 years ago)
Ben has sent me his code, and we identified a trouble spot according to the JSON validator. Working through it now! Mark
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 10:48 AM (13 years ago)
I've had both invalid config and parsing errors, and yes, there was a quiz, but I've removed it (from the app, not from Buzztouch). I have emailed Mark the source code. Hoping for a fix or I'll have to start again :(
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 10:51 AM (13 years ago)
That seems to be working! Many thanks Mark, I'll let you know if I have any further problems :D
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/18/12 10:55 AM (13 years ago)
Sweet! Rock on! Mark
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 11:21 AM (13 years ago)
Er... Its refusing to run on my iPad or iPhone at all, and on the emulator its running as a really old version of the App. I have redownloaded the Source Code and the settings are definitely not set that way any more. So, in conclusion, it will run on the emulator, but it isn't the right version, and it won't run at all on my iOS stuff, it still says the same error!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/18/12 11:24 AM (13 years ago)
Hi Ben, I just ran your current config through the JSON validator, and it shows the same error. Did you fix the "C" button? You might also try a Product...Clean, and then build for your simulator/device. Finally, you actually only need to download the source code once per project. The only thing that changes when you make changes in your control panel is the configuration file (BT_Config.txt). You can grab the latest version of it by clicking on "Show Configuration Data" in your control panel, and copy/paste to the local copy. Absolutely no need to download the entire project. When you said earlier it was working, what did you do to show that? Mark
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 11:27 AM (13 years ago)
Er... Its refusing to run on my iPad or iPhone at all, and on the emulator its running as a really old version of the App. I have redownloaded the Source Code and the settings are definitely not set that way any more. So, in conclusion, it will run on the emulator, but it isn't the right version, and it won't run at all on my iOS stuff, it still says the same error!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/18/12 11:31 AM (13 years ago)
If it's running on the emulator as a really old version of the app, then it's using a cached copy of the config file. Delete the app from your emulator and from your devices. Do a Product...Clean, then build again. Mark
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 11:35 AM (13 years ago)
I renamed the 'C' buttons, I have cleaned the build and that didn't work. I have repasted in the source code and that hasn't worked either. Since I deleted the Apps from the iPhone emulator, now that's not working either (at least its being consistent!), I am getting the configuration error once more....!
 
Marko
buzztouch Evangelist
Profile
Posts: 558
Reg: May 04, 2011
UK, Alcester
8,880
like
04/18/12 11:47 AM (13 years ago)
Stobe and mark well done for being BT batman and robin, you are stars
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/18/12 11:51 AM (13 years ago)
Hi Ben, I'm looking at your config again, and it seems the issue is with the "Ch," "W+V," "ts" and "SH" buttons. I would delete those, see if the project runs, and then try to add them back in, one by one. Mark
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 11:51 AM (13 years ago)
agreed!
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 11:56 AM (13 years ago)
I've deleted the buttons from my homepage for them, nothing!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/18/12 11:59 AM (13 years ago)
Looks like you just renamed them. They are still there, with the same IDs. Let's revert to email to figure this out, and then we can post back when we get it resolved. Mark
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 01:25 PM (13 years ago)
Regrettably not an entirely positive solution, but this experience does speak volumes for the Buzztouch support service, second to none! Keep up the good work lads/ladies!
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 10:33 PM (13 years ago)
Ah, It seems that I attract trouble! I was JUST finishing off my total remake of my App (at 5:30am this morning) and the damn thing breaks again! Luckily my iPad has Cached all of the data, so I can show off the App tomorrow, but my iPhone and the Xcode emulator both refuse to update once me, citing difficulties in 'parsing some configuration data' saying I must 'make sure it is well formed'. Can someone take a look at this for me, I really DO hate code!
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 10:48 PM (13 years ago)
Also worth noting, that it periodically throws in a 'the configuration data for this Application is invalid' every so often.... Jeez.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/18/12 10:55 PM (13 years ago)
Hi Ben, I just checked your new config file, and I see what the problem is. For some reason, the JSON is not being formed well. I'm going to contact the guys at buzztouch and see what they have to say, since their software is responsible for generating the config file. Could be a bug. Mark
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 10:56 PM (13 years ago)
Also worth noting, that it periodically throws in a 'the configuration data for this Application is invalid' every so often.... Jeez.
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 10:58 PM (13 years ago)
Many Many thanks Mark! (Its really weird, the JSON in the config file in Xcode always works perfectly, the one in my control panel on the other hand is really inconsistent! And it always has a problem with line 275, regardless of what I do to the code and what pages I delete etc. Very strange)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/18/12 11:03 PM (13 years ago)
The problem is this code: { "itemId": "8ABE0EAD4C8A58C498D51F1", "itemType": "BT_screen_blank", "itemNickname": "1 Sample", }, If itemNickname is the last field in that set, then there should be no comma at the end. If you remove the comma, it validates just fine. Not sure why BT is generating the comma. Mark
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 11:03 PM (13 years ago)
Many Many thanks Mark! (Its really weird, the JSON in the config file in Xcode always works perfectly, the one in my control panel on the other hand is really inconsistent! And it always has a problem with line 275, regardless of what I do to the code and what pages I delete etc. Very strange)
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 11:09 PM (13 years ago)
How would I go about using that to fix my app? (I'm pretty slow at this!) Thanks Ben
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/18/12 11:12 PM (13 years ago)
Well, unfortunately you can't edit the online version of the config file (I made that a feature request a long time ago!). You could edit the local copy and then compile your app to see what happens. Looks like you're already familiar with jsonlint.org. Past your config file in there...edit it until it validates, then copy and paste to your local config file. Then see if the app run correctly. You might want to remove the Report to Cloud URL so it doesn't check BT for updates. This is all testing, and in no way affects the config file at buzztouch, which is the master copy. Mark
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 11:13 PM (13 years ago)
How would I go about using that to fix my app? (I'm pretty slow at this!) Thanks Ben
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 11:16 PM (13 years ago)
That's annoying. I am struggling with JSON, because ANYTHING I seem to do just returns the exact same error message: Parse error on line 275: ... }, -----------------------^ Expecting 'STRING' I don't think its ever been anything else!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/18/12 11:23 PM (13 years ago)
Just sent you a fixed JSON file. Check your email! Mark
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 11:27 PM (13 years ago)
You sir, are a genius! It lives! Thank you so much for all of your help! One final question before I leave you in peace: as this doesn't update through Cloud URL etc. how do I update the App in future if I want to change something (I don't right now, but I'll probably want to make changes in the next few days)? Thanks so much for all of your help! Ben
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/18/12 11:32 PM (13 years ago)
Sweet! Glad it works! I've already contacted buzztouch to ask why the JSON got generated that way. Until we figure it out, you'll either have to delete those offending screens, or wait until the problem gets fixed. Because as soon as you put something back in the Configuration Data URL/Report to Cloud URL, it will grab the config file on buzztouch. If you can hold off a bit on making changes, we might be able to get this sorted out in the next day or so. Mark
 
benthacker
I hate code!
Profile
Posts: 22
Reg: Feb 27, 2012
location unknow...
1,870
like
04/18/12 11:33 PM (13 years ago)
Fantastic! I will wait patiently!
 

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.