简体   繁体   English

未启用应用沙箱

[英]App sandbox not enabled

I have my own executable file which is named as "testQueue" and bundled with my main app(testApp) to achieve my requirements.我有自己的可执行文件,名为“testQueue”并与我的主应用程序(testApp)捆绑在一起以实现我的要求。 testQueue is a executable file written in C . testQueue 是一个用 C 编写的可执行文件。

I sandboxed this executable using below options and added in the app :我使用以下选项将此可执行文件沙箱化并添加到应用程序中:

  • Code signing : Mac developer 3rd party application代码签名:Mac 开发者第 3 方应用程序
  • Enabled com.apple.security.app-sandbox = TRUE in testQueue.entitlements在 testQueue.entitlements 中启用 com.apple.security.app-sandbox = TRUE
  • Enabled com.apple.security.inherit = TRUE in testQueue.entitlements在 testQueue.entitlements 中启用 com.apple.security.inherit = TRUE

Still i received the following error from apple review team.我仍然收到来自苹果审查团队的以下错误。

"App sandbox not enabled - The following executables must include the "com.apple.security.app-sandbox" entitlement with a Boolean value of true in the entitlements property list. Refer to the App Sandbox page for more information on sandboxing your app.

testApp.app/Contents/Resources/testQueue"

i would like to know if anything else needs to be added in project settings?我想知道是否需要在项目设置中添加任何其他内容?

Go to your target -> Capabilities -> put App Sandbox in ON.转到您的目标 -> 功能 -> 将应用沙盒置于 ON。

在此处输入图片说明

If you are using Xamarin check the "Enable App Sandbox" option on your "Entitlements" file如果您使用的是 Xamarin,请选中“权利”文件中的“启用应用沙盒”选项在此处输入图片说明

Then on the "Mac Signing" options:然后在“Mac 签名”选项上:

  • Choose a custom entitlements file选择自定义权利文件
  • Enable the option "Sign the installer packer"启用选项“签署安装程序打包程序”

Before archiving the file for publishing归档文件以供发布之前

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM