Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Using AVAsynchronousKeyValueLoading.load() on an AVAssetTrack gives an error

I'm seeing this error while attempting to compile my VisionOS app under Xcode 26. My existing code looks like:

let (naturalSize, formatDescriptions, mediaCharacteristics) = try? await videoTrack.load(.naturalSize, .formatDescriptions, .mediaCharacteristics)

This is now giving a compiler error: Type of expression is ambiguous without a type annotation

I don't see that anything that was changed or deprecated in the latest version. Also loading the properties individually seems to work fine i.e.:

let naturalSize = try? await videoTrack.load(.naturalSize)
let formatDescriptions = try? await videoTrack.load(.formatDescriptions)
let mediaCharacteristics = try? await videoTrack.load(.mediaCharacteristics)
Using AVAsynchronousKeyValueLoading.load() on an AVAssetTrack gives an error
 
 
Q