Howto “sandbox” my Lion application?

一笑奈何 提交于 2020-01-13 08:32:10

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/6834179/howto-sandbox-my-lion-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!