Nuke icon indicating copy to clipboard operation
Nuke copied to clipboard

Impossible to build on Xcode 26.0 beta

Open exentrich opened this issue 5 months ago • 1 comments

Thank you for creating such a great library! I'm currently preparing my app for iOS 26, but I’m unable to build it because Xcode is failing on a specific line of Nuke’s code.

It seems to be a bug in the Swift compiler itself, but I wonder if @kean might have any ideas on how to adjust the Nuke source to make it compile?

Image
//Sources/Nuke/ImageTask.swift
public var response: ImageResponse {
    get async throws {
        try await withTaskCancellationHandler {
            try await task.value
        } onCancel: {
            cancel()
        }
    }
}

exentrich avatar Jul 24 '25 11:07 exentrich

I had success on a fork by marking response as nonisolated. No other changes necessary.

kylehughes avatar Sep 05 '25 18:09 kylehughes