Xcode 10.1 and SceneKit issues?

I upgraded to Xcode 10.1 and now I'm having full system freezes upon compiling (no cursor movement. no app switching. It occasionally crashes to the Mac login screen, but often I have to force restart)


After working on multiple projects in 10.1, I believe i might have it nailed down to a SceneKit issue? Those are the only projects that are freezing up like this. I've even recreated one of them from scratch, and the second I added SCNViews, things got weird. And when I say "weird", it's because 1 out of 20 times it actually compiled. Very random and difficult to troubleshoot.


Anyway - curious if anyone else has had this problem. If so, hopefully we can all figure it out


(As for hardware, I'm on a 2017 Macbook Pro 13", with 16 GB RAM. I don't think that's the problem, as it was working great in Xcode 10.0)

After some trial and error, I have learned a little more and believe this may be a bug with Storyboards and SceneKit in Xcode 10.1. Looking at my build tasks, I would freeze/crash when Xcode hit the "Compile Storyboard Main file...." step. (My Storyboard wasn't huge either - ~10 View Controllers, three of which contained an SCNView. Each SCNView was loading a single low-poly, 3D model)


Realizing this, I went through my Storyboard and removed all SCNViews (and their connected Outlets), and then programatically created them instead. When I do this, the "Compile Storyboard..." build task completes and my app builds.


Another side note: my unstableness began after adding the 3rd SCNView to my storyboards. I was able to have a couple in there, without issue. I'm going to keep testing and see if I can definitively root out of the issue. If so, I'll post back.

Hi there, in a similar vein ..


Prior to upgrading to Xcode 10 and Mojave, my models worked just fine in SceneKit.


Since upgrading, I've noticed issues with the following:

  • DAE file from Blender immediately crashes Xcode if the file contains armatures/any skinning data.
  • On old files that previously worked just fine, my normal maps keep glitching everything I move around my model in the editor. Specifically, it seems like the maps keep flipping in the x axis every time the frame is rendered. It is absolutely unusable.
  • My DAE files DO NOT cause Xcode to crash if I remove the skinning data and have just plain geometry in there.
  • If I create a clean SCN file in Xcode and drag and drop my weird DAE files into that scene, they show up and I can use them normally for a second, but if I try moving any of the armature joints, the model implodes into itself.
  • I have older projects made with a previous Xcode. The models were constructed in Blender and exported with armatures. When I open these up in Xcode 10.1 the .dae files display fine. It suggests to me that the problem is actually in the importing code for Xcode 10.1.


Clearly there is some issue with skinning, but I haven't changed my workflow in any way to warrant this, so I believe the problem to be with Xcode, I think.

In fairness a Mojave update the next day seems to have solved all my issues.

Xcode 10.1 and SceneKit issues?
 
 
Q