You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Homebrew install breaks bundled Copilot runtime on macOS: "Could not determine the installed GitHub Copilot CLI version" #64
After installing modernize with Homebrew on Apple Silicon, it fails on startup with a misleading error. Homebrew rewrites the bundled native libraries and invalidates their signature, so macOS library validation stops the bundled copilot from loading them.
The bundled copilot runs with hardened runtime and is signed by VEKTX9H2N7, so the kernel rejects the modified library:
(AppleMobileFileIntegrity) Library Validation failed: Rejecting '.../native/runtime.node' (Team ID: none, platform: no)
for process 'copilot' (Team ID: VEKTX9H2N7, platform: no), reason: mapping process and mapped file (non-platform) have different Team IDs
~/.modernize/logs then shows:
copilot-runtime: failed to load runtime cdylib .../native/runtime.node: dlopen failed
Could not determine Copilot CLI version. RawVersion='(null)' ... CopilotBinaryExists=True
Workaround
Replace both files in libexec/runtimes/osx-arm64/native/ with the originals from the release tarball. This confirms the cause: modernize then starts normally. The workaround is lost on the next upgrade.
Suggested fixes
Stop Homebrew from altering these signed libraries. Distributing as a cask may do this, as casks don't normally get this relocation step.
Report the underlying startup failure instead of telling users to upgrade. The dlopen failed output is available but only reaches the log file.
Thanks for the detailed report! In v1.0.95, we switched the macOS Homebrew distribution to a cask (#70), which preserves the bundled runtime signatures.
Please migrate from the formula:
Activity
zhoufenqin commentedon Nov 11, 2026
Nirmal Thewarathanthri (@nthewara)
Thanks for the detailed report! In v1.0.95, we switched the macOS Homebrew distribution to a cask (#70), which preserves the bundled runtime signatures.
Please migrate from the formula:
Besides, you can also choose to use script to install, see more details in readme.me