Error - Failed to replace code signatures
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?
Happens to me too. There NEEDS to be a fix because it's annoying.
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.
Still getting the same issue after running xattr -dr com.apple.quarantine
Hi @MoatazAbdallh,
Still getting the same issue after running xattr -dr com.apple.quarantine .app
you may want to help finding the reason for this issue by following the instructions I gave in https://github.com/BITespresso/createinstalliso/issues/14#issuecomment-2919101499
I hope this will shed some light on this issue.
Thanks,
Michael