We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift 4.2, Xcode 10 beta 1.
md5: 6729a179f83c8fc400b8454a146e0877
Issue Description:
import Foundation public enum FileAccessMode { case read case write case update } extension FileHandle { public convenience init(forURL url: URL, accessMode mode: FileAccessMode) throws { switch mode { case .read: try self.init(forReadingFrom: url) case .write: try self.init(forWritingTo: url) case .update: try self.init(forUpdating: url) } } } try! FileHandle(forReadingFrom: URL(fileURLWithPath: "/Applications/Chess.app/Contents/MacOS/Chess")) // does not crash try! FileHandle(forURL: URL(fileURLWithPath: "/Applications/Chess.app/Contents/MacOS/Chess"), accessMode: .read) // crashes with EXC_GUARD
Crashes unpredictably. Run multiple times to reproduce.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Swift 4.2, Xcode 10 beta 1.
Additional Detail from JIRA
md5: 6729a179f83c8fc400b8454a146e0877
Issue Description:
Crashes unpredictably. Run multiple times to reproduce.
The text was updated successfully, but these errors were encountered: