Skip to content

Xcode 27.2 emits six compiler warnings in AetherEngine 7.76.0 #1140

Backlog

Description

@YangHanqing

I upgraded my app to AetherEngine 7.76.0 and still see two warnings about times in FrameUpscaler.swift. There are four other warnings in this release. The builds succeed, and I haven't seen a playback problem tied to them.

I reproduced this with Xcode 27.2 (27B52) on an Apple silicon Mac running macOS 27.2.1. The engine is at 506d3fc1467e6653320b1071b194c8c19420866f, with the default package traits.

Steps to reproduce

  1. Add AetherEngine 7.76.0 to an app and build with fresh DerivedData for a generic tvOS device in Debug.
  2. Check the warnings from the AetherEngine target.

I get the same six warnings in iOS and visionOS device builds. The arm64 simulator builds show the four subtitle/audio warnings. The upscaler code is compiled out there.

Sources/AetherEngine/Video/FrameUpscaler.swift:1422:29: warning: reference to captured var 'times' in concurrently-executing code [#SendableClosureCaptures]
Sources/AetherEngine/Video/FrameUpscaler.swift:1459:87: warning: reference to captured var 'times' in concurrently-executing code [#SendableClosureCaptures]
Sources/AetherEngine/AetherEngine+Subtitles.swift:588:17: warning: initialization of immutable value 'plan' was never used; consider replacing with assignment to '_' or removing it [#NoUsage]
Sources/AetherEngine/AetherEngine+Subtitles.swift:594:17: warning: initialization of immutable value 'batchEnd' was never used; consider replacing with assignment to '_' or removing it [#NoUsage]
Sources/AetherEngine/AetherEngine+Subtitles.swift:3441:37: warning: 'weak' ownership of capture 'self' differs from implicitly-captured strong reference in outer scope [#ImplicitStrongCapture]
Sources/AetherEngine/Audio/Shaping/BinauralRenderer.swift:152:61: warning: forming 'UnsafeRawPointer' to a variable of type 'T'; this is likely incorrect because 'T' may contain an object reference.

Activity

  1. added
    bug
    on Nov 27, 2026
  2. quint-aether commented on Nov 27, 2026

    @quint-aether

    This looks related to #1062 (closed), which reported six Xcode 27.2 warnings in Apple app builds. The code at the lines you quote in FrameUpscaler.swift and AetherEngine+Subtitles.swift is unchanged on main, so these warnings probably still show up there too. Your report already has the toolchain, commit, traits and full warning list, so nothing more is needed to reproduce it.

    Automated triage by Quint (Claude). A maintainer reads every issue and will follow up.

  3. superuser404notfound commented on Nov 27, 2026

    @superuser404notfound
    Owner

    Thanks again for the exact list, it made this quick. All six are fixed on main in 579df08:

    • FrameUpscaler.swift: the ML pass callbacks now get a constant copy of the stage times instead of capturing the function's var.
    • AetherEngine+Subtitles.swift: the unused plan and batchEnd are gone, and isCurrent captures self plainly. The enclosing task already holds it, so the weak bought nothing.
    • BinauralRenderer.swift: the property setter passes its value through withUnsafePointer instead of &v.

    While checking I also built for macOS, which turned up a seventh one in PictureInPictureAreaTracker.swift that I had left in at #1062 because the 26 SDK still needs it. That one is fixed too, in a way both SDKs accept. Fresh Debug builds for tvOS, iOS, visionOS and macOS devices under Xcode 27.2 (27B52) now show no warnings from the engine, and the Xcode 26.3 build still passes.

    Nothing changes at runtime. It isn't released yet. It goes out with the next version, and I now build every release for warnings before tagging, so this shouldn't come back. I'll leave the issue open until you've had a chance to check it on your side.

  4. superuser404notfound commented on Nov 28, 2026

    @superuser404notfound
    Owner

    Released in 7.77.0 (cda1e97). Built with Xcode 27.2 on tvOS, iOS, visionOS and macOS before the tag, with no warnings from the engine's own sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions