I am going crazy trying to figure this out. I have a game that I have not worked on in some time. I loaded it up into Xcode and update to swift 5 from 4, all went fine. The game uses a number of larger but optimized graphics for background elements (PNGs around 1000x1500 px but optimized to 120k-500k in file size through limited palettes). Since the update the majority of these background elements (which are SKSpriteNode) are appearing as solid white sprites on the screen. A few of the smallest appear correctly. I can't find anyone experiencing the same on stackExchange. Has anyone else experienced this? Anyone know a solve.
Some of the sprites are added dynamically, and some are placed in an SKSceneNode using the scene editor.
If I print the non-working SKSpriteNode I get the following:
name:'(null)' texture:[ 'BG_Building_06.png' (218 x 1939)] position:{0, 0} scale:{1.00, 1.00} size:{218, 1939} anchor:{0.5, 0.5} rotation:0.00
And if I print the SKSpriteNode.texture I get:
Optional( 'BG_Building_06.png' (218 x 1939))
I have also tried halving the size of all the source pngs and that solves for most of them (but is not an ideal solution), so it definitely seems like it is an issue with the dimensions of the sprites. Odd that this worked with no problem in an older version but is now becoming an issue.
I am really going crazy trying to solve this.
Thanks.