我已经成功地通过命令行为我开发插件的Mac应用程序公证了一个插件。此插件用于Mac应用程序商店之外的发行。
xcrun altool --notarize-app --primary-bundle-id "com.demo.bundle.id" --username "email@abc.com" --password "xxx-x-xxxx-xx" --file Plugin.zip收到一封已成功公证的电子邮件,电子邮件中有关于如何导出以供分发的使用说明。但是,这是XCode UI的一个指令,但是我通过命令行进行了公证,所以指令不适用于我。是否有命令行下载公证文件(Plugin.zip),或者如何从苹果获得Plugin.zip文件以在我的网站上发布?
更新:
事实证明,您可以公证.zip文件,但无法将其钉钉。因此,我决定创建一个.pkg来发布我的插件,而不是通过一个zip文件分发。
下面是我成功地公证和钉钉插件的步骤,让我说我的插件名是FileConvertor.PluginExtension
codesign --sign "Developer ID Application: Developer Name" --verbose=4 --deep --force --strict FileConvertor.PluginExtension.PluginExtensionproductsign --sign "Developer ID Installer: Developer Name" ./FileConvertor.pkg ./FileConvertorSigned.pkgxcrun altool --notarize-app --primary-bundle-id "com.demo.plugin" --username xyz@abc.com" --password "xxxx-xxxx-xxxx-xxxx" --file FileConvertorSigned.pkgxcrun stapler staple FileConvertorSigned.pkg钉上发布于 2019-11-13 06:24:47
苹果公司不会从公证中退回任何东西。您的签名文件有一个唯一的ID,在签名中,苹果已经存储了。一旦公证,签名的文件将被接受如果下载。
https://stackoverflow.com/questions/58817903
复制相似问题