fix: add hostArchitectures to PKG Distribution.xml to prevent Rosetta prompt#268
Merged
fix: add hostArchitectures to PKG Distribution.xml to prevent Rosetta prompt#268
Conversation
… prompt The macOS PKG installer was incorrectly prompting users to install Rosetta on Apple Silicon Macs, even though all binaries are native arm64. When using productbuild with a custom Distribution.xml, macOS Installer does not auto-detect architecture support. Without the hostArchitectures attribute, it assumes Rosetta is required. Adding hostArchitectures="arm64,x86_64" to the <options> element tells macOS Installer that the package supports both architectures natively, eliminating the unnecessary Rosetta prompt on ARM Macs. This is a known issue that affected fish-shell, PowerShell, and other projects using custom Distribution.xml files. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Deploying mcpproxy-docs with
|
| Latest commit: |
217d9c3
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://13a82aee.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://fix-pkg-rosetta-requirement.mcpproxy-docs.pages.dev |
technicalpickles
pushed a commit
to technicalpickles/mcpproxy-go
that referenced
this pull request
Jan 21, 2026
… prompt (smart-mcp-proxy#268) The macOS PKG installer was incorrectly prompting users to install Rosetta on Apple Silicon Macs, even though all binaries are native arm64. When using productbuild with a custom Distribution.xml, macOS Installer does not auto-detect architecture support. Without the hostArchitectures attribute, it assumes Rosetta is required. Adding hostArchitectures="arm64,x86_64" to the <options> element tells macOS Installer that the package supports both architectures natively, eliminating the unnecessary Rosetta prompt on ARM Macs. This is a known issue that affected fish-shell, PowerShell, and other projects using custom Distribution.xml files. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hostArchitectures="arm64,x86_64"attribute to Distribution.xml<options>elementProblem
When installing
mcpproxy-*-darwin-arm64.pkgon an ARM Mac, macOS Installer prompts:This happens even though all binaries in the package are native arm64.
Root Cause
When using
productbuild --distributionwith a custom Distribution.xml, macOS Installer does not auto-detect architecture support. Without thehostArchitecturesattribute, it assumes Rosetta is required for compatibility.This is a known issue that affected:
Solution
Add
hostArchitectures="arm64,x86_64"to the<options>element in the Distribution.xml template. This explicitly tells macOS Installer that the package supports both architectures natively.Test plan
🤖 Generated with Claude Code