Segmentation Fault while archiving on Xcode 10
Note:
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:
Usage:
var refreshCells: ResponseBlock<[IndexPath]>?
viewModel.refreshCells = {indexPathList in
self.collectionView.reloadItems(at: indexPathList)
}
I noticed XCODE 10 Archive is on release mode and build, run is on Debug mode.
So I checked the difference between Release and Debug mode configuration
Findings:
Solution:
It Solved my problem, now no longer receiving Segmentation Fault.
Setting the Build system to use the legacy build system worked for me:
File > Workspace Settings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With