Swift compiler error on Xcode 6

2019-09-04 05:32发布

问题:

I have problems with Swift Compiler: I created new project for iOs on latest Xcode 6 and tried to build - recieved 2 errors with ViewController.swift and AppDelegate.swift.

<unknown>:0: error: unable to execute command: Segmentation fault: 11
<unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)
<unknown>:0: error: unable to execute command: Bus error: 10 
<unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)

I can post a full logs if if it is necessary.

What should i do? Thanks.

回答1:

I have faced a similar issue while working with a swift project. I found this on Apple Support Website. It says that this type of error occurs when you tried to access an non-existent/inaccessible memory address. To solve the issue you can quit unused applications or even restart the mac which will probably help you.