Discussion Forums  >  iOS / Android Beta Testers

Replies: 9    Views: 740

MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
08/10/13 02:01 PM (10 years ago)

iOS test device not showing a few images

So I've finally been able to load my app on a test device now that the apple developer center is back up and running. I've loaded it only on my iPhone 4 so far. I didn't have any issues or warnings when i loaded it on my device, however a few of my images are not showing up. Specifically in my BTA design menu, two out of more than a dozen icon button images are not showing up on my test device. They do show up fine on my simulator. I'm having the same experience with some of my Custom HTML pages. Most of the images that i've placed in these pages show up just fine, but a few are not appearing and I just get a small blank square on the screen where the image should be. Everything appears just fine on the simulator. Anyone experienced this before?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/10/13 02:35 PM (10 years ago)
Weird! If it's working in the simulator, it should be working on the device as well. Anything showing up in the debug console? That's where I would look first. Your phone would need to be connected to Xcode in order to get the debug output. Mark
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/10/13 03:12 PM (10 years ago)
Echoing Mark in just about every respect. It is odd. I concur with checking the debug console; it tells you everything... Keep your 'test phone' tethered to the computer/xcode while testing so that the console will display it's output as well. It's gotta be something simple; Just keep your eyes open and keep the log logging... it'll show up soon enough. Cheers! -- Smug
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
08/10/13 03:44 PM (10 years ago)
This happened to me a few months back. First of all, when dragging your files over to Xcode, you should tick the 'Copy into project' box. I think the wording is different, but that is the box. But the thing that caught me out was the file formats. I found that you can't just rename your image with a different format, because it doesnt convert it. I names all my .jpg files as .png, which the computer simulator is able to recognise, but my iPhone got confused. So my word of advise is make sure exactly what file format your image is in. By renaming it in a different format, does not convert the image into a new file format. The problem is, your computer won't see any problem... only your phone will.
 
MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
like
08/10/13 08:26 PM (10 years ago)
I'm getting the following debug message for the images that are missing in my test device but present in the simulator: "File does not exist in xcode bundle"
 
MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
like
08/10/13 08:51 PM (10 years ago)
I'm getting the following debug message for the images that are missing in my test device but present in the simulator: "File does not exist in xcode bundle"
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/11/13 12:03 AM (10 years ago)
The first thing I would check is to make sure that the images have been dragged into your Xcode project, if they are intended to be packaged up with the app. If they aren't there, then drag them from the same folder on your hard drive to the same folder in your Xcode project. Assuming that's all good, try a Product > Clean and then build the app again. Sometimes that helps. Assuming that's all good, give us a larger snippet of the error that you're seeing...a few lines before and after. That'll give us more information. Mark
 
MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
like
08/11/13 09:21 AM (10 years ago)
i think my images are all in the correct places. i've also deleted these images from the project and added them again to the package and done a clean/build. here's a snippet of the debug message i'm getting. the image that's not showing up is "edwinwalker.png" 2013-08-11 11:08:57.681 myfirstapp[1177:731b] BT_fileManager: File does exist in Xcode bundle: ruth-paine.png 2013-08-11 11:08:57.690 myfirstapp[1177:731b] BT_item: using image from Xcode bundle: ruth-paine.png 2013-08-11 11:08:57.711 myfirstapp[1177:930b] BT_fileManager: File does exist in Xcode bundle: warrencommission.png 2013-08-11 11:08:57.713 myfirstapp[1177:930b] BT_item: using image from Xcode bundle: warrencommission.png 2013-08-11 11:08:57.739 myfirstapp[1177:9e07] BT_fileManager: File does not exist in Xcode bundle: edwinwalker.png 2013-08-11 11:08:57.742 myfirstapp[1177:9e07] BT_fileManager: File does not exist in cached directory: edwinwalker.png 2013-08-11 11:08:57.744 myfirstapp[1177:9e07] BT_item: no image url provided, not downloading: 2013-08-11 11:08:57.825 myfirstapp[1177:9e0b] BT_fileManager: File does exist in Xcode bundle: demohrenschildt.png
 
MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
like
08/11/13 09:54 PM (10 years ago)
I don't know what the the problem was, but this was my solution: i deleted the images that were not showing up and re-added them to the project.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/11/13 11:38 PM (10 years ago)
Glad you got it going :) Cheers! -- Smug
 

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.