Skip to content

Package.swift: aetherctl product blocks tvOS/iOS consumers (uses Foundation.Process) #5

Closed

Description

@hp561

Summary

aetherctl/main.swift uses Foundation.Process (line 236), which is unavailable on tvOS and iOS. The Package.swift declares aetherctl as a product without a platform restriction, so SPM consumers building for tvOS/iOS get pulled into compiling it and the build fails with:

SourcePackages/checkouts/AetherEngine/Sources/aetherctl/main.swift:236:19: error: cannot find 'Process' in scope
    let process = Process()
                  ^~~~~~~

Reproduction

Add AetherEngine as a Swift Package dependency to a tvOS or iOS application target, pinned to any tagged commit. Build for tvOS Simulator or tvOS Device. Build fails as above.

Fix

Removing the aetherctl product from the products: list (but keeping the target itself for swift build on macOS) fixes consumer builds without losing the CLI for upstream development. A clean fix is here:

https://github.com/hp561/AetherEngine/tree/aetherctl-tvos-fix

The diff is 13 lines, mostly comment:

 products: [
     .library(
         name: "AetherEngine",
         targets: ["AetherEngine"]
     ),
-    // Standalone CLI used for offline reproduction of the host-side
-    // HLSVideoEngine playback symptoms on macOS, without going
-    // through TestFlight + Apple TV. Builds only on macOS in
-    // practice (Apple platform reqs match the lib target).
-    .executable(name: "aetherctl", targets: ["aetherctl"]),
+    // aetherctl product removed: the target uses Foundation.Process
+    // which is unavailable on tvOS/iOS. The target itself is
+    // preserved below so `swift build` on macOS still produces
+    // the CLI; only the published product surface changes.
 ],

Happy to open a PR if useful.

Activity

  1. superuser404notfound commented on May 16, 2026

    @superuser404notfound
    Owner

    Fixed in 424b88e, aetherctl is no longer exposed as a product, so tvOS/iOS consumers won't try to compile it. The aetherctl executable target is preserved for swift build on macOS.

    Thanks for the clean repro and the suggested diff! Sodalite has already picked up the bump.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions