createinstalliso icon indicating copy to clipboard operation
createinstalliso copied to clipboard

Error - Failed to replace code signatures

Open tmcintos opened this issue 1 year ago • 4 comments

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?

tmcintos avatar Dec 15 '24 03:12 tmcintos

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

stablestream avatar Jan 16 '25 16:01 stablestream

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.

BITespresso avatar Jan 18 '25 12:01 BITespresso

Still getting the same issue after running xattr -dr com.apple.quarantine .app

MoatazAbdallh avatar May 17 '25 15:05 MoatazAbdallh

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

BITespresso avatar May 30 '25 10:05 BITespresso