Swift compiler segmentation fault when building

后端 未结 30 2668
南旧
南旧 2020-11-29 03:59

Adding a (convenient) computed height property to UIView in my UIViewExtension.swift file is causing the Swift compiler to segfault...

30条回答
  •  醉话见心
    2020-11-29 05:05

    For me the following caused a segfault while type is an optional:

    switch type {
        case .aType:
            // Do Something
        default:
            break
    }
    

    and this solved it:

    switch type {
        case .Some(.aType):
            // Do Something
        default:
            break
    }
    

提交回复
热议问题