如何在 Xcode 4 中编码和沙盒助手应用程序? [英] How to Codesign and Sandbox Helper Application in Xcode 4?

查看:24
本文介绍了如何在 Xcode 4 中编码和沙盒助手应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题来了:我有一个包含 HelperApp 的 MainApp.Helper 应用程序用于登录项,因此我需要区分 MainApp 和 HelperApp 包 ID.由于 BuildPhase Copy,我将 HelperApp 复制到 MainApp 中.如果我对 HelperApp 进行 Codesign 和 Sandbox 沙盒处理,则上传阶段会停止......并出现与配置文件相关的错误.如果我没有对 HelperApp 进行代码签名/沙箱处理,则上传工作正常,但 2 分钟后我收到一个无效的二进制文件",警告我关于助手应用程序上的应用程序沙箱未启用".

This is the problem: I have a MainApp that contains an HelperApp. The Helper app is used for the login items so i need to differentiate MainApp and HelperApp bundle IDs. I copied the HelperApp into MainApp thanks to the BuildPhase Copy. If I Codesign and Sandbox the HelperApp the upload phase stops... with error related to the provisioning profile. If I don't code sign/sandbox the HelperApp the upload works but after 2 minutes I receive an invalid binary" that warns me about the "App sandbox not enabled" on the helper app.

您知道沙盒和带有助手应用程序的应用程序的正确做法是什么吗?我在文档中找不到任何内容!

Do you know which is the correct practice to Sandbox and app with Helper app in it? I can't find NOTHING in the documentation!

推荐答案

我有一个完全相同的场景:一个包含 HelperApp 的 MainApp,用于在登录时启动 MainApp.

I had exactly the same scenario: a MainApp that contains a HelperApp, which is used to launch the MainApp at login.

通过确保 XCode 中两个应用程序的代码签名标识设置为3rd Party Mac Developer Application"问题得到解决强>".

The "invalid binary - app sandbox not enabled" problem got resolved by making sure that the Code Signing Identity for both apps in XCode is set to "3rd Party Mac Developer Application".

然后,在提交审核后,我收到了等待审核"通知,并且不再出现无效二进制"错误.

Then, after submitting for review, I got the "Waiting for Review" notification and no more "invalid binary" errors.

这篇关于如何在 Xcode 4 中编码和沙盒助手应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆