Skip to content
New issue

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

Does not compile for Mac Catalyst #60

Open
KyLeggiero opened this issue Jul 23, 2021 · 0 comments
Open

Does not compile for Mac Catalyst #60

KyLeggiero opened this issue Jul 23, 2021 · 0 comments

Comments

@KyLeggiero
Copy link

KyLeggiero commented Jul 23, 2021

When compiling targeting My Mac (Mac Catalyst), I get the following errors:

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 {
                ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant