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
When compiling targeting My Mac (Mac Catalyst), I get the following errors:
My Mac (Mac Catalyst)
swift-image/Sources/SwiftImage/UIKit.swift:56:12: error: invalid redeclaration of 'init(named:)' public init?(named name: String) { ^ swift-image/Sources/SwiftImage/AppKit.swift:22:12: note: 'init(named:)' previously declared here public init?(named name: NSImage.Name) { ^ swift-image/Sources/SwiftImage/UIKit.swift:68:12: error: invalid redeclaration of 'init(contentsOfFile:)' public init?(contentsOfFile path: String) { ^ swift-image/Sources/SwiftImage/AppKit.swift:27:12: note: 'init(contentsOfFile:)' previously declared here public init?(contentsOfFile path: String) { ^ swift-image/Sources/SwiftImage/UIKit.swift:73:12: error: invalid redeclaration of 'init(data:)' public init?(data: Data) { ^ swift-image/Sources/SwiftImage/AppKit.swift:32:12: note: 'init(data:)' previously declared here public init?(data: Data) { ^ swift-image/Sources/SwiftImage/UIKit.swift:83:17: error: invalid redeclaration of 'pngData()' public func pngData() -> Data? { ^ swift-image/Sources/SwiftImage/AppKit.swift:42:17: note: 'pngData()' previously declared here public func pngData() -> Data? { ^ swift-image/Sources/SwiftImage/UIKit.swift:91:17: error: invalid redeclaration of 'jpegData(compressionQuality:)' public func jpegData(compressionQuality: Double) -> Data? { ^ swift-image/Sources/SwiftImage/AppKit.swift:53:17: note: 'jpegData(compressionQuality:)' previously declared here public func jpegData(compressionQuality: Double) -> Data? { ^ swift-image/Sources/SwiftImage/UIKit.swift:99:17: error: invalid redeclaration of 'data(using:)' public func data(using format: ImageFormat) -> Data? { ^ swift-image/Sources/SwiftImage/AppKit.swift:64:17: note: 'data(using:)' previously declared here public func data(using format: ImageFormat) -> Data? { ^ swift-image/Sources/SwiftImage/UIKit.swift:109:17: error: invalid redeclaration of 'write(to:atomically:format:)' public func write(to url: URL, atomically: Bool, format: ImageFormat) throws { ^ swift-image/Sources/SwiftImage/AppKit.swift:74:17: note: 'write(to:atomically:format:)' previously declared here public func write(to url: URL, atomically: Bool, format: ImageFormat) throws { ^ swift-image/Sources/SwiftImage/UIKit.swift:117:17: error: invalid redeclaration of 'write(toFile:atomically:format:)' public func write<S : StringProtocol>(toFile path: S, atomically: Bool, format: ImageFormat) throws { ^ swift-image/Sources/SwiftImage/AppKit.swift:82:17: note: 'write(toFile:atomically:format:)' previously declared here public func write<S : StringProtocol>(toFile path: S, atomically: Bool, format: ImageFormat) throws { ^
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When compiling targeting
My Mac (Mac Catalyst)
, I get the following errors:The text was updated successfully, but these errors were encountered: