6

I've just updated to iOS 9 only to find that multiple images within my app no longer display. And for some reason, all SpriteKit text is yellow (it was white before).

The images in question are 2D sprites, rendered in Sprite Kit, but there doesn't appear to be very much consistency between which display and which don't. Certainly, no backgrounds display, and some images show as white boxes (not with the red X though).

Other sprites are upside down, or flipped in Y, as if coordinate systems have reversed. And particle effects no longer seem to display.

I should have tried the beta a while ago, since this breaks my live app, (which I've now taken down). But has anyone else experienced anything similar? Or might know what's wrong? It seems to me mainly a SpriteKit issue, however, all sprites from texture atlases seem to be working fine.

Update:

I've realised that it's all my sprites that aren't in a texture atlases. I found a forum post here: https://forums.developer.apple.com/thread/13358 that says iOS9 either needs the ".png" extension for every asset name in code, or you can remove and re-add all the assets in the Asset Catalog. Unbelievable!

This post encounters a similar issue, and apparently the solution is to add all atlases to XCAssets, and then set your target to the latest iOS. But then you lose backwards compatibility with iOS8.

Community
  • 1
  • 1
Smikey
  • 8,106
  • 3
  • 46
  • 74
  • 1
    I had the same problem. Apparently, you don't need to "remove and re-add all the assets". You can just create a "Sprite Atlas" in the asset catalog and drag the existing assets into it, and it appears to work. – cc. Oct 01 '15 at 19:49

3 Answers3

3

I have experienced similar issues and have sent a bug report.

Particle files no longer work with negative values. Particles that e.g. travel in a certain direction now just stay in one place. Some of them are rotated at random angles as well.

Textures seem to be broken in existing scene files. Deleting the sprite node, adding a new one to the scene file and setting the image again seems to work.

I dont get how this just gets left to the developers to fix. Its a huge issue that had to have been noticed.

Running the file on iOS 8 works fine, on iOS 9 its totally broken.

I am thinking of rebuilding the scene file in a seperate iOS 9 scene file. and loading the old one for previous versions at run time to at least fix the texture issues.

some_id
  • 29,466
  • 62
  • 182
  • 304
  • At least it's not just me. But I create all my scenes and images programmatically, so can't re-add anything... – Smikey Sep 17 '15 at 11:35
  • It's a real let down when this stuff happens over OS updates. – some_id Sep 17 '15 at 11:37
  • Convince more people to use Sprite Kit by making great products with it that can't be done with cross-platform tools, and then Apple will care more. I am doing that but won't have such a product ready for at least a year. –  Sep 17 '15 at 13:31
  • Well, with openGL and c++, I'm not sure how SpriteKit can out perform it? – some_id Sep 17 '15 at 13:50
  • Really old thread, but did anyone get past the particle issues? I have had the same issues above where some were garbled and others were rotated at random angles ever since iOS9. I really hadn't done much with the game I had in a while, at although it looked uglier, the game still worked ok, but I would like to add an update now, but I cannot get most of my particles to render correctly. This includes both particles from sks files as well as ones that were programmatically created. – DaveB May 15 '17 at 18:51
1

As I posted on another question of mine, it seems the majority of iOS9 issues have been addressed in iOS9.2 beta, and Xcode 7.2 beta.

Better late than never :]

Community
  • 1
  • 1
Smikey
  • 8,106
  • 3
  • 46
  • 74
0

The problem I had under iOS 9 was that sprites loaded from an atlas would appear as flickering, garbled images. I discovered that loading them without specifying a file extension (.png in my case) totally fixed the problem.

skantner
  • 480
  • 4
  • 19