Xcode 7 compile error : “Command failed due to signal: Segmentation fault: 11”

前端 未结 25 2359
耶瑟儿~
耶瑟儿~ 2020-12-01 05:37

Yesterday I installed the official Xcode 7 and when I tried to open one of my Swift projects, appeared an alert saying that the new Xcode version wants to update my swift co

25条回答
  •  失恋的感觉
    2020-12-01 06:13

    I had the same problem. Xcode 7.2.1. And selecting the error and expanding the logs I could find the compile error buried among the long paths.

    See the line after the "1." in the attached image. It has a reference to a file and a line. Looking at it I could find the error.

    In my case, I had an invalid enumeration assignment, I moved some logic from a struct to an enumeration and injected this error:

    I had:

    return .Success(dict: dict)
    

    I should have:

    return .Success(dict)
    

提交回复
热议问题