I have a Mac application project that builds and runs in XCode 10.2.1 using Swift 4. When I try to convert it to Swift 5, the process starts, and then at about step 32 (of about 158), the machine locks up to the point where it either reboots, or I have to force it to shut down. What should I be looking for to stop this from happening?
By “lock up” I mean everything stops. The spinning wheel graphic in XCode that indicates that things are going on stops spinning. The mouse pointer freezes. The keyboard is non-responsive. Any on screen animations stop (eg if the pointer is the Spinning Pizza of Death - that stops spinning) If I leave it long enough, it may reboots - two chimes.
I have tried converting another project, and that converts without any problems. So I am going to assume that there is something specific to the project I have that’s the problem
I have tried this on two machines - my 2012 Mac Mini with 16GB RAM, and a MBP which is a couple of years newer with 8GB RAM. Same problem on both.
I have also tried setting the Swift version from 4.0 to 4.2 in the project. The same thing happens - the machine processes the change and locks up during the process. However, this time before locking up I get the Force Quit dialog window, and a message telling me that all available application memory has been used up, and I should force quit applications. At this point, the machine freezes, so I can’t do that.
I’ve tried a few searches on the subject, but have found nothing that describes my problem.
I have no code to show because I don’t know what code is causing this (if anything - it could be a bug in XCode of course). It could be a setting in the Xcode project file.
Desired results - Xcode converts my project from Swift 4 to Swift 5.
Actual results - Xcode locks up the machine completely. I have to force power down my Mac and reboot.
So the question is - what should I be looking for to get around this issue? Has anyone else had this problem? What can I try to resolve this? The freezing and rebooting is a bit alarming.