Skip to content

Compile for Xcode 26 via Swift 6#34

Open
nsarno-lucid wants to merge 2 commits intomainfrom
compile_for_xcode26
Open

Compile for Xcode 26 via Swift 6#34
nsarno-lucid wants to merge 2 commits intomainfrom
compile_for_xcode26

Conversation

@nsarno-lucid
Copy link

  • A few actor isolation issues cause any project in Xcode 26 to not compile
  • I did not test it myself but changes are minimal. We have this package compiling in Imprint but not actively used. We will be using it again in ~1 month and I can QA it then if not merged by then.

nsarno-lucid and others added 2 commits October 28, 2025 11:43
- Wrap onPlayerTimeChanged call in MainActor.assumeIsolated since queue: .main guarantees main thread execution
- Remove unnecessary await keywords from synchronous updateNowPlayingForSeeking() calls

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Mark play() and pause() as nonisolated with Task dispatch to MainActor to properly handle:
- Calls from any thread (main or background)
- System controls (MPRemoteCommandCenter) that may execute on non-main threads
- MainActor-isolated properties (autoPlay) and methods (beginPlayerObservationIfNeeded)

Ensures operations execute in correct order on MainActor while maintaining compatibility with AVPlayer's non-isolated signature.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant