appstore-sandbox

Mac App Sandbox Group Container problems

百般思念 提交于 2021-02-19 01:58:07
问题 I'm having some trouble with two Sandboxed applications in one Application Group. In my Entitlements file i have the following: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/ PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>com.apple.security.app-sandbox</key> <true/> <key>com.apple.security.application-groups</key> <array> <string>TEAM_ID.com.Company.AppName</string> </array> </dict> </plist> Where 'Company' and

Reusing Apple Sandbox security-scoped bookmarks

自作多情 提交于 2021-02-07 15:41:11
问题 I am creating a application which is reading files outside the application sandbox. I need the user's permission to read these files and I have got the security-scoped bookmarks to work, by making the user pick the path in a NSOpenPanel . My problem is that I don't want the user to give me permission every time the application accesses the same path. I am saving the bookmarks in the NSApplicationSupportDirectory folder. This works fine until the user restarts the computer, then it seems like

Reusing Apple Sandbox security-scoped bookmarks

本秂侑毒 提交于 2021-02-07 15:41:06
问题 I am creating a application which is reading files outside the application sandbox. I need the user's permission to read these files and I have got the security-scoped bookmarks to work, by making the user pick the path in a NSOpenPanel . My problem is that I don't want the user to give me permission every time the application accesses the same path. I am saving the bookmarks in the NSApplicationSupportDirectory folder. This works fine until the user restarts the computer, then it seems like

helper app sandboxing and security scoped bookmarks

天涯浪子 提交于 2021-01-28 03:23:01
问题 so Ive been tearing my hair out with this... I have a main app, and a helper app. both are sandboxed and are sharing data using App Groups. I talk to the helper app by way of NSXPCConnection. I have the helper app set up as a login item using SMLoginItemSetEnabled . the helper app runs as a daemon when the user has it activated. this all works well. the problem is with the security scoped bookmarks. The helper app needs to access system files. when i need to grant access to new locations,

Getting current working directory from a Sandboxed command-line app

佐手、 提交于 2021-01-27 04:13:13
问题 I'm now trying to sandbox my command-line app which is written in Objective-C. Issue When the app was not sandboxed, I could get the directory where the user invoked the app using [[NSFileManager defaultManager] currentDirectoryPath] . However, after sandboxing, the app always returns for current directory /Users/{MY_ACCOUNT}/Library/Containers/{BUNDLE_IDENTIFIER}/Data no matter from where the command-line app was invoked. Example Code Actually, I wanna know the absolute path to the files

Getting current working directory from a Sandboxed command-line app

岁酱吖の 提交于 2021-01-27 04:12:09
问题 I'm now trying to sandbox my command-line app which is written in Objective-C. Issue When the app was not sandboxed, I could get the directory where the user invoked the app using [[NSFileManager defaultManager] currentDirectoryPath] . However, after sandboxing, the app always returns for current directory /Users/{MY_ACCOUNT}/Library/Containers/{BUNDLE_IDENTIFIER}/Data no matter from where the command-line app was invoked. Example Code Actually, I wanna know the absolute path to the files

How to properly copy files to Application Scripts folder from Sandboxed App?

旧街凉风 提交于 2020-07-16 07:01:21
问题 I'm really confused about how to properly copy files and grant permission to execute e.g. an AppleScript file from a sandboxed application. I've read several articles and threads but the more I read, the more it confuses me. The Task My app needs to run a very simple AppleScript from an .scpt file. To do so (if I got this right), I need to copy this file into Users/thisUser/Library/Application \Scripts/.com.developerName.appName/ . Before I can interact with this folder the user needs to

Ffmpeg gets aborted in an Electron sandboxed application

て烟熏妆下的殇ゞ 提交于 2020-07-06 20:30:08
问题 I have an Electron app, published on the Mac AppStore, and sandboxed. I'm trying to add a new feature that will encode/decode videos on the fly so I can stream more video formats in an Electron context. I'm using fluent-ffmpeg and a static exec of ffmpeg. Everything works awesomely, I've uploaded the sandboxed app to Apple, and got rejected because ffmpeg is using by default a secure transport protocol which is using non-public API, this is what they've sent me with the rejection: Your app