Skip to content

[iOS] Declare executorch SwiftPM system-framework dependencies #22686

Description

@mergennachin

Problem

The executorch SwiftPM product currently declares only the C++ standard library. With -all_load, static initializers and the image extension can pull symbols that require Accelerate, CoreGraphics, CoreImage, CoreVideo, and Foundation. Requiring each application to add a partial workaround is incomplete and duplicates package-owned linkage details.

This was identified while reviewing the iOS documentation in #22620. The manifest change is intentionally excluded from that documentation-only PR.

Proposed change

Declare Accelerate, CoreGraphics, CoreImage, CoreVideo, and Foundation on the executorch product in Package.swift.

Test plan

  • Run swift package --disable-sandbox dump-package.
  • Build a minimal SwiftPM consumer with the executorch product and -all_load.
  • Run iOS framework and demo-app CI.

cc @larryliu0820 @GregoryComer @shoumikhin @cbilgin

Activity

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

Metadata

Metadata

Assignees

Labels

bugmodule: build/installIssues related to the cmake and buck2 builds, and to installing ExecuTorchmodule: iosIssues related to iOS code, build, and execution

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions