macos – 带有帮助命令行工具的沙盒Mac App

macos – 带有帮助命令行工具的沙盒Mac App,第1张

概述提交我的应用程序时出现以下错误 Invalid Signature – the main app bundle MyApp at path MyApp.app is signed but the signature is invalid. The following error(s) were reported from codesign: a sealed resource is missing 提交我的应用程序时出现以下错误

InvalID Signature – the main app bundle MyApp at path MyApp.app is signed but the signature is invalID. The following error(s) were reported from codesign: a sealed resource is missing or invalID In architecture: i386

我有一个小的控制台应用程序,它位于Resources文件夹中,它根本不需要root权限.我没有这个助手的源代码所以我无法重建它.

如果我从我的软件包中删除控制台应用程序,则错误消失.

这个命令行帮助应用程序做的是它需要一个文件处理它并根据args传递的一些信息创建一个新文件.

所以问题是,我们如何将命令行工具嵌入我们的沙盒应用程序并绕过上述错误?我再次拥有这个帮助工具的源代码.

解决方法 我刚遇到这个问题,并且能够通过在终端中使用codesign签署应用程序来解决这个问题.

这是你如何做到的:

codesign --enTitlements path/to/.enTitlementsfile -s "3rd Party Mac Developer Application: Your Company (or whatever the name of your certificate is in your keychain)" ./ThenameOfThetool

希望有所帮助!

总结

以上是内存溢出为你收集整理的macos – 带有帮助命令行工具的沙盒Mac App全部内容,希望文章能够帮你解决macos – 带有帮助命令行工具的沙盒Mac App所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/web/1002111.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存