Discussion Forums  >  Uncategorized

Replies: 16    Views: 505

DPinoh
Apple Fan
Profile
Posts: 55
Reg: Feb 17, 2011
USA, Ohio
550
05/01/11 06:15 PM (14 years ago)

Perplexed by inability to update. Ver. 1.5

When I run the app, it runs fine until I refresh the data. I get a There was a problem downloading some data. Check your internet connection and try again. My internet connection is fine - but I can't update my app from buzztouch. XCode shows this: warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.7 (8E303)/Symbols/usr/lib/info/dns.so (file not found). Any thoughts? Thanks much, as always.
 
TheHoogler
I hate code!
Profile
Posts: 152
Reg: Feb 10, 2011
Anchorage, AK
1,520
like
05/01/11 06:36 PM (14 years ago)
I get the same thing. It'll usually kick through after the 5th or so try.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/01/11 10:23 PM (14 years ago)
This is strange. It's even strange that both of you are getting it (only two to report it). Gotta be a solution? There's a discussion here about the very same issue, or very similiar. I'm thinking it has something to do with the Xcode version and some shared libraries. Grapsing here, have no idea really. http://stackoverflow.com/questions/4260291/issue-with-iphone-sdk-4-2-1
 
cbribri89
Aspiring developer
Profile
Posts: 14
Reg: Dec 10, 2010
Carrollton, Tx
140
like
05/02/11 05:11 AM (14 years ago)
That's strange.
 
TheHoogler
I hate code!
Profile
Posts: 152
Reg: Feb 10, 2011
Anchorage, AK
1,520
like
05/02/11 05:51 PM (14 years ago)
Here's the console output for my app (which shows the same error popup message as Dpinoh - *There was a problem downloading some data. Check your internet connection and try again.*) It looks like it tries to communicate with Buzztouch, but can't make the connection (timing out). Anyone see how to fix this? (since i'm not code literate) 2011-05-02 16:47:23.065 findfish[20556:207] findfish_appDelegate: downloadAppData 2011-05-02 16:47:23.065 findfish[20556:207] findfish_appDelegate: showProgress 2011-05-02 16:47:23.066 findfish[20556:207] BT_strings: mergeBTVariablesInString (after merge): http://www.buzztouch.com/appdata/v1.5.php?command=getAppData&appGuid=EA33F769C8F3118F6&apiKey=0DE6CB520BC6FB9 2011-05-02 16:47:23.066 findfish[20556:207] BT_downloader: INIT 2011-05-02 16:47:23.066 findfish[20556:207] BT_downloader: downloadFile: http://www.buzztouch.com/appdata/v1.5.php?command=getAppData&appGuid=EA33F769C8F3118F6&apiKey=0DE6CB520BC6FB9 2011-05-02 16:47:23.066 findfish[20556:207] findfish_appDelegate: downloadFileStarted: starting download... 2011-05-02 16:47:48.067 findfish[20556:207] findfish_appDelegate: downloadFileCompleted 2011-05-02 16:47:48.067 findfish[20556:207] findfish_appDelegate: hideProgress 2011-05-02 16:47:48.068 findfish[20556:207] findfish_appDelegate: the download process reported an error?: ERROR: Code: -1001 Description: The request timed out. 2011-05-02 16:47:48.068 findfish[20556:207] findfish_appDelegate: hideProgress
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/02/11 10:40 PM (14 years ago)
OK, I see exactly what's happening. Looks like it's taking way too long to download your configuraiton file from the server - it's probably HUGE! LOL. I would do this: a) Visit your control panel and open the Core Properties. Click the link in the dataURL area to load the apps configuration data in your regular browser. How long does it take? It should take the app about the same amount of time to download the file. If it's taking more than 15 seconds or so (it really shouldn't unless you have an extreme amount of content listed in your configuration file) you'll need to change the 'timeout' variable in the BT_downloader.m file in your iOS project. To do this, adjust two things: In BT_downloader.m (in the BT_Objects folder) look near line 50 for this: [self setTimeoutSeconds:25]; and set it to [self setTimeoutSeconds:45]; ( i added 20 seconds). Next, do the same thing on around line 168: NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:escapedURL cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:25.0]; changes to: NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:escapedURL cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:45.0]; The only change is the 45 at the end. Recompile. Does this fix it?
 
TheHoogler
I hate code!
Profile
Posts: 152
Reg: Feb 10, 2011
Anchorage, AK
1,520
like
05/02/11 11:05 PM (14 years ago)
I think it worked! Thanks! I suppose having 500+ screens might do it. The problem is, I plan on adding another 500 or so. Do you think I should disconnect myself from Buzztouch, and introduce changes as periodic updates instead of having users update every time I update the control panel? I mean, I'm not sure how impatient end users are...
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/03/11 12:24 AM (14 years ago)
Yeah...tough call. I've been thinking about this alot lately. I think you'll be best long-term to run host all your content pages on a website. This is super cheap and easy. Then, maybe just use the control panel to configure menus and layout and iOS options. The idea is that each menu would use a dataURL that pointed to your server so the content loads 'as-needed' and caches only what the user asks for. I'll try to get a document together to show you how to do this. A little learning curve but not too bad.
 
TheHoogler
I hate code!
Profile
Posts: 152
Reg: Feb 10, 2011
Anchorage, AK
1,520
like
05/03/11 01:15 AM (14 years ago)
We all need to learn sometime :) Though, most of my content pages have material that isn't embedded in the app (urls, pdfs, html). I suppose the layered menus will still eat it up. Again, thanks for all the help.
 
TheHoogler
I hate code!
Profile
Posts: 152
Reg: Feb 10, 2011
Anchorage, AK
1,520
like
05/03/11 12:18 PM (14 years ago)
Update: It doesn't seem to work anymore (Testing on live device, not simulator). Its possible that my test last night was a fluke. While I'm positive the solution is correct, this is something I might be missing. David, I changed the timers like you said within the project. Will I have to submit an update to itunes for this to take effect? (I thought this might be the case, but last night's tests seemed to indicate otherwise).
 
Gasguzziler
Aspiring developer
Profile
Posts: 53
Reg: Nov 24, 2010
Seattle
530
like
05/03/11 06:12 PM (14 years ago)
Yea if you changed anything within the source code you would have to update it through itunes, the only thing that does live changes is things that you change in the buzztouch control panel. Just upload the new version with the fix and it should work like it did in your simulator.
 
TheHoogler
I hate code!
Profile
Posts: 152
Reg: Feb 10, 2011
Anchorage, AK
1,520
like
05/03/11 08:25 PM (14 years ago)
That's what I thought. Thanks.
 
DPinoh
Apple Fan
Profile
Posts: 55
Reg: Feb 17, 2011
USA, Ohio
550
like
05/07/11 05:07 AM (14 years ago)
I've been busy and haven't had a chance to try the solution above (today I will) - - but I did notice something strange: If I use the Circular Arrow (for lack of a better term) to or if the App Content has changed, do you want to update to refresh the app's content- I get the error There was a problem downloading some data. Check your internet connection and try again. But, if use the Pull down screen to refresh - it updates the data. (?!) I'm going back through every screen to see if I have an HTML error somewhere, the app uses Custom HTML-Text screens - but the only tags are <b></b> and <p>. Weird, eh?
 
DPinoh
Apple Fan
Profile
Posts: 55
Reg: Feb 17, 2011
USA, Ohio
550
like
05/07/11 05:23 AM (14 years ago)
Well, no it doesn't... it updated my menu screen, but not the content.
 
requazaash
Aspiring developer
Profile
Posts: 24
Reg: Jun 17, 2011
San Jose
240
like
06/23/11 05:57 PM (14 years ago)
I'm getting the same error. I get a There was a problem downloading some data. Check your internet connection and try again. The wierd thing though is that I only have 5 pages. When I Click the link in the dataURL the page loads in a second. I dont know what is wrong with my app.
 
requazaash
Aspiring developer
Profile
Posts: 24
Reg: Jun 17, 2011
San Jose
240
like
06/23/11 08:03 PM (14 years ago)
I also put my timeout to 100, but there was no change other than the extended wait.
 
Mag37
Apple Fan
Profile
Posts: 71
Reg: Mar 31, 2011
USA
6,610
like
06/23/11 08:40 PM (14 years ago)
I have the same issue with my 1.5 App I tested how fast my dataURL page loads and it is done is seconds. Could this be related to the following post? http://www.buzztouch.com/forum/thread.php?tid=A99FD30E6C7A46A94ECDBCB&status=&searchInput=search...&sortColumn=FT.dateStampUTC&sortUpDown=DESC%C2%A4tPage=1&doViews=1
 

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.