Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9.4 : unexpected service error: The Xcode build system has crashed

I’m getting strange error while building project in Xcode 9.4

Build system information - unexpected service error: The Xcode build system has crashed. Please close and reopen your workspace.

Screenshot attached

I tried Xcode quit and reopen but that didn’t worked. Any solution?

like image 567
Jayprakash Dubey Avatar asked Jun 15 '18 07:06

Jayprakash Dubey


2 Answers

Please clear derived data folder (located at ~/Library/Developer/Xcode/DerivedData) and restart the Xcode project.

like image 154
Hrishikesh Devhare Avatar answered Oct 21 '22 07:10

Hrishikesh Devhare


This error usually happens between Xcode major versions. Apple usually claim their new build system is ** times faster than their previous version. If you see this error(I see this on changing Xcode9 to Xcode10 beta), you can always change it to the legacy build system. Here is how you can do this:

  1. Open 'workspace settings'( it is now changed to 'Project Settings' if you are using Xcode10 or later) in the File Menu enter image description here
  2. Change build system to 'legacy' enter image description here
like image 45
kakaiikaka Avatar answered Oct 21 '22 07:10

kakaiikaka