[BUG] App is already signed

With latest develop branch i get this error when i compile my app twice (Xcode 12.5 / MacOS BigSur).

/Users/nicolasdanet/Work/S/Spaghettis/Builds/MacOSX/build/Debug/Spaghettis.app: is already signed
Command PhaseScriptExecution failed with a nonzero exit code

Pretty annoying for debugging. The post build script is:

rep="${SOURCE_ROOT}/../.."
app="${BUILT_PRODUCTS_DIR}/Spaghettis.app"
entitlements="${rep}/Resources/Spaghettis.entitlements"

codesign --options runtime --entitlements "${entitlements}" --deep -s "-" "${app}"  || exit 1

I guess that the problem comes from the removing of CODE_SIGN_IDENTITY = "" in pbxproj.

Does it work if you add --force to the signing flags?

1 Like

Yes, it solves the problem! :star_struck: I should have try that first.