Skip to content
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

Error - Failed to replace code signatures #13

Open
tmcintos opened this issue Dec 15, 2024 · 2 comments
Open

Error - Failed to replace code signatures #13

tmcintos opened this issue Dec 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@tmcintos
Copy link

I encountered this error when attempting to run createinstalliso on a macOS 10.13.6 Installer app downloaded using https://github.com/ninxsoft/Mist.

After considerable time spent investigating the failure, it seems that the solution is to run xattr -cr on the Installer .app bundle before running createinstalliso.

Perhaps this could be handled automatically by the script, or at least suggested in the error message?

@stablestream
Copy link

Happens to me too. There NEEDS to be a fix because it's annoying.

@BITespresso
Copy link
Owner

The reason that this is now occurring more frequently is that Apple has started to apply a stricter protection against unknown software (see e.g. https://www.macrumors.com/2024/08/06/macos-sequoia-gatekeeper-security-change/). What happens is that the installer application itself gets an extended attribute com.apple.quarantine if it was downloaded or created from another location than the App Store.

As a quick workaround, you can remove this attribute with xattr -dr com.apple.quarantine <installer application path>.app. Note, however, that this is a potential security risk.

Nonetheless, I will add a better handling for this situation in a future version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants