Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding support for visionOS? #156

Open
ManjitBedi opened this issue Jul 19, 2024 · 2 comments
Open

adding support for visionOS? #156

ManjitBedi opened this issue Jul 19, 2024 · 2 comments

Comments

@ManjitBedi
Copy link

ManjitBedi commented Jul 19, 2024

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::

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.

@fulldecent
Copy link
Owner

Hmm, I don't see this as deprecated. This seems like a framework that should be available across macOS/iOS/visionOS.

@ManjitBedi
Copy link
Author

ManjitBedi commented Aug 12, 2024

Hello, here is a screen grab for the Apple developer docs:

Screenshot 2024-08-12 at 10 23 16 AM

https://developer.apple.com/documentation/avfoundation/avfragmentedasset/1387253-tracks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants