From b2ab39d6742abf797ce9a8953519d86a1a1e775f Mon Sep 17 00:00:00 2001 From: Rahul Raj Date: Tue, 13 Oct 2026 16:02:09 +0200 Subject: [PATCH] fix(ci): run extractAudio off the main actor The static helper inherited main-actor isolation from VideoPreviewView, so loadTracks' non-Sendable result crossed into the main actor and failed on CI's older SDK. It touches no UI state, so make it nonisolated. --- App/VideoPreviewWindow.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/VideoPreviewWindow.swift b/App/VideoPreviewWindow.swift index 1c34e13..357582d 100644 --- a/App/VideoPreviewWindow.swift +++ b/App/VideoPreviewWindow.swift @@ -244,7 +244,7 @@ struct VideoPreviewView: View { } } - private static func extractAudio(from src: URL, to dest: URL) async -> Bool { + nonisolated private static func extractAudio(from src: URL, to dest: URL) async -> Bool { let asset = AVURLAsset(url: src) guard let tracks = try? await asset.loadTracks(withMediaType: .audio), !tracks.isEmpty else { return false } try? FileManager.default.removeItem(at: dest)