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

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

    I was trying to make use of ?? in a clever way when this happened to me.

    I guess swift does not like when you try to chain multiple ?? together as in, though the syntax highlighter doesn't throw any error:

    let ageNum = self.ageValue > 0 ?? self.birthday?.ageFromDate() ?? 0
    

提交回复
热议问题