Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 10.1 freezes while compiling

Tags:

xcode

macos

I updated Xcode to 10.1 version, but every time I run or compile my project the whole mac hangs and freezes, which makes me shutdown iMac or mac logs out automatically! Why does this happen? I literally cannot work or build and run anything! I updated java, macOS, closing all apps, but still freezes all the time. have you any solution?

like image 781
iOS.Lover Avatar asked Nov 03 '18 11:11

iOS.Lover


1 Answers

I was having the exact problem, so I watched my build tasks click by. It turns out I was suffering a full system freeze during the

Compile Storyboard file...

step of my Main storyboard file. (My Storyboard wasn't terribly large. ~10 View Controllers)

I recreated my project and, for me, the instability came about when I began adding a couple SCNViews. When I removed them all, and programmatically created those views, my Storyboard compile step passed and my app launched.

I'm not sure it's specifically SceneKit causing issues, but something was causing my Storyboard to fail compilation. It's worth a start to try there: backup the project, delete everything in the Storyboard, and see if you're still crashing. (This definitely wasn't happening under 10.0)

like image 76
G Purcell Avatar answered Oct 03 '22 11:10

G Purcell