Command failed due to signal: Abort trap: 6

前端 未结 30 2601
暖寄归人
暖寄归人 2020-12-01 08:56

Since Xcode 7 and Swift 2.0, I get the error above, like in the screenshot shown here:

\"screenshot

30条回答
  •  天命终不由人
    2020-12-01 09:45

    This is what caused the error for me.

    Before:

        for (key,value) in hash{
            count += value.count
        }
    

    After:

        for (_,value) in hash{
            count += value.count
        }
    

    It didn't like it that key was never being used anywhere. I am not sure why it should cause the build to fail though.

提交回复
热议问题