Atlas images wrong size on iPad iOS 9 - sprite-kit

Since upgrading to iOS 9 I have this strange issue with image atlases in my SpriteKit game.
In my game I have a StartScene, a MenuScene and a GameScene.
In all 3 scenes I am using atlases for my enemies so I can animate them. All worked fine on all devices but since upgrading iOS 9 it causes me issues on iPads.
On my iPad when I launch the game the enemies in StartScene are about 3 times as big as they should be. Whats strange is that when I move to menuScene or gameScene the enemies are normal size.
When I tell my game to launch straight into MenuScene I have the same problem, enemies are way to big until I change to another scene.
This happened as soon as I run my game on iOS 9 and even after I upgraded to swift 2 and Xcode 7 I am still having this issue.
Anyone seeing this too, I have no clue what could cause this and how to fix it. Is this just a terrible iOS 9 bug?
Thanks for any help.

I saw there's a new option in the Xcode assets. If you click on the plus sign and select Sprite Kit Asset, you may fix the problem.

This was purely an iOS 9 bug and I believe was fixed. The initial code for my game was not doing any SKScene scaling, I did it all manually for every device, which was a terrible idea. Since asking this question I have change the way my scenes are scaled (AspectFill) so I am not 100% sure if this bug is still occurring.

Related

the picture is superimposed on each other in the unity game what to do?

The picture is superimposed on each other in the unity game what to do? This problem is only on my iPhone 6 and on my friend iPhone 6 plus (ios 12). Everything works well for Android and iPhone 12 (ios 14). the project has an asset with a prototype of the game, my scripts and shader forge. I am sure that someone has already encountered this problem and will be able to suggest in which direction to look for a solution, thanks in advance.
Screenshot from my iPhone 6
I had a problem with Light. just pressed the Clear Baked Data button in Generate Lighting!

Xcode 6 beta: Spritekit editor loses sprite

Been trying out the new spritekit editor in Xcode 6 beta and getting this error - I know it's beta software but I just wanted to check with others to see if anyone else is having this problem or whether I'm just going crazy...
Spritekit editor keeps losing sprites - even the demo spaceship one
Steps to Reproduce:
1. Start new xcode project using spritekit game template
2. Goto sprite kit editor and drag out spaceship onto scene
3. Click Simulate, stop - then spaceship sprite disappears from the scene and is replaced with a cross (see video showing this bug)
http://d.pr/v/XX3t
Expected Results:
Spaceship should stay
Actual Results:
Spaceship and many settings disappeared
Version:
Xcode version 6.0 (6A215l)
OS X 10.9.3 Build 13D65
Anyone else getting this problem or have a workaround?
I've been having problems with the SpriteKit scene editor in Xcode v6.0.1. After I added a node to a scene I wasn't able to select it. I tried Xcode 6.1 GM and the scene editor works a lot better. The sprite selection bug is gone and the scene refreshes in realtime as you edit it. I think your bug will be fixed too in this version.
I filed this as a bug with Apple and they acknowledged this. It appears to have been fixed now as of XCode Version 6.1.1

Swift and Spritekit won't run on device running iOS 7.1

I'm getting a really weird warning when I try to run my Swift project on my device, using Xcode 6.
The device is running iOS 7.1, and my mac is running Mavericks.
I have written a little game in Swift and SpriteKit, and it works in Simulator, but when I try to run it on my device, I get a warning, and my device only shows a black background.
I get the same result when trying to run a fresh SpriteKit project. But if I run a fresh Single Page Application using Swift, it runs normally.
This is the warning I get:
Any suggestions?
I also got this crash and, comparing to the 7.1.1 SDK SpriteKit game template, it appears to be related to loading the scene from an .sks file.
I changed it to use a different initializer like this:
let scene = GameScene(size: skView.bounds.size)
After that, the template project is not crashing anymore on my iPad mini with iOS 7.1.1. However, the plane sprites don't get rendered. You can see the node count (on the bottom right corner) go up with each tap, but the sprites aren't visible. The "Hello, World!" label shows fine, though...
Same behaviour here: default generated SpriteKit game was crashing. Now with the XCode 6 final, it all seems to work just fine, but try to add a particle emitter, and you back to XCode crashing hell. XCode keeps crashing on any particle emitter file saved as .sks file. I found that this is a known bug in XCode 6, that seems to be fixed only in 6.1 beta. See: Can't open particle SKS files
I was getting this problem too, with me it was crashing on the self.addChild(myLabel) on the default scene that loads (the one with Chalkduster "Hello, World!" and spaceships spinning on touch, I think it's called GameScene by default).
Comment out the self.addChild(myLabel) in GameScene and see if that stops the crashes. As a temporary solution I just made the viewDidLoad method load up another scene straight away and the new scene acts as you'd expect. It seems like it's something on Apples end of things, xCode6 is only in beta after all.
Try again with the latest Xcode 6 beta 4. There are still some bugs, but the basic SpriteKit template is now working fine.

Xcode 5/iOS SDK 7.0: UIImageView not displayed correctly

I moved my project to Xcode 5 and then it changed some of my views locations on the screen.
In particular a couple of UIImageViews were given way out of bounds coordinates (something like x=-3000). I corrected their coordinates and since then these views are only displayed on iPhone 5. On iPhone 3-4 they are not displayed at all.
Before moving to Xcode 5 it worked perfectly on all devices.
Has anyone encountered this issue and knows how to fix it?
Are you compiling for iOS7? Maybe you did some conversion to autolayout which did some wrong adjustments.

Adobe Air/Actionscript/Flex for IOS IPhone 4 Camera Rotated 90 degrees

Very strange, not sure if others have experienced this...
Exporting with Flash CS5.5 to iOS devices...
Basically if you use getCamera() and get an IPhone 4's front facing camera, when you export SWF inside the IDE (and uses your laptops camera for testing), output seems fine. However, once exported and put onto IPhone the video from the front facing camera is rotated 90 degrees It's size is also messed up too and not the same as in the IDE sometimes.
This may also occur with IPad too .. Not sure though as I don't have one to test.
This appears to me like an Adobe bug but wanted to see if others have experienced this problem?
I'm writing an app that is trying to parse QR codes and it's extremely annoying to debug this issue! Certainly this wouldn't of slipped by Adobe's team when they tested their APIs?
I just updated to Ios5 Beta5 this morning on my iPad2 and this issue seems to be resolved. The stage now does not rotate coming out of the camera API.
Have same issue
quick fix : when you access your camera and need to show it in stage you certainly be using "flash.media.Video" object, so just rotate the Video instance to fix it.