
注意:
> Xcode 10构建并运行在设备和模拟器上正常工作
在Xcode 9.4中,归档,构建和运行也很好
我的代码:
typealias ResponseBlock<T> = (_ sender: T) -> VoID
我在整个项目中使用它,如:
var callback: ResponseBlock<AnyObject>?
在Xcode 10上存档时出错:
>生成Objective-C标头时
>打印时…………….
>打印类型’ResponseBlock< [IndexPath]>‘ (在…..处声明)RangeText =“typealias ResponseBlock =(_ sender:T) – > V”)
>打印类型'(T)’
错误:分段错误:11
用法:
var refreshCells: ResponseBlock<[IndexPath]>?viewmodel.refreshCells = {indexPathList in self.collectionVIEw.reloadItems(at: indexPathList)}解决方法 我注意到XCODE 10 Archive处于发布模式并且构建,运行处于调试模式. 所以我检查了Release和DeBUG模式配置之间的区别
发现:
解:
它解决了我的问题,现在不再收到Segmentation Fault.
总结以上是内存溢出为你收集整理的ios – Xcode 10 Generics typealias Segmentation Fault 11归档时全部内容,希望文章能够帮你解决ios – Xcode 10 Generics typealias Segmentation Fault 11归档时所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)