Skip to content

Fix signing read-only xcframework binaries. - #283

Open
furbytm wants to merge 2 commits into
moreSwift:mainfrom
furbytm:main
Open

furbytm wants to merge 2 commits into
moreSwift:mainfrom
furbytm:main

Conversation

@furbytm

@furbytm furbytm commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

I came across the following error when swift-bundler attempted to bundle precompiled .xcframeworks from the apple/SwiftUsd project in swift-usd, the issue is caused by swiftpm's dependency checkouts which are read-only, which prevents codesigning them unless we make them writable:

[619/620] Linking UsdView
Build of product 'UsdView' complete! (1416.25s)
error: Failed to run 'codesign' command

Caused by:
  Process didn't exit successfully: `/usr/bin/codesign --force --sign - /Users/runner/work/swift-usd/swift-usd/.build/bundler/apps/UsdView/UsdView.app/Contents/Frameworks/Usd_HdGp.framework` (exit status: 1)
  --- stdout & stderr
  /Users/runner/work/swift-usd/swift-usd/.build/bundler/apps/UsdView/UsdView.app/Contents/Frameworks/Usd_HdGp.framework: replacing existing signature
  /Users/runner/work/swift-usd/swift-usd/.build/bundler/apps/UsdView/UsdView.app/Contents/Frameworks/Usd_HdGp.framework: Permission denied

you can review the full CI run here to see the full context of the problem.

Signed-off-by: Furby™ <furby@wabifoundation.com>
@furbytm

furbytm commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

This fix can be confirmed to work by the CI run here, which utilizes a swift-bundler binary with the changes in this PR.

Signed-off-by: Furby™ <furby@wabifoundation.com>
@furbytm furbytm closed this Dec 3, 2026
@furbytm furbytm reopened this Dec 3, 2026
@furbytm

furbytm commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor Author

closed and reopened to trigger a CI rebuild which failed for nonsensical errors.

This branch has not been deployed

No deployments
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.

1 participant