You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am exploring taking an existing iOS app & building it for visionOS to be able to add specific features like RealityKit.
When I build for "Apple Vision Pro" using a Swift package, I get the following error in func load(fromAudioURL audioURL: URL, completionHandler::
SourcePackages/checkouts/FDWaveformView/Sources/FDWaveformView/FDAudioContext.swift:32:38: error: 'tracks(withMediaType:)' is unavailable in visionOS
guard let assetTrack = asset.tracks(withMediaType: AVMediaType.audio).first else {
^~~~~~
AVFoundation.AVAsset:17:15: note: 'tracks(withMediaType:)' has been explicitly marked unavailable here
open func tracks(withMediaType mediaType: AVMediaType) -> [AVAssetTrack]
Building for "Apple Vision Pro(Designed for iPad)" still works.
The text was updated successfully, but these errors were encountered:
Hi,
I am exploring taking an existing iOS app & building it for visionOS to be able to add specific features like RealityKit.
When I build for "Apple Vision Pro" using a Swift package, I get the following error in
func load(fromAudioURL audioURL: URL, completionHandler:
:Building for "Apple Vision Pro(Designed for iPad)" still works.
The text was updated successfully, but these errors were encountered: