Segmentation Fault while archiving on Xcode 10
Note:
- Xcode 10 build and run on devices and simulator working fine and in Xcode 9.4 also archiving, build, and run working fine
My code:
typealias ResponseBlock<T> = (_ sender: T) -> Void
I am using this in all over the project like:
var callback: ResponseBlock<AnyObject>?
Error while archiving on Xcode 10:
- While generating Objective-C header
- While printing ................
- While printing type 'ResponseBlock<[IndexPath]>' (declared at.....] RangeText="typealias ResponseBlock = (_ sender: T) -> V")
- While printing type '(T)' error: Segmentation fault: 11
Usage:
var refreshCells: ResponseBlock<[IndexPath]>?
viewModel.refreshCells = {indexPathList in
self.collectionView.reloadItems(at: indexPathList)
}


