Closed samanthamjohn closed 5 years ago
Ah, I see this is the same issue as https://github.com/1024jp/GzipSwift/issues/34. The title is misleading because it only refers to Swift 5 compatibility, whereas the library seems to just be broken in Xcode 10.2 Also, it's a bug, not an enhancement!
Using Xcode 10.2 Swift 4.2
I made a small test project to demonstrate the issue (copying in the Gzip extension from master) here.
it seems that the second iteration of this loop in the
gzipped
function causes the crash:I'm not super familiar with the stream APIs so I'm not exactly sure what's going on. Thank you!