Created an iOS app with XCode 4.4.1 and the icon for the archived app and what is deployed to my device is distorted. It seems to be rendered wider than the allotted space and it has vertical white lines. This isn't a problem with XCode 4.5, but I can't use that yet.
Has anyone experienced this? How do I fix it?
I just changed the mode to indexed with the Generate optimum palette option and did another export and that seems to have fixed the issue.
Related
I built a PWA using Vue.js and https://www.pwabuilder.com/.
On IOS (Iphone 11) my app has extra margins on top and bottom that reduce the screen height, as shown on screenshot 1 below. On the Iphone 8 simulator it seems to go full-width. Probably because it is fixed ?
I thought it might be related to my JS code but debugging the app with Safari indicates that the extra margins are more likely linked to the XCode project, as they seem to apply outside my app view.
Has anyone any idea where that might come from ?
I am very unfamiliar with XCode so it might be just that my project has somewhere a max-height set.
Thanks for the help.
screenshot 1:
screenshot 2:
Anyone seeing this now and having the same error:
It was an issue of splash screens in Xcode. As some LaunchIcons were missing (typically the one from the test device) if defaulted to another smaller one and launched the app with a smaller height.
While revising one of my apps to work with the latest iPhone dimensions I noticed the simulator was (wrongly) displaying icons behind the app like the app wasn't sized correctly for the new 1136 x 640 dimensions. I couldn't find anywhere in my Cocos2d 2.0 code that affected this issue and changing the size of the white background image did nothing. When I told the simulator to go "Home" and then relaunched the app, it appeared normal. This only happened when testing localization languages like German in the following image.
Sounds like a bug to me. Maybe report this to Apple?
Yes this is definetly a bug, if not then apple will help
Reset your simulato.
then run your project.
Removing all references to armv6 eliminated this issue.
I am testing some old apps on the iPhone 5 simulator. Most of the apps display properly, that is the display centered, maintaining the original iPhone aspect with blank space on the top and bottom.
One of my apps acts differently. It stretches the launch image (an old 2:3 aspect launch image) to the full height top to bottom of the iPhone 5 simulator. Then it snaps the app to the top of the window, as opposed to centering it.
I suspected this had something to do with auto-layout, but as far as I can tell, being new to the concept, it is disabled. As I checked in the file inspector and "use auto layout" is unselected.
Any thoughts? Thanks for reading!
Removing Default-568h#2x.png from the project should solve the problem. It seems like several people have been having a problem with Xcode auto-creating this launch image.
From my experience it looks like when you open a project in XCode 4.5 it automatically adds a flag to each view saying "Autoresize subviews" and by default this is set to true. When I disable this flag for all my views, they no longer stretch. Interestingly though, I don't get the letterboxing in the simulator, instead a get a white band at the bottom.
I ended up manually setting up the views for the iPhone 5 because I could not locate or fix the issue. Setting up the views specifically for the iPhone 5 was relatively easy, but frustrating to not know why it was necessary in this case.
I detected the iPhone 5 using the code below found in this stack overflow answer: How to detect iPhone 5 (widescreen devices)?
#define IS_IPHONE_5 ( [ [ UIScreen mainScreen ] bounds ].size.height > 500)
if (IS_IPHONE_5 ) {
//set up views
}
Remove the Default-568h#2x.png from the project, and also, you must manually remove the app from the simulator before running it again from Xcode. It looks like ios6 saves some kind of a flag for the installed apps that makes it think it should stretch it.
Simply removing the Default-568h#2x.png did not solve my problem.
First I deleted this file, than I drag a 640x1136 image to the "Launch images - Retina (4-inch)" of "iPhone Deployment Info" section in Xcode.
In iOS 7 Sdk if your are not added launch image in your project you need to
Add launch image (640 X 1136 and 640 X 960)into your project, Then go to General Tab and set both launch image (Retina, Retina 4 inch) then remove app from simulator and run again should solve the problem
When I compile my app in Xcode 4.3.1 with iOS 5.1, I notice there is a strange behavior with background textures only on actual device. There is a 1px gap in between texture tiles shown in screenshot below.
My texture are 150x150 and 300x300 at 2x.
So far I've tested the same build on:
Simulator iPhone/iPad both 5.0/5.1: No bug
iPhone/iPad running 5.0.1: No bug
iPhone/iPad running 5.1: Buggy
I've been getting the same problem since 5.1 aswell. I solved it by doing the following to the image in photoshop. You can probably do the same in another tool.
Load the file, select all, and copy to clipboard
Create a new file in photoshop that is the same dimension, RGB and 8bit depth with 72pixels/inch resolution with a white background.
Paste the image you copied in step 1 into this image
Save the file and use this one.
After doing this the file displayed correctly on the device and I didn't have to resort to creating images the size of the display.
My workaround:
Set "Compress PNG Files" to "No" in Build Settings. In my case the size of the app bundle was even smaller than with compression turned on. I did image optimization myself.
just in case anyone else is having this problem and uses pngoptimizer, try a new png without optimizing it.
I had the same problem and spent the last 4 hours trying to solve it.
In the end i realized it was png file from the pngoptimizer tool that somehow always worked before iOS 5.1 but with the update the same png file produces this thin line at the bottom. the strange thing is that this does only happen on the device and not in simulator and that deceives you a lot because you think it cant be the graphic. in fact it is.
I'm trying to learn iOS development, and have run into a problem that has stopped any and all progress. Whenever I build and run my code on the simulator, I just get a blank grey screen! I can't find any help on the subject, so I turn to you wonderful people here. I have no idea what's wrong. Even when I start a new blank project and build/run it, I get a blank grey screen. It seems like something is wrong in xcode that's preventing my MainWindow.xib file to be used.
Like I said, I'm just learning, so I don't have much experience as to how this all works.
Try this: with iOS Simulator active, select Window->Scale->50%. This worked for me after frustrating hours and hours of restarting the computer, reinstalling Xcode, and searching the Web. Turned out there was nothing wrong with iOS Simulator, just that the default Scale of 100% hid all the icons. OS X 10.9.3, Xcode 5.1.1, iOS Simulator 7.1.
Some of the sample project templates (e.g. 'view based application') don't show anything interesting - only a grey screen (bceause it's up to you to actually add something to the view). But if you create a new "Navigation based application" sample project, you'll see a blue nav bar and an empty table in your app.