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

Fix FormatConverter+Compressed on iOS 18, macOS 15, tvOS 15 and VisionOS 2 #2923

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

1998code
Copy link

Use export(to:as:) instead.

Remark:
The old one was fully deprecated on visionOS 2 and Xcode 16. Failed to fallback.
As a workaround, I used #if !os(visionOS)... to prevent crashes.
Screenshot 2024-06-24 at 2 15 14 PM

Ref Doc:
https://developer.apple.com/documentation/avfoundation/avassetexportsession/4354409-export

@1998code
Copy link
Author

Link to issue: #2921

@1998code 1998code changed the title Fix FormatConverter+Compressed on iOS18, macOS 15, tvOS 15 and VisionOS 2 Fix FormatConverter+Compressed on iOS 18, macOS 15, tvOS 15 and VisionOS 2 Jun 24, 2024
@1998code
Copy link
Author

@aure / @wtholliday Please help review this PR. Thanks.

@warpling
Copy link
Member

warpling commented Jul 1, 2024

Bump :) Thanks for doing this @1998code!

I'm seeing this when compiling using Xcode 16 even for visionOS 1.1 and 1.2?

@1998code
Copy link
Author

1998code commented Jul 1, 2024

Welcome @warpling
I only tested on visionOS 2.0 beta.

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

Successfully merging this pull request may close these issues.

None yet

2 participants