Discussion Forums  >  Uncategorized

Replies: 5    Views: 244

Marko
buzztouch Evangelist
Profile
Posts: 558
Reg: May 04, 2011
UK, Alcester
8,880
08/30/11 12:11 AM (14 years ago)

Help with App Submission

Had my second rejection for app on the iconnect for the following error which was the same error. When the user launches the app on iPhone 4, the following message is displayed: No screens to display I took Davids advice from first forum and checked all screens where in BT_images folder, I cleaned all targets in xcode and ran in simulator and my iphone 4 and everything works fine? My app consists of quite a lot of images and information. (Its an app on ponies and their breeds) I have set up the majority of pages as custom HTML with the images referenced not by a web page but to filenames, and placed those files in the BT_images, some of the files have spaces between name e.g shetland pony.jpg instead of shetland_pony.jpg, I dont know if that is a factor. I turned off wi-fi on the iphone 4 and tried the app with just my phone network connection. It could not download the screens. This is confusing because in version 1.5 I thought there was no need to download images as they should be on the phone after first install. I could not access BT website last night and my phone could not access the images or wehat data it required. I was getting a error message about no internet connection to download data? Have I set up my app incorrectly so that it needs to access BT and download images. This morning it all works fine on the phone again but each page has a slight delay whilst a message come up saying loading', aren't the images already on the phone after app install. Is setting up the pages in Custom HTML causing the need to access the interent for images? Is there a way of checking app another way than the ios simulator and my own device before submitting to apple. Everytime I check on my device or simulator it works fine? Any help will be massively appreciated I feel I am so close, but do not want to submit until absolutely certain everything's OK as don't want apple to start rejecting me on sight.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/30/11 01:42 AM (14 years ago)
For sure you don't want to submit the app in a less than perfect state - Apple keeps score ;-) So, you need to get your head around where the HTML / Images are coming from. In other words, were does iOS look for these assets. It sounds like you have the image in the project so they don't requrie a download, good. But, it also sounds like you have the HTML coming form the buzztouch control panel. This will require a download the 'first time.' There are lots of ways to do this but if you want 100% offline access, without having to download anything, you'll need to include the HTML files you use in the Xcode project, just like you did the images. In this case, use a Custom HTML screen but use a file name that points to the HTML doc you added to Xcode. a) make all your 'mobilized' HTML pages on your computer. Use any editor you want. b) Name these files as you would any other web-page. Oh, yes don't use spaces in file names, including image names, it's bad bad for internet related stuff. c) Drag the HTML files int he BT_Docs folder in Xcode. Drag your Images in the BT_Images folder in Xcode. Now, all your assets are in the app, not on the control panel. d) Next, when setting up the screens in your control panel, use the file names you added to your Xcode project to 'point' to the HTML docs you compiled in the app / Xcode. The best way to see where iOS is looking for files is to use the Console in Xcode. Launch the app in the simulator, open the console, you'll see all sorts of good info. Use the Clear button to make it easier to read... a) Run your app i the simulator...navigate to a menu b) Open the Console in Xcode. Tap 'Clear' c) Tap a menu item in the simualtor...see all the ouptut? Clear the console > Tap an item > Output is related to the screen loading. For HTML pages it will show you where it's looking for the files so you can figure out what's wrong when something isn't workign the way you expect.
 
Marko
buzztouch Evangelist
Profile
Posts: 558
Reg: May 04, 2011
UK, Alcester
8,880
like
08/30/11 12:04 PM (14 years ago)
David, thank you so much for getting back to me, I feel so close but far away from first app submitted. I have took onboard you guidance and have the console feature (that I knew little about.) the message I get for the picture gallery is this? - 2011-08-30 15:42:14.734 ponyfun[254:207] BT_fileManager: File does exist in Xcode bundle: new forest.jpg on the pages that I use custom HTML with an image linked to BT images folder for information on the ponies I get this -2011-08-30 19:42:50.014 ponyfun[254:207] BT_screen_customHTML: Loading file from cache: screenData_047E5B37A3771E2DBCF60C4.html -2011-08-30 19:42:50.014 ponyfun[254:207] BT_fileManager: readTextFileFromCacheWithEncoding: screenData_047E5B37A3771E2DBCF60C4.html encoding: -1 -2011-08-30 19:42:50.015 ponyfun[254:207] BT_screen_customHTML: shouldStartLoadWithRequest -2011-08-30 19:42:50.015 ponyfun[254:207] BT_screen_customHTML: url to load: file:///Users/markoleary/Library/Application%20Support/iPhone%20Simulator/4.3/Applications/64E77387-1A2B-4CA6-A5C2-17978779F590/ponyfun.app/ It does not seem to load the image from the BT_images file from its directory Without wishing to over utilize your help is this why when apple run it they see no images or data. I write the custom HTML directly from buzztouch and once I have done one page of information with a screen I copy the source html from the buzztouch menu on editing I dont use any html pages I have already written I do it directly. On searching the forum I noticed another user had same problem and you advised also that following First, lets make sure you have the latest release. Be sure you've downloaded the source-code in the last few days and you're not working with source you downloaded 'awhile ago' Next, there shouldn't be ANY xcode errors when you build. This shouldn't be happening, we'll need to get these to go away. There shouldn't be any when you build after downloading. Thank you for all your help and that of fellow BT users it stops from giving up and sitting in a corner sulking mumbling that xcode is the devils work Regards Mark Ps I have uploaded a real picture of me for the forum but it came up with the monkey scratching it head, is that the BT computer deciding the monkey is a nicer image than that of my real life photo.
 
Stefan
buzztouch Evangelist
Profile
Posts: 558
Reg: Dec 21, 2010
Sweden
14,780
like
08/30/11 01:05 PM (14 years ago)
I see that you have spaces in your file names [ new forest.jpg]. You also have spaces in your directories and I had some issues with this before. Might be a good idea to check that. Can that be reason to your errors? BR/Stefan
 
Marko
buzztouch Evangelist
Profile
Posts: 558
Reg: May 04, 2011
UK, Alcester
8,880
like
08/30/11 11:54 PM (14 years ago)
thanks Stefan I am renaming all files with an underscore on the images e.g new_forest.jpg
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/31/11 01:32 AM (14 years ago)
Real photo replaced by monkey - too funny. If your pic. in your forum settings shows you but the forum still shows the monkey - something isn't working ;-)
 

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.