admin管理员组文章数量:1023773
I'm trying to distribute my macOS application (a .dmg file) to customers, and I've followed all the steps to sign and notarize the application. However, when I try to install the .dmg containing the app, Gatekeeper rejects it with the error "AppName cannot be opened because developer is not verified". Even though I’ve signed the app with my Developer ID, notarized it, and verified the signature using codesign, I am still encountering issues when attempting to install or open the app on a clean macOS environment. Here’s the error I see when using spctl to check the .dmg:
spctl --assess --type open --verbose=4 output/App.dmg
output/App.dmg: rejected
source=Insufficient Context
pctl -a -t open --context context:primary-signature -v ./output/Unbounded-0.0.1-arm64.dmg
./output/App.dmg: accepted
source=Notarized Developer ID
My .app is signed and notarised by electron builder and I explicitly signed and notarised dmg too but still not working
I'm trying to distribute my macOS application (a .dmg file) to customers, and I've followed all the steps to sign and notarize the application. However, when I try to install the .dmg containing the app, Gatekeeper rejects it with the error "AppName cannot be opened because developer is not verified". Even though I’ve signed the app with my Developer ID, notarized it, and verified the signature using codesign, I am still encountering issues when attempting to install or open the app on a clean macOS environment. Here’s the error I see when using spctl to check the .dmg:
spctl --assess --type open --verbose=4 output/App.dmg
output/App.dmg: rejected
source=Insufficient Context
pctl -a -t open --context context:primary-signature -v ./output/Unbounded-0.0.1-arm64.dmg
./output/App.dmg: accepted
source=Notarized Developer ID
My .app is signed and notarised by electron builder and I explicitly signed and notarised dmg too but still not working
Share Improve this question edited Nov 18, 2024 at 18:20 Chaudry Ali asked Nov 18, 2024 at 16:43 Chaudry AliChaudry Ali 111 bronze badge 1- Won't you need to sign it with an Installer certificate? – trojanfoe Commented Nov 19, 2024 at 8:53
1 Answer
Reset to default 0Correct steps are:
- Sign all your your
*.app
bundles - If you create installer sign also
*.pkg
- Put all wanted files into
*.dmg
file. - Sign
*.dmg
file - Notarize
*.dmg
(send it to Apple Notarization service). - Staple
*.dmg
filestapler staple ...
After every singning step you should verify, the signing process is OK and signature is valid codesign -vertify ...
or codesign -vvv ...
, then check Notarization Service output and finaly verify stapling process stapler verify ...
.
I'm trying to distribute my macOS application (a .dmg file) to customers, and I've followed all the steps to sign and notarize the application. However, when I try to install the .dmg containing the app, Gatekeeper rejects it with the error "AppName cannot be opened because developer is not verified". Even though I’ve signed the app with my Developer ID, notarized it, and verified the signature using codesign, I am still encountering issues when attempting to install or open the app on a clean macOS environment. Here’s the error I see when using spctl to check the .dmg:
spctl --assess --type open --verbose=4 output/App.dmg
output/App.dmg: rejected
source=Insufficient Context
pctl -a -t open --context context:primary-signature -v ./output/Unbounded-0.0.1-arm64.dmg
./output/App.dmg: accepted
source=Notarized Developer ID
My .app is signed and notarised by electron builder and I explicitly signed and notarised dmg too but still not working
I'm trying to distribute my macOS application (a .dmg file) to customers, and I've followed all the steps to sign and notarize the application. However, when I try to install the .dmg containing the app, Gatekeeper rejects it with the error "AppName cannot be opened because developer is not verified". Even though I’ve signed the app with my Developer ID, notarized it, and verified the signature using codesign, I am still encountering issues when attempting to install or open the app on a clean macOS environment. Here’s the error I see when using spctl to check the .dmg:
spctl --assess --type open --verbose=4 output/App.dmg
output/App.dmg: rejected
source=Insufficient Context
pctl -a -t open --context context:primary-signature -v ./output/Unbounded-0.0.1-arm64.dmg
./output/App.dmg: accepted
source=Notarized Developer ID
My .app is signed and notarised by electron builder and I explicitly signed and notarised dmg too but still not working
Share Improve this question edited Nov 18, 2024 at 18:20 Chaudry Ali asked Nov 18, 2024 at 16:43 Chaudry AliChaudry Ali 111 bronze badge 1- Won't you need to sign it with an Installer certificate? – trojanfoe Commented Nov 19, 2024 at 8:53
1 Answer
Reset to default 0Correct steps are:
- Sign all your your
*.app
bundles - If you create installer sign also
*.pkg
- Put all wanted files into
*.dmg
file. - Sign
*.dmg
file - Notarize
*.dmg
(send it to Apple Notarization service). - Staple
*.dmg
filestapler staple ...
After every singning step you should verify, the signing process is OK and signature is valid codesign -vertify ...
or codesign -vvv ...
, then check Notarization Service output and finaly verify stapling process stapler verify ...
.
本文标签:
版权声明:本文标题:electron builder - Why is my notarized and signed macOS .dmg rejected by Gatekeeper during installation? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745606236a2158743.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论