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
Problem
The
executorchSwiftPM 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
executorchproduct inPackage.swift.Test plan
swift package --disable-sandbox dump-package.executorchproduct and-all_load.cc @larryliu0820 @GregoryComer @shoumikhin @cbilgin