7 Replies
      Latest reply on Oct 10, 2018 8:18 AM by Hyperi0n
      SaycoD Level 1 Level 1 (0 points)

        Hey Everyone,

         

        I am having a strange issue, just encountered and I am not sure what is going on.

         

        I created 2 new button sprites using Illustrator, exported them as png files, and loaded them into image.assets. Up until this point, everything works great, I can see the images fine in the assets file.

         

        Now, I go to my Scene file, .sks, add an SKSpriteNode, go to load the new button texture, and bam Xcode crashes. This happens every time, for both png files.

         

        Anyone have an idea what is going on? I have latest version of Xcode, Macbook Pro 2016, and latest OSX updates.

         

        Thanks!

        • Re: Xcode Crashes When Loading Sprite
          QuinceyMorris Level 8 Level 8 (6,020 points)

          This appears to be a bug that others have noticed: https://forums.developer.apple.com/thread/96333

           

          Xcode 9.3b2 arrived today. It might be worth testing in that version to see if the bug's been fixed, otherwise submit a bug report and (as a workaround, I guess) apply the texture at runtime.

          • Re: Xcode Crashes When Loading Sprite
            MacDev69 Level 1 Level 1 (0 points)

            I had no issues until last week when suddenly XCode started crashing as soon as you drag a texure in Scene Editor setting up tilemaps.

             

            I don't know the cause but can only link it to the hardware.

             

            I have reinstalled my MacBook Pro 13" 2017 with OS X Sierra, OS X High Sierra and the beta of OS X Mojave. I have tried the respective XCode on each OS X, clean installs with just the OS and XCode but same issue, crashes instantly when adding texture to sks file in Scene Editor.

             

            It crashes with all new projects and all existing projects.

             

            Exsiting projects work perfectly well on my MacBook Pro 15" 2014 so I can only summise the issue is with my new MacBook 13" and not the projects or XCode, is everyone else having issues with the 13" MacBook Pro? or is it more widespread than this?

             

            Spent hours reinstalling but have found no solution yet.

              • Re: Xcode Crashes When Loading Sprite
                from key Level 1 Level 1 (0 points)

                I've had this problem for a long time, I've still not figured out what causes this problem to happen.  BUT, I have a work around! 

                     1. drag an empty sprite node to the scene.

                     2. drag a second empty sprite node  to the scene, now assign your texture to this object, it shouldn't crash.

                     3. delete the sprite node from step 1. it helps if  you chant something, the Apple gods have now been APPeased.

                 

                hope this helps, it works well enough for me.

                • Re: Xcode Crashes When Loading Sprite
                  Hyperi0n Level 1 Level 1 (0 points)

                  Hi, i  have the same Problem with my MacBook Pro 13" 2016 OS X Mojave. Would love to hear some if there is a solution to this Problem.

                • Re: Xcode Crashes When Loading Sprite
                  ZappBdot Level 1 Level 1 (0 points)

                  Same problem here with Xcode 10, but got a workaround. By naming the sprite node "before" i had the texture assigned to it Xcode wont crash and all works as it should.