Swift compiler segmentation fault when building

后端 未结 30 2669
南旧
南旧 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 04:39

    In my case I had declared a struct inside a func. Moving the struct to class level solved the issue.

    Now that I write this I remember having had issues with struct inside funcs before. It was something else than the segmentation fault (which seems to become notorious with the Swift 1.2 beta). OMG Apple, what are you doing there?

提交回复
热议问题