jamf / Notifier

Swift project which can post macOS alert or banner notifications on 10.15+ clients
Apache License 2.0
125 stars 22 forks source link

Swift Compile Error #17

Closed sphen13 closed 2 years ago

sphen13 commented 3 years ago

Was attempting to build with my signing cert and new icons but ran in to a swift compile error. On macOS 12.0.1 - M1 - Xcode 13.1

SwiftPM - Sources - Basic - Await.swift - await

Line 18:

Value of type '(@escaping (Result<T, ErrorType>) -> Void) -> Void' has no member 'dematerialize'

code block referenced:

public func await<T, ErrorType>(_ body: (@escaping (Result<T, ErrorType>) -> Void) -> Void) throws -> T {
    return try await(body).dematerialize()
}

looks to be a dependency issue?

sphen13 commented 3 years ago

fyi i was able to build the same unchanged project on Xcode 12.4 (macOS 10.15)