Skip to content

v2.2.0 binary targets macOS 26 despite declaring macOS 13 #2

Description

@122yjs

Bug description

The v2.2.0 release cannot be launched on macOS 15 Sequoia even though the app's Info.plist declares macOS 13.0 as the minimum version.

macOS displays a compatibility message saying that this version of KeepAgentAwake.app cannot be used with the installed macOS version.

Environment

  • macOS 15.7.7 Sequoia (24G720)
  • Apple Silicon (arm64)
  • KeepAgentAwake v2.2.0 DMG release

Release binary inspection

The app bundle declares:

LSMinimumSystemVersion = 13.0

But the Mach-O executable was built with:

LC_BUILD_VERSION
  platform macOS
  minos 26.0
  sdk 26.5

Command used:

xcrun vtool -show-build \
  KeepAgentAwake.app/Contents/MacOS/KeepAgentAwake

Because the binary deployment target is macOS 26.0, LaunchServices correctly refuses to run it on Sequoia despite the conflicting Info.plist value.

Source-build issue on Sequoia

Building the unmodified v2.2.0 source on the same Mac also stops during icon generation:

build/AppIcon.iconset:Invalid Iconset.

This comes from the iconutil -c icns step in build.sh.

Expected behavior

  • The built executable's deployment target should match LSMinimumSystemVersion (13.0).
  • A source build should complete on a supported macOS release.
  • The resulting app should have a valid ad-hoc signature for local distribution.

Proposed fix

Read the minimum version from Info.plist and pass it explicitly to swiftc:

DEPLOYMENT_TARGET=$(/usr/libexec/PlistBuddy \
  -c 'Print :LSMinimumSystemVersion' Info.plist)
TARGET_ARCH=$(uname -m)

swiftc \
  -target "$TARGET_ARCH-apple-macos$DEPLOYMENT_TARGET" \
  ...

Also verify after each build that the Mach-O minos value matches the plist value. I have a tested fix on macOS 15.7.7 and will open a draft PR linked to this issue.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions