Compile Swift Module 'FileKit' (33 sources) FileKit-4.0.0/Sources/TextFile.swift:33:22: error: type 'String' does not conform to protocol 'Readable' open class TextFile: File { ^ FileKit-4.0.0/Sources/Path.swift:1074:17: warning: 'ExpressibleByStringInterpolation' is deprecated: it will be replaced or redesigned in Swift 4.0. Instead of conforming to 'ExpressibleByStringInterpolation', consider adding an 'init(_:String)' extension Path: ExpressibleByStringInterpolation { ^ FileKit-4.0.0/Sources/TextFile.swift:33:22: error: type 'String' does not conform to protocol 'Readable' open class TextFile: File { ^ FileKit-4.0.0/Sources/DispatchEvent.swift:17:23: error: 'Delete' used within its own type public static let Delete = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.delete.rawValue) ^ FileKit-4.0.0/Sources/DispatchEvent.swift:17:23: error: could not infer type for 'Delete' public static let Delete = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.delete.rawValue) ^ FileKit-4.0.0/Sources/DispatchEvent.swift:20:23: error: 'Write' used within its own type public static let Write = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.write.rawValue) ^ FileKit-4.0.0/Sources/DispatchEvent.swift:20:23: error: could not infer type for 'Write' public static let Write = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.write.rawValue) ^ FileKit-4.0.0/Sources/DispatchEvent.swift:23:23: error: 'Extend' used within its own type public static let Extend = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.extend.rawValue) ^ FileKit-4.0.0/Sources/DispatchEvent.swift:23:23: error: could not infer type for 'Extend' public static let Extend = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.extend.rawValue) ^ FileKit-4.0.0/Sources/DispatchEvent.swift:26:23: error: 'Attribute' used within its own type public static let Attribute = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.attrib.rawValue) ^ FileKit-4.0.0/Sources/DispatchEvent.swift:26:23: error: could not infer type for 'Attribute' public static let Attribute = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.attrib.rawValue) ^ FileKit-4.0.0/Sources/DispatchEvent.swift:29:23: error: 'Link' used within its own type public static let Link = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.link.rawValue) ^ FileKit-4.0.0/Sources/DispatchEvent.swift:29:23: error: could not infer type for 'Link' public static let Link = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.link.rawValue) ^ FileKit-4.0.0/Sources/DispatchEvent.swift:32:23: error: 'Rename' used within its own type public static let Rename = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.rename.rawValue) ^ FileKit-4.0.0/Sources/DispatchEvent.swift:32:23: error: could not infer type for 'Rename' public static let Rename = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.rename.rawValue) ^ FileKit-4.0.0/Sources/ImageFile.swift:33:35: error: use of undeclared type 'Image' public typealias ImageFile = File ^~~~~ FileKit-4.0.0/Sources/DispatchEvent.swift:35:67: error: use of unresolved identifier 'DispatchSource' public static let Revoke = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.revoke.rawValue) ^~~~~~~~~~~~~~ FileKit-4.0.0/Sources/DispatchEvent.swift:32:67: error: use of unresolved identifier 'DispatchSource' public static let Rename = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.rename.rawValue) ^~~~~~~~~~~~~~ FileKit-4.0.0/Sources/DispatchEvent.swift:29:65: error: use of unresolved identifier 'DispatchSource' public static let Link = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.link.rawValue) ^~~~~~~~~~~~~~ FileKit-4.0.0/Sources/DispatchEvent.swift:26:70: error: use of unresolved identifier 'DispatchSource' public static let Attribute = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.attrib.rawValue) ^~~~~~~~~~~~~~ FileKit-4.0.0/Sources/DispatchEvent.swift:23:67: error: use of unresolved identifier 'DispatchSource' public static let Extend = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.extend.rawValue) ^~~~~~~~~~~~~~ FileKit-4.0.0/Sources/DispatchEvent.swift:20:66: error: use of unresolved identifier 'DispatchSource' public static let Write = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.write.rawValue) ^~~~~~~~~~~~~~ FileKit-4.0.0/Sources/DispatchEvent.swift:17:67: error: use of unresolved identifier 'DispatchSource' public static let Delete = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.delete.rawValue) ^~~~~~~~~~~~~~ FileKit-4.0.0/Sources/TextFile.swift:33:22: error: type 'String' does not conform to protocol 'Readable' open class TextFile: File { ^ FileKit-4.0.0/Sources/Path.swift:1074:17: warning: 'ExpressibleByStringInterpolation' is deprecated: it will be replaced or redesigned in Swift 4.0. Instead of conforming to 'ExpressibleByStringInterpolation', consider adding an 'init(_:String)' extension Path: ExpressibleByStringInterpolation { ^ FileKit-4.0.0/Sources/TextFile.swift:33:22: error: type 'String' does not conform to protocol 'Readable' open class TextFile: File { ^ FileKit-4.0.0/Sources/TextFile.swift:41:21: error: initializer does not override a designated initializer from its superclass public override init(path: Path) { ~~~~~~~~ ^ FileKit-4.0.0/Sources/TextFile.swift:65:24: error: method does not override any method from its superclass open override func write(_ data: String, atomically useAuxiliaryFile: Bool) throws { ~~~~~~~~ ^ FileKit-4.0.0/Sources/TextFile.swift:43:9: error: 'super' members cannot be referenced in a root class super.init(path: path) ^ FileKit-4.0.0/Sources/TextFile.swift:52:9: error: 'super' members cannot be referenced in a root class super.init(path: path) ^ FileKit-4.0.0/Sources/ImageFile.swift:33:35: error: use of undeclared type 'Image' public typealias ImageFile = File ^~~~~ FileKit-4.0.0/Sources/TextFile.swift:67:36: error: use of unresolved identifier 'path' try data.write(toFile: path._safeRawValue, atomically: useAuxiliaryFile, encoding: encoding) ^~~~ FileKit-4.0.0/Sources/Path.swift:37:15: note: did you mean 'Path'? public struct Path { ^ FileKit-4.0.0/Sources/TextFile.swift:69:54: error: use of unresolved identifier 'path' throw FileKitError.writeToFileFail(path: path) ^~~~ FileKit-4.0.0/Sources/Path.swift:37:15: note: did you mean 'Path'? public struct Path { ^ FileKit-4.0.0/Sources/TextFile.swift:89:23: error: value of type 'TextFile' has no member 'path' path: self.path, ^~~~ ~~~~ FileKit-4.0.0/Sources/Path.swift:1074:17: warning: 'ExpressibleByStringInterpolation' is deprecated: it will be replaced or redesigned in Swift 4.0. Instead of conforming to 'ExpressibleByStringInterpolation', consider adding an 'init(_:String)' extension Path: ExpressibleByStringInterpolation { ^ FileKit-4.0.0/Sources/TextFile.swift:183:47: error: cannot convert value of type 'NSMutableData!' to type 'Data' in coercion let line = NSString(data: buffer as Data, encoding: encoding.rawValue) ^~~~~~ FileKit-4.0.0/Sources/TextFile.swift:202:21: warning: cast from 'NSString?' to unrelated type 'String' always fails return line as? String ~~~~ ^ ~~~~~~ FileKit-4.0.0/Sources/TextFile.swift:33:22: error: type 'String' does not conform to protocol 'Readable' open class TextFile: File { ^ FileKit-4.0.0/Sources/TextFile.swift:33:22: error: type 'String' does not conform to protocol 'Readable' open class TextFile: File { ^ FileKit-4.0.0/Sources/Path.swift:1074:17: warning: 'ExpressibleByStringInterpolation' is deprecated: it will be replaced or redesigned in Swift 4.0. Instead of conforming to 'ExpressibleByStringInterpolation', consider adding an 'init(_:String)' extension Path: ExpressibleByStringInterpolation { ^ FileKit-4.0.0/Sources/TextFile.swift:33:22: error: type 'String' does not conform to protocol 'Readable' open class TextFile: File { ^ FileKit-4.0.0/Sources/Path.swift:1074:17: warning: 'ExpressibleByStringInterpolation' is deprecated: it will be replaced or redesigned in Swift 4.0. Instead of conforming to 'ExpressibleByStringInterpolation', consider adding an 'init(_:String)' extension Path: ExpressibleByStringInterpolation { ^ FileKit-4.0.0/Sources/TextFile.swift:33:22: error: type 'String' does not conform to protocol 'Readable' open class TextFile: File { ^