appstore-sandbox

Creating playlists in iTunes using Scripting Bridge in a Sandboxed app

柔情痞子 提交于 2019-12-22 01:15:06
问题 Is this possible? In this question I saw that you add to the entitlements file: <key>com.apple.security.scripting-targets</key> <dict> <key>com.apple.iTunes</key> <array> <string>com.apple.iTunes.library.read</string> <string>com.apple.iTunes.playback</string> </array> </dict> for read access. But how do you get write access? I looked in the documentation and they suggest the manual for sdef , but I couldn't extract any information from this. Also, would this hamper a submission to the App

Sandbox - killall Operation not permitted

六月ゝ 毕业季﹏ 提交于 2019-12-21 22:11:12
问题 I'm writing a small Mac application (in Obj-C) which runs the following command: system("killall Finder"); I wanted to see what would happen if I sandbox the app (as sandboxing will be required on June 01), and the app wouldn't work. I got the following response: killall: warning: kill -TERM 6524: Operation not permitted Is there any way to get around that? As in a specific entitlement to add or another way to run the command? Thanks in advance. 回答1: Your app completely goes against the

iOS itunesconnect sandbox test account (Invalid Year)

孤街醉人 提交于 2019-12-20 11:54:09
问题 This is so weird! last week I created a test user account and it was just fine but today, it is asking me for adding birth year! as you see in the below screenshot. there's no year field to fill in and it is asking for it?! Apple, are you serious? if I'm doing something wrong, please tell me... UPDATE: it seems like it was a bug on apple's page. it worked just now. I lost two days though! 回答1: This was a temporary bug in itunesconnect between 27th and 30th of August. Same problem also

'sandboxd: deny file-write-create' when writing to app's own bundle

北慕城南 提交于 2019-12-20 07:18:20
问题 I've written a program in the Mac App store which displays some graphics. Occasionally it updates these off the internet. As with most folks, I'm having to Sandbox my app now. Almost everything is working, but when updating it saves a file in my app's own bundle and fails with 'sandboxd: deny file-write-create' I just use fopen(..., "wb") The path passed into fopen is: /Users/MyUser/Library/Developer/Xcode/DerivedData/MyApp-czuwveatgjffaggwqjdqpobjqqop/Build/Products/Debug/My.app/Contents

QuickLook Plugin Failing with sandboxing error

廉价感情. 提交于 2019-12-20 01:58:23
问题 I have a QLPlugin that resides in my app's bundle. It worked on Mountain Lion and earlier, but now on Mavericks, only the thumbnail generator works. The preview generator fails with a sandboxing error in Console: 8/5/14 7:41:34.000 PM kernel[0]: Sandbox: QuickLookSatelli(98371) deny file-read-data <path to file> Both the thumbnail and preview generators log this error, but a thumbnail still gets generated, whereas a preview does not. It runs (via qlmanage ) in Xcode, logging some semi-related

WkWebView problems in macOS Mojave

非 Y 不嫁゛ 提交于 2019-12-18 07:08:14
问题 I have a very simple App that just displays a Website in a WKWebView but after upgrading to macOS Mojave i get some weird warnings messages. The App compiles but doesn't start. My Code: @IBOutlet var webView: WKWebView! override func loadView() { webView = WKWebView() webView.navigationDelegate = self view = webView } override func viewDidLoad() { super.viewDidLoad() let url = URL(string: "https://www.apple.com")! webView.load(URLRequest(url: url)) } The warnings i get: 2018-10-08 19:27:24

How can I know the Apple Event Access Groups used by an application?

本小妞迷上赌 提交于 2019-12-18 05:21:32
问题 Apples' Sandobox is supposed to use Apple Event Access Groups, which allow applications to communicate with each other, as described in the WWDC video "Session 206 Secure Automation Techniques In OS X" However, what is not mentioned (and I could find no reference to it in Xcode 5.x documentation) is how can I find out which Apple Event Access Groups are defined for a specific application. For example, if I want my App to communicate with Pages (or Photoshop, or Firefox, etc.), how can I find

App Sandbox: document-scoped bookmark not resolving; not returning any error

微笑、不失礼 提交于 2019-12-17 19:33:05
问题 I'm sandboxing my app, and trying to allow for import/export of multiple files, using an XML file to refer to them. To allow my app (or another sandboxed app) access to the files listed in the XML, I'm also including a serialized security-scoped bookmark. I'm serializing it as described in this answer, and my unit tests (which are not sandboxed) write and read the XML data without issue. When my app resolves the bookmark, the NSURL returned is nil, as is the NSError reference. Since I don't

macOS Entitlements audio-input vs. microphone

跟風遠走 提交于 2019-12-14 03:50:00
问题 For the macOS sandbox there are two entitlement keys: com.apple.security.device.audio-input com.apple.security.device.microphone I tested both and both allow microphone input. What is the difference between them? 回答1: com.apple.security.device.microphone is a sandbox entitlement. If you want to use the microphone in a sandboxed app, you will need to enable it, com.apple.security.device.audio-input is a hardened runtime entitlement. If you want to use the microphone in an app built with the

Not receiving any UDP data on a socket when App Sandbox is on in Cocoa app

霸气de小男生 提交于 2019-12-14 02:30:12
问题 I have a cocoa app written in Swift 3.0, which is using framework written using C++/Boost to receive UDP data on socket. But when the App Sandbox Capability is switched on in cocoa app i am not receiving any data from the socket, which i am also using to send data to the server first. When App Sandbox is switched off everything is working as expected. Entitlements com.apple.security.network.client and om.apple.security.network.server are set to YES. Is there anything i can do to make it