如何签署 Mac OS X 应用程序?
我创建了一个 Mac OS X 应用程序,但我不知道必须执行哪些步骤才能正确签署我的 Mac OS X 应用程序。 谢谢。
I created a Mac OS X application but I don't know which steps I have to do for signing my Mac OS X application correctly.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我发现苹果文档太冗长了。我已经写了一些关于如何签署我自己的 Mac 软件的详细说明。内容太多,无法全部放在这里。看:
http:// successsoftware.net/2012/08/30/how-to-sign-your-mac-os-x-app-for-gatekeeper/
I found the Apple documentation far too verbose. I have written up some detailed notes on how I signed my own software for Mac. There is too much to put it all here. See:
http://successfulsoftware.net/2012/08/30/how-to-sign-your-mac-os-x-app-for-gatekeeper/
使用 Qt
否则,
您还需要使用类似以下内容将每个框架和 dylib 文件签名到包中
With Qt
Otherwise
You also need to sign every framework and dylib file into the package with something like this
首先,您需要一个功能齐全(因此需要付费)的 Apple 开发者帐户。
然后您可以按照以下信息操作: https:// /developer.apple.com/library/archive/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html
上面的链接是全局过程,但有一个特定的主题,在下面清楚地说明了如何操作URL: https://developer.apple.com/library/archive/documentation/Security/Conceptual/CodeSigningGuide/Procedures/Procedures.html#//apple_ref/doc/uid/TP40005929-CH4-SW2
At first you need an fully functional (and thus paid) Apple developer account.
Then you can follow this information: https://developer.apple.com/library/archive/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html
The above link is the global procedure, but there is a specific topic with clean illustrated how to at the following URL: https://developer.apple.com/library/archive/documentation/Security/Conceptual/CodeSigningGuide/Procedures/Procedures.html#//apple_ref/doc/uid/TP40005929-CH4-SW2
苹果对此有很好的文档。转到开发人员配置部分,那里有一个很好的入门知识,可以让您快速运行。
There is good Apple documentation on this. Go to the developer provisioning section and there is a good primer there that can get you running quickly.
当您对应用程序进行签名时,该应用程序内的所有可执行文件都需要进行签名,否则公证将失败。
我编写了这个节点代码,它将递归地查找应用程序中的所有可执行文件并对其进行签名。
When you sign an app, all executables inside that app need to be signed, otherwise, the notarization will fail.
I wrote this node code that will recursively find all executables within an app and sign them.