Electron-builder: Error: Command failed: spctl --assess --type execute --verbose --ignore-cache --no-cache on 20.43.0

Created on 7 Jun 2019  Â·  12Comments  Â·  Source: electron-userland/electron-builder


  • Version: 20.43.0

  • Target: MacOS


Sign verification fails for MacOS on v20.43.0.

To ensure your native dependencies are always matched electron version, simply add script `"postinstall": "electron-builder install-app-deps" to your `package.json`
  • rebuilding native production dependencies platform=darwin arch=x64
  • packaging       platform=darwin arch=x64 electron=5.0.2 appOutDir=.....
  • signing         file=/../../..app identityName=Mac Developer: .... (....) identityHash=... provisioningProfile=none
Error: Command failed: spctl --assess --type execute --verbose --ignore-cache --no-cache /../../..app
.....app: rejected

The build passes with no issues on v.20.41.0.

Most helpful comment

try to 'spctl --master-disable'

All 12 comments

Same problem

Same problem here.

Same problem

Same problem, works on 20.41.0

Same problem ( electron-builder version=20.43.0 )
Works on 20.41.0

try to 'spctl --master-disable'

@agungsetyawan sorry, what is spctl? This is tool for sign app (certificate)?

This seems to work on 20.44.4, so I guess I'm closing this issue.

No changes with 20.44.4, i get this message:

Error: Command failed: spctl --assess --type execute --verbose --ignore-cache --no-cache: rejected

Could you reopen the ticket ?

Still broken on 21.0.15

Same problem. 20.44.4, works on 20.41.0
But another macbook works on 20.44.4

Same problem. 20.44.4, but 'spctl --master-disable' solve the problem

Was this page helpful?
0 / 5 - 0 ratings