How to Get Black Borders in iPhone 5
Asked Answered
F

4

5

When I first updated Xcode and tested my app in the iPhone 5 simulator, the app ran perfectly with black borders at the top and bottom. Then, something popped up asking if I wanted Xcode to auto-resize the app so that it would fit the entire screen. I clicked yes, and now everything is messed up. Is there a way to get the borders back? I want to submit an update for my app as soon as possible. Thank you!

Froehlich answered 20/9, 2012 at 17:47 Comment(3)
have u used any local git or maintained the code on some repositories...Mammalogy
If you do this, Apple will not accept your app.Homogony
@Homogony it's only applicable if the app is submitted AFTER May 1st (2013). If it was already on the App Store, then black bars are automaticaly addedLodgment
F
18

Remove the file [email protected] from your project.

Fernando answered 20/9, 2012 at 17:50 Comment(6)
I tried that, and it didn't work. I think xcode does it automatically but there must be a setting to prevent that from happeningFroehlich
The answer is definitely right. Make sure you do a Clean Build Folder. And maybe delete the app from the simulator and run again.Sg
If you go in the simulator and click reset content and settings, it fixes the problemFroehlich
@BoltClock: it asks you if you want Xcode to add it. If you don't, you'll get the black bars. If you do, the app will take up the entire screen without bars.Donegan
@Scott: Does it just add a blank image with those dimensions, or does it base it off the original [email protected]? (I haven't had the opportunity to try it myself yet.)Apoplectic
@BoltClock: It's a solid black image.Donegan
P
5

4 steps:

  • Uncheck the Target Membership of the [email protected] file in the File Inspector pane (or just remove the file).
  • Do an (Option key) Clean Build Folder on the target, and a regular Clean as well.
  • Delete the app from the Simulator.
  • Rebuild the app and Run it.
Phlebotomize answered 20/9, 2012 at 18:31 Comment(0)
P
2

Please be aware that as of May 1 Apple requires the [email protected] image in your application for submission to the App Store. Without that image you will receive an invalid binary rejection.

Psychobiology answered 6/6, 2013 at 13:5 Comment(0)
E
1

A clean build folder can be tricky to find. Normaly you just see under Project > Clean . BUT when you keep your ALTkey pressed it will change into Clean Build Folder!

Esquire answered 20/9, 2012 at 18:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.