简体   繁体   English

如何使用Gatekeeper ID签署资讯主页小工具(Dashcode)

[英]How to sign a Dashboard Widget (Dashcode) with Gatekeeper ID

Does anyone know how to sign a Dashboard widget (OS-X Mountain Lion) that was made by Dashcode with a Gatekeeper ID? 有谁知道如何用Gatekeeper ID签名由Dashcode制作的Dashboard小部件(OS-X Mountain Lion)? All tutorials just go about XCode-Apps or package-installers. 所有教程都只涉及XCode-Apps或软件包安装程序。 Are dashboard-widgets handled like installers? 仪表板小部件是否像安装程序一样处理?

The question is a bit old, but the question still seems relevant. 这个问题有点老了,但是这个问题似乎仍然很重要。 I figured out how it works, see eg my widget at https://maba.wordpress.com/widgets/ , tested on Mac OS X El Capitan (10.11.4). 我弄清楚了它是如何工作的,例如,请参见https://maba.wordpress.com/widgets/上的小部件,该小部件已在Mac OS X El Capitan(10.11.4)上进行了测试。

Here are the steps: 步骤如下:

First, you need a production Developer ID of type "Developer ID Application". 首先,您需要类型为“开发人员ID应用程序”的生产开发人员ID。 Make sure it's imported into your keychain. 确保将其导入到您的钥匙串中。 Also note its name. 另请注意其名称。 Typically it is like "Developer ID Application: Your Name" . 通常,它类似于“开发人员ID应用程序:您的姓名”

Now, use the codesign tool to sign your widget on the command line like this: 现在,使用codesign工具在命令行上对小部件进行签名,如下所示:

codesign -f -s "Developer ID Application: Your Name" /Path/to/YourWidget.wdgt

You might want to verify using the spctl tool: 您可能要使用spctl工具进行验证:

spctl -a -vvvv /Path/to/YourWidget.wdgt

The output should look like this: 输出应如下所示:

/Path/to/YourWidget.wdgt: accepted
source=Developer ID
origin=Developer ID Application: Your Name (XXXXXXXXX)

(Answer is a duplicate of my original answer here: https://forums.developer.apple.com/message/140973 ) (答案是我原来的回答的重复: https : //forums.developer.apple.com/message/140973

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM