在Mac上使用Developer ID对Qt应用程序进行签名 [英] Sign Qt applications on Mac with Developer ID

查看:1595
本文介绍了在Mac上使用Developer ID对Qt应用程序进行签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要签名的QT应用程序。以前,我使用codesign实用程序在Mac上签名与证书。随着山狮的发布,苹果正在迫使开发商签署开发者ID,以避免Gatekeeper警告。

I have a QT application that needs to be signed. Previously I used codesign utility on Mac to sign with certificates. With the release of mountain lion, Apple is forcing the developers to sign with the developer ID to avoid Gatekeeper warnings.

我发现这篇来自Apple的博客文章: https://developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/OSXWorkflowGuide/DistributingApplicationsOutside/DistributingApplicationsOutside.html

I found this blog article from Apple: https://developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/OSXWorkflowGuide/DistributingApplicationsOutside/DistributingApplicationsOutside.html

它只适用于基于Xcode的项目。我使用的是Qt的创建者,没有适当的文档可用于在Xcode以外的开发人员ID进行签名。

It works only for the Xcode based project. I am using Qt creator and there is no proper documentation available for signing with Developer ID outside of the Xcode.

有人遇到同样的问题吗?

Has anyone run into the same issue?

推荐答案

根据 http://successfulsoftware.net/2012/08/30/how-to-sign-your-mac-os-x-app-for-网守/ 您签署Qt框架,插件和应用程序包,例如:

According to http://successfulsoftware.net/2012/08/30/how-to-sign-your-mac-os-x-app-for-gatekeeper/ you sign the Qt frameworks, plugins and the app bundle, e.g.:

codesign --force --verify --verbose --sign "Developer ID Application: <yourID>" <yourApp>.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore

这篇关于在Mac上使用Developer ID对Qt应用程序进行签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆