Signtool - 如何签署 macOS 文件(无法识别文件格式)

问题描述 投票:0回答:1

我正在使用 C# 开发一个应用程序,我为 Windows 和 macOS 生成了可执行文件,它们都运行良好。

当我使用 signtool 对 windows 可执行文件进行签名时,它工作正常,但是对于 macOS 文件它失败了。

我可能给出了错误的论点,但我也没有找到适用于 macOS 或 linux 的正确论点。

我的命令:


C:\Program Files (x86)\Windows Kits\10\bin\10.0.1\x64>.\signtool.exe sign /n company /fd sha256 /tr http://ts.ssl.com /td sha256 "C:\Users\Ler\Desktop\maxOSsign\file"

退货:

Done Adding Additional Store

SignTool Error: This file format cannot be signed because it is not recognized.

SignTool Error: An error occurred while attempting to sign: C:\Users\Ler\Desktop\maxOSsign\file

感谢您的帮助!

linux macos ssl-certificate sign signtool
1个回答
0
投票

Windows 和 macOS 签名不同,您不能使用 signtool 对 macOS 应用程序进行签名。你必须改用代码设计。

© www.soinside.com 2019 - 2024. All rights reserved.