Howto“sandbox”我的狮子申请? [英] Howto "sandbox" my Lion application?

查看:129
本文介绍了Howto“sandbox”我的狮子申请?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

苹果已经宣布,提交到Mac App Store的所有应用程序必须在11月开始进行沙箱。



好,但是如何沙箱我的应用程序?



我找到Apple官方指南代码签名和应用程序沙盒指南



本文档列出了以下步骤: / p>

1)为您的应用程序启用沙盒。好的,容易:我必须打开Xcode 4,选择项目,选择目标,转到摘要选项卡,并检查:




  • Enable Entitlements

  • 启用应用程式沙盒

  • ...以及我感兴趣的每一项权利。



2)然后:创建基本授权配置文件后,您应该签名应用程序。简而言之,指南说在.app上运行命令codesign。



但是在哪个.app?



我每次编译时都要这样做?



Xcode不会自动执行这个操作?

解决方案

如果您为应用程序打开沙箱,Xcode将使用 codesign 工具自动签署构建的产品。

如果您想自定义代码签名行为,您只需手动运行 codesign 工具即可。


Apple has decreed that all applications submitted to the Mac App Store must be sandboxed, starting in November.

Ok, but how can I "sandbox" my app?

I found the official Apple's guide Code Signing And Application Sandboxing Guide.

This document lists the following steps:

1) "Enable sandboxing for your application." Ok, easy: I have to open Xcode 4, select the project, select the target, go to the Summary tab and check:

  • "Enable Entitlements"
  • "Enable App Sandboxing"
  • ...and every single entitlement I'm interested in.

2) Then: "Once you have created a basic entitlements profile, you should sign your application". In short, the guide says to run the command "codesign" on the .app.

But on which .app?

I have to do this every time I compile?

Xcode does not do that in automatic?

解决方案

If you turn on sandboxing for your app, Xcode will automatically sign the built product using the codesign tool.

You'd only need to run the codesign tool manually if you wanted to customise the code signing behaviour.

这篇关于Howto“sandbox”我的狮子申请?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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