为什么我的macOS公证示例不起作用?

时间:2019-04-21 02:37:48

标签: xcode macos notarize

我为macOS公证过程签名并导出了测试应用程序。我可以使用xcrun stapler validate

来验证票证
$ xcrun stapler validate /Users/user/Downloads/Test.app 
Processing: /Users/user/Downloads/Test.app
The validate action worked!

但是,打开应用程序仍然会触发警告弹出窗口。有人知道为什么吗?我正在使用最新的macOS 10.14.4(18E226)。

enter image description here

1 个答案:

答案 0 :(得分:1)

一切正常。没有“警告对话框”。您所看到的正是经过公证后希望看到的对话框,如本页所示:

https://developer.apple.com/documentation/security/notarizing_your_app_before_distribution

enter image description here

对话框显示Apple已检查了恶意软件。那就是公证