appstore-sandbox

QLPreviewView can not show the quicklook preview in sandbox

旧时模样 提交于 2019-11-30 23:01:23
I use QLPreviewView to show the quicklook preview in the app. Without sandbox, this works well, but once change the app to sandbox, the preview can not show up. I found the error in Console: QuickLookUIHelpe(20786) deny file-read-data XXX. I have used the security-scoped bookmarks & com.apple.security.files.user-selected.read-write to grant access the user home dir, then: [allowedURL startAccessingSecurityScopedResource]; self.myPreiviewItem.myURL = fileURL; self.myQLPreviewView.previewItem = self.myPreiviewItem; [self.myQLPreviewView refreshPreviewItem]; [allowedURL

iTunes scripting with Scripting Bridge & Sandboxing

我与影子孤独终老i 提交于 2019-11-30 21:04:34
问题 I have an app which tells iTunes to play music using the ScriptingBridge framework. The app either tells iTunes to play a playlist or a certain track. The app is also sandboxed. To play a playlist, here's what I have: iTunesPlaylist* playlist = ... [playlist playOnce: YES]; To play a track, it's pretty straightforward as well: iTunesTrack* track = ... [track playOnce: YES]; Since my app is sandboxed, I have the following lines in my entitlements file: <key>com.apple.security.scripting-targets

Mac App Store: circumvent sandbox requirement

﹥>﹥吖頭↗ 提交于 2019-11-30 19:28:44
问题 As many sources state on the internet, you need to have your app Sandboxed to be able to deploy it in the App Store. Furthermore, it is impossible to use the accessibility api (AXUIElement.h) when sandboxed,according to this. However, some apps still seem to use this api. One of these apps is Cinch. In the installation procedure of Cinch you need to give Cinch rights to use the accessibility API, so clearly they are using this API. After checking out the binary from the app store with the

QLPreviewView can not show the quicklook preview in sandbox

蹲街弑〆低调 提交于 2019-11-30 18:04:18
问题 I use QLPreviewView to show the quicklook preview in the app. Without sandbox, this works well, but once change the app to sandbox, the preview can not show up. I found the error in Console: QuickLookUIHelpe(20786) deny file-read-data XXX. I have used the security-scoped bookmarks & com.apple.security.files.user-selected.read-write to grant access the user home dir, then: [allowedURL startAccessingSecurityScopedResource]; self.myPreiviewItem.myURL = fileURL; self.myQLPreviewView.previewItem =

How to run an AppleScript from a sandboxed application on a Mac (OS X)

扶醉桌前 提交于 2019-11-30 13:18:32
问题 We are developing an application for the Mac App Store using Qt 5.2.0.Framework on MacOSX 10.9. Here is a simple AppleScript that creates a Microsoft Excel workbook and saves to any location. tell application "Microsoft Excel" set myworkbook to make new workbook set fname to POSIX file "/Private/var/root/Download/ExcelFile" as text save workbook as myworkbook filename fname end tell The above script is saved as Untitled.scpt in /Library/ApplicationScript/ . Inside the application, we use the

iOS 12 IAP Sandbox

强颜欢笑 提交于 2019-11-30 12:13:42
I was watching this WWDC18 talk , and they've explicitly announced that they'll allow developers to simultaneously connect one Sandbox Account for IAP testing - when in Developer Mode and in iOS12 . Screenshot of the moment that they show the feature Straight to the question: I've tried to access it from both my iPhone 6S and iPhone X - both on iOS 12 -, but neither had this option at the end of the screen. Also, I've searched about this topic, and no one seems to be addressing this issue. The "Apple ID > iTunes & App Stores" on my device This feature is incredible because it removes the need

Trouble creating Security-Scoped Bookmark

冷暖自知 提交于 2019-11-30 11:56:33
I'm converting my Lion app to use the App Sandbox. I'm trying to make use of the security-scoped bookmarks feature introduced in 10.7.3 to allow persistent access to a folder. The code I have below returns a nil bookmark, and produces the following log message: XPC couldn't look up the Mach service for scoped bookmarks agent . I set the User Selected File Access entitlement to Read/Write Access , and also tried with and without the surrounding ..AccessingSecurityScopedResource calls. I think I'm doing everything right according to the documentation, so I'd appreciate any pointers. The code was

SMLoginItemSetEnabled sometimes silently fails to launch sandboxed UI helper

青春壹個敷衍的年華 提交于 2019-11-30 09:00:20
I have an app that is sandboxed, and includes a helper that presents some UI (as a full-screen window, but could be a status item or similar too). This works... most of the time. But sometimes it doesn't; it just silently fails to start the helper. Since the helper has UI, I use SMLoginItemSetEnabled to load it, then NSXPCConnection to communicate with it. But sometimes SMLoginItemSetEnabled fails to launch it, while still returning YES. This seems to be due to an old build of the app somewhere on the machine; that seems to confuse the login mechanism. Deleting the old app fixes it, but I can

How to run an AppleScript from a sandboxed application on a Mac (OS X)

南楼画角 提交于 2019-11-30 07:02:17
We are developing an application for the Mac App Store using Qt 5.2.0.Framework on MacOSX 10.9. Here is a simple AppleScript that creates a Microsoft Excel workbook and saves to any location. tell application "Microsoft Excel" set myworkbook to make new workbook set fname to POSIX file "/Private/var/root/Download/ExcelFile" as text save workbook as myworkbook filename fname end tell The above script is saved as Untitled.scpt in /Library/ApplicationScript/ . Inside the application, we use the Cocoa framework to execute the AppleScript. This AppleScript works in a non-sandboxed application. It

Trouble creating Security-Scoped Bookmark

假装没事ソ 提交于 2019-11-29 17:34:12
问题 I'm converting my Lion app to use the App Sandbox. I'm trying to make use of the security-scoped bookmarks feature introduced in 10.7.3 to allow persistent access to a folder. The code I have below returns a nil bookmark, and produces the following log message: XPC couldn't look up the Mach service for scoped bookmarks agent . I set the User Selected File Access entitlement to Read/Write Access , and also tried with and without the surrounding ..AccessingSecurityScopedResource calls. I think