I'm trying to add a launch image to my app which is purely a UIwebview based app. I get the launch image on the simulator (iPhone 7) but not in test flight (iPad pro).
I followed some guides and removed the laud storyboard file, ticked every orientation and requires full screen. Any suggestions on what is causing the problem. I added all images in the assets.xcassets launch image catalogue.
Related
I'm having a similar issue to this question below here but it only happens in iPad running iOS10.. the launch screen shows the app icon resized instead of showing the launch image. Unlike the question below, I have set launch images in image assets and referenced it in info.plist, its not empty and it shows perfectly on iPhone. Is anyone else experiencing the same problem?
iPad Application shows app icon as launch screen in iOS 10
I have an iPhone app built with Xcode 7. Its deployment target is 7.0. At first, when running the app on the iPad, there no launch images.
I later solved it by checking iOS 6.0 and Prior so launch images would appear on the iPad. But now i get " An iphone retina (4-inch) launch image for ios 7.0 and later is required. " in the Assets.xcassets.
Whenever I try to add the images for iPad Portrait, Landscape and iPhone Portrait in iOS 7.0 and later, the error disappears, however no launch images appear on my iPad 3rd gen. How can i fix that?
Check to see if you have more than one collection of launch images in your Assets.xcassets.
After using the "Migrate" button in Xcode 7.3.1 I unintentionally ended up with two collections, each mysteriously created by Xcode. The original was named LaunchImage, the Migrate button also created Brand Assets collection. Each held some launch images.
I too got your error:
Assets.xcassets: An iPhone Retina (4-inch) launch image for iOS 7.0 and later is required.
I deleted the Brand Assets collection.
On Target > General > App Icons and Launch images > Launch Images Source, I set the popup to LaunchImage rather than Brand Assets.
Hold down Option key while choosing menu item Product > Clean build folder.
My LaunchImage collection was already populated successfully with all required launch images. That error message disappeared.
I am making a test sprite kit game, and when I run it on the device, the splash screen doesn't show up although it does work on the simulator.
Here are some screenshots:
Normally I set the target to iOS 7.1 and later, so I use a .xib file and LaunchImage file in xcassets.
I have put 2 correctly sized splash screens in the iPhone portrait iOS 7&8 section, and have selected "Portrait" under iOS 7 and later. The link from the settings file is definitely going to the correct file.
When I run it on the simulator (presumably all devices are iOS 8), the .xib file is used and it displays that splash screen.
When I run it on my iPhone 4, it displays a black screen. In my other apps, it would choose the image from xcassets and display it, but this is not the case.
Does anyone know how I could solve this problem?
Edit
Basically, I have put 4 images into xcassets for a splash screen. I have selected iPhone portrait for iOS 7 and iOS 8.
In the settings pane I deleted the launch screen file reference, so the only reference is to the xcassets launch image (It points to the correct place). I have also deleted the LaunchScreen.xib file.
But when I run the app on the device and the simulator, no splash screen shows up.
I faced similar issue and fixed by Restarting the Mac and iPhone
Uninstalling the app from Simulator/ iPhone helped to fix this issue.
I was having the same problem, and I finally figured out a solution. I want my launch screen to show up on ALL devices capable of running iOS 7 or later, when running my landscape-only Sprite Kit game. Most devices that run iOS 7 can be upgraded to iOS 8 or greater, except for the iPhone 4 (which is stuck with iOS 7.1), and the launch screen wasn't appearing on my iPhone 4 test device. Then I stumbled across Apple Tech Note TN2244. As described in the Tech Note, once you edit the info.plist to enable landscape orientation for iOS 7.0+ iPhone launch images, the correct launch image will appear. As a side note, if you disable the launch image asset catalogs as suggested, the XCode Swift compiler gives you warning messages -- but you don't really need to disable launch image asset catalogs, and if you configure them properly the warnings will disappear and landscape launch images will now work just fine on all devices, including iPhone 4.
Your app's launch image is displayed as soon as your launch your app. Hence the name. It is removed when the appDelegate appDidFinishLaunching: method runs. If you are app has very little to load, your image might get displayed and removed before you have time to see it.
If you want to manually set a longer display time for your launch image, you can add this code to the appDidFinishLaunching: in the appDelegate.m file:
sleep(4);
4 being the number of seconds.
I have an iPhone app which works fine on iPhone 5 and 4s, when i run it on iPad2 i am expecting it to run in small window with 2x resolution but instead it runs fullscreen messing up all the layouts, apple has rejected my app and i need a fix.
I have created this app as iPhone only and built on Xcode 6 with ios8.0 sdk,
Please help
thanks
If you set a launch screen for your app, it will be fullscreen on iPad.
In Xcode, select your app target, then select General tab, scroll to App Icons and Launch Images, checkout the Launch Screen File.
Ok so finally deleted the xib file which i was using as launch screen and used the default images instead that solved the issue for me now , app runs in 2x mode on iPad with launch screen.
I have got an app developed for iPhone family only, and I used to run it on iPad to test how it will look on iPhone 4s (since it launched with iPhone 4s resolution, size, and else '2x' round button for fullscreen support). However, now when I run it on my iPad with iOS 8, Xcode ignores all build settings and runs it as for iPad. My storyboard constraints were not projected for iPad screen.
I have:
Devices option set to iPhone on General tab in project settings
Main storyboard file name and Main storyboard file name are removed from Info-plist
All App Icons and Launch Images for iPad are deleted
In Launch Screen File the option Use Size Classes set to NO, and the assets are generated for iPhone only
Is that a normal behavior? I want to use my iPad as before to test iPhone 4s resolution. I am sure that my app won't become universal because of that, but nevertheless I think this is a problem.
The use of Launch Screen File in iOS 8.0, 8.0.1 and 8.0.2 will make you universal.
This is a know bug and fixed in iOS 8.1, for you only option is to use assets catalog with a launch images.
Or you can add the device modifier in the Launch file name, like <launchNib>~iphone.nib