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

前端 未结 25 2451
耶瑟儿~
耶瑟儿~ 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:20

    I had the same error because of:

     let stringB: String? = stringA.characters.count = 0 ? nil : stringA
    

    Solution was to change it to:

     let stringB: String? = stringA.characters.count > 0 ? stringA : nil
    

    Maybe this helps someone...

提交回复
热议问题