Skip to content

Cannot use Metal properly with Swift Packages #8974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2025

Conversation

rconnell9
Copy link
Contributor

@rconnell9 rconnell9 commented Jul 26, 2025

Cannot use Metal properly with Swift Packages — even with Apple-recommended plugin workaround

The summary here is that when using xcrun to locate metal, xcodebuild is invoked which queries MobileAssets for the location of the metal toolchain. The query to MobileAssets requires the added entitlement.

Reference: #8930

Modifications:

Add expected entitlement

@rconnell9 rconnell9 changed the title Cannot use Metal properly with Swift Packages — even with Apple-recommended plugin workaround Cannot use Metal properly with Swift Packages Jul 26, 2025
@dschaefer2
Copy link
Member

@swift-ci please test

@dschaefer2
Copy link
Member

We probably need an integration test for this with a sample build plugin as recommended in the tech note.

@rconnell9
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@dschaefer2 dschaefer2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manual testing is going on. That should do to rush this in for 6.2 and we can get regression tests in later.

@dschaefer2 dschaefer2 merged commit ea1f0c3 into swiftlang:main Jul 28, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants