我得到一个"命令由于信号而失败:分段错误:11"错误:
<unknown>:0: error: unable to execute command: Segmentation fault: 11
<unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)
我把它缩小到这个级别:
class WSObjectDto<T> : AuthenticationResponseDto {
var Object: T?
}
当注释var Object: T?
时,项目编译得很好。关于我在这里做错了什么导致分段错误的任何线索?
更新: 如果我不从AuthenticationResponseDto继承,它也可以很好地构建。
class AuthenticationResponseDto : NSObject {
var TokenAuthenticated = false
var WSConnectionFailed = false
var WSThrewException = false
var JsonParserException = false
var AppVersionNotSupported = false
}