xcode 5 .xassets migration issue - ios

In Xcode 4.6 and below I used images to support launch image in landscape for iphone and its working perfectly, but after migrating the aseets to aseetslog (.xassets) folder in new xcode 5 I am not able to c the launch image for IPhone in landscape mode.As my application will run only landscape more.Can any one please help on this.

Make sure that you have checked the "Landscape" checkbox in the asset catalog and you have put your proper images.

Related

Xcode Launch Image for iPhone 6 landscape...?

My app is landscape only, and I'm trying to add launch images, but I don't see anywhere in the Launch Image assets a placeholder to drag the image for "Retina HD 4.7" Landscape.
Please advise.
I had this issue on one of my apps that I started developing and then a xcode update came along. I had to delete the file and create a new one, then all of the choices were there. Give that a shot. Always backup first.

Xcode 6 Migrating to Images assets issues -- Black launch screen

I updated my application to use Image Asset for App Icon and Launch Images i set both with
appropriate image size according to Apple Doc. The issue that I have that for Iphone
and the simulator for (4S/5/5S) the launch image/screen is always black except for
Iphone 6+ but it works fine on iPad. I looked at couple of post here and nothing have
worked as follow
1) deleting the asset catalog and creating a new one
2) adding #2x and 3#x to each file before adding to the catalog
3) removing and redeploying the application
Anyone had that issue when porting image catalog ? Im using Xcode 6
Targeting ios 7 and 8
Thanks
Mike
Update 1
When disabling landscape launch screen appears normally
something i noticed before doing, so on either the device and the simulator
the application starts in landscape even if the device is held in portrait
and then it rotate to portrait. Still trying to solve that issue now
The following steps are worked for me:
Add the images to the project (root directory or Resources folder) with the following nomination (I will describe them into the Portrait launchimages): Degault.png (3.5 inch), Default-567h#2x (4 inch), Default-667h#2x (iPhone 6), Default-736#2x (iPhone 6plus).
Go to the target settings, App Icons And Launch Images on the General tab -> Set the Launch Image Source to not use asset catalog ('Do not use asset catalogs').
Remove the LaunchImage asset from your main image asset
Go to the target settings, App Icons And Launch Images on the General tab -> Set the Launch Image Source to use asset catalog
The XCode 6 is going to ask you about image asset migration from the existing images. Just click to 'Migrate'.
And it worked for me for each kind of devices on iOS7, iOS8.
Note:
If you check the new LaunchImage asset, than you can see it is really strange. It seems to contain only a few image without the images with iPhone6 or iPhone 6plus resolution.
I found that if I go to the app target general tab and remove all device orientations, the launch image will show again (i.e. the black screen goes away). After running the app, I then went back to the app target general tab and restored the desired device orientation and the launch images continue to work as desired.
(My answer should be in the comment section but I can't post it there due to my reputation)
May be these are very basic steps but:
Have you tried doing a full clean and deleting the derived data?
Have you checked the General tab of your target, under App Icons and Launch Images?

Launch image for iPhone would not show up with Xcode 5 in landscape mode

When starting a project using Xcode 5, I can't seem to get the launch image for iPhone to show up in landscape mode. I have tried both using Asset Catalogs and not using Asset Catalogs.
For testing, if I start a project using Xcode 4.x, then it works fine. It also works fine if I opened a Xcode 4.x project using Xcode 5.
Any suggestions?
You must select the [Use Asset Catalog] button and select which asset catalog corresponds to your app icon and launch image.
Your project file should look like this when that is completed:
This is sadly a bug for iOS7(and previous)/Xcode, Apple just does not want apps to start in landscape mode with a launch image.
See http://www.raywenderlich.com/forums/viewtopic.php?f=2&t=10316 for more details on why.
One possible fix is to manually name each image according to convention, that supposedly fixes it. Another may be to have a launch file instead, although I haven't personally tried that. Good luck.

LaunchImage not work

I have added two launch images to Images.xcassets in XCode5, but both not appear.
It's a iOS 7 game with landscape mode. I have tested it on simulator and iphone/ipad.
Does anyone know why?
Are you sure you have changed the setting for your project so that it points to the Asset Catalog as the source for your Launch Image? If so, you should see the same as in the picture below.

Launch Image on iPad only in PortraitMode (Only device)

I wrote an iPad app and I'm using two different images as launch images.
The iOS simulator shows the proper image during startup but the device always uses the portrait image. I have the right file size (Xcode does NOT give me any warnings)!
I'm using iOS5 Beta 7 with Xcode 4.2
Here is what I did so far:
I double checked all the file sizes
I readded the files to the project,
I build the project from scratch (including 'Clean')
I cleaned the workspace's derived data directory.
I deleted the app completely from the device.
I restarted the device.
I'm running out of ideas.
Any ideas?
In iOS 3.2 and later, an iPad application can provide both landscape and portrait versions of its launch images. Each orientation-specific launch image must include a special modifier string in its filename. The format for orientation-specific launch image filenames is as follows:
basename_usage_specific_modifiers_scale_modifier_device_modifier.png
Application Launch Images.
I solved it. I couldnt find any mistakes. So I removed everything according the launchimage from the project (including entries in info.plist), deleted the derived workspace folder, deleted the app from the device. Inserted the pictures again an set the basename for the image in info.plist. It worked. still don't know why.
Btw: It seems like Xcode 4.2 (and iOS5) changes the sizes of the launch images for the iPad.
iOS < 5: Portrait 768x1004px Landscape: 1024x748px (Source)
iOS = 5: Portrait 768x1024px Landscape: 1024x768px (Source: Image)
I did this:
Rename image to Default-Landscape~ipad.png
In Info.plist register it as
Blockquote
<key>UILaunchImageFile~ipad</key>
<string>${PRODUCT_NAME}/Default.png</string>
Blockquote
and it seems to work...

Resources