cocoa - 如何获取 Mac OS X 应用程序的 CodeSignature

标签 cocoa macos codesign

嘿!我认为这对你来说是一个简单的问题。大多数系统应用程序以及一些第三方应用程序都在其 bundle 中集成了 CodeSignature。我听说使用这样的 CodeSignature 系统将不再要求接受传入的网络连接(如果启用了防火墙)。现在的问题是从哪里获得这样的 CodeSignature...
感谢您的帮助!

最佳答案

在哪里以及如何获得代码签名?

参见Code Signing Guide :

Code signing is a technology introduced in Mac OS X v10.5 that ensures the integrity of code and allows the system to recognize updated versions of code as the same program as the original. Once you have signed your code, any change in the code that you did not intend—whether introduced accidently or by hackers—can be detected by the system. On the other hand, your signature on an updated version of your program tells the system to treat the new version exactly as it treated the old, so that users are not bothered with obscure dialogs asking them to give permission to the keychain or some other system component to interact with your code.

Signing code is fast, requires few resources, and increases the size of your deliverable by less than 1%. Signatures do not alter how your code runs and are ignored by Mac OS X versions prior to Mac OS X v10.5; therefore, there is no reason not to sign your code. However, there are a few things you need to know before you begin. This document explains the terminology and concepts you need to know and gives you a few straightforward procedures you can follow to sign your code.

Because the system will expect all code to be signed, any code that is not signed will not behave in the same manner as the majority of the programs on the user’s system. In particular, the user is likely to be bothered with additional dialog boxes and prompts for unsigned code that they don’t see with signed code, and unsigned code might not work as expected with some system components, such as parental controls. It is highly recommended that you sign all code intended for use with Mac OS X v10.5 or later.

Therefore, if you are delivering, or intend to deliver, code that might ever be run on Mac OS X v10.5 or later, you should read this document.

Code Signing Guide

关于cocoa - 如何获取 Mac OS X 应用程序的 CodeSignature,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2255580/

相关文章:

macos - 汇编语言中的数组访问

xcode - 代码设计抛出错误 'errSecInternalComponent'

macos - 如何在 Mac 上从 Jenkins 运行 docker builds?

ios - 映射文件没有匹配的团队标识符

iphone - 使用自定义对象对 NSMutableArray 进行排序 'overwrites' 一些对象

cocoa - NSOutlineView 的 noteNumberOfRowsChanged 不等于 reloadData

Cocoa 应用程序未在构建和运行时启动,而是手动启动

xcode - Mac OS X 简单录音机

xcode - Jenkins vs.Xcode插件-CodeSign麻烦

macos - 难以理解 NSRemoteOpenPanel 与沙盒应用程序之间的差异