Swift compiler segmentation fault when building

后端 未结 30 2606
南旧
南旧 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:03

    As others wrote above, for me this happened when I'm using an extension over a protocol but the signature of methods in the protocol don't match the implementations in an extension.

    In my case, I had added a new parameter to the implementation (in the extension) but forgot to also add it to the method's signature in the protocol.

提交回复
热议问题