Manually sandboxing a Cocoa app


(Valid for pre-10.7 Xcode installations, where the “Enable Sandboxing” option is unavailable).

Steps :

  1. Create a new Plist in your projects root directory, named e.g. yourappname.entitlements
  2. Set com.apple.security.app-sandbox to YES
  3. Add all other necessary options
  4. Verify that a Code Signing Identity has been set
  5. Under Build Settings, set Code Signing Entitlements to yourappname/yourappname.entitlements

Example : (using old-style plist format)

{
   "com.apple.security.app-sandbox" = true;
   "com.apple.security.files.user-selected.read-write" = true;
   "com.apple.security.print" = true;
}

Ετικέττες

-

Σού άρεσε? Πρότεινέ το σ' έναν φίλο!

Συναφή Άρθρα

Κάνε ένα σχόλιο τώρα (όσο προλαβαίνεις...)