appstore-sandbox

Timeline for mac sandbox entitlements and related features

蹲街弑〆低调 提交于 2020-01-05 04:30:09
问题 I understand that sandbox was introduced in Mac OS X Lion (10.7) but temporary exception entitlements, specifically com.apple.security.temporary-exception.files.home-relative-path.read-write, were introduced in a later 10.7.x update (which one?) Similarly security scoped bookmarks were introduced in 10.7.3. My Mac app (not currently sandboxed) is a document based app that creates documents that have references to pictures on users' mac. Once a user uses some pictures in his document we simply

How to Codesign Growl.framework for Sandboxed Mac App

那年仲夏 提交于 2020-01-03 17:36:52
问题 I'm trying to submit a Mac app for Approval in the App Store, but linking with Growl is causing a validation error. I'm trying to re-codesign from the command line, but I'm getting the following error: Ashs-MacBook-Pro:500px Uploader ash$ codesign -f -v -s "3rd Party Mac Developer Application: 500px Inc." ./Growl.framework/Versions/A ./Growl.framework/Versions/A: replacing existing signature ./Growl.framework/Versions/A: object file format unrecognized, invalid, or unsuitable I've tried re

How to Codesign Growl.framework for Sandboxed Mac App

巧了我就是萌 提交于 2020-01-03 17:35:09
问题 I'm trying to submit a Mac app for Approval in the App Store, but linking with Growl is causing a validation error. I'm trying to re-codesign from the command line, but I'm getting the following error: Ashs-MacBook-Pro:500px Uploader ash$ codesign -f -v -s "3rd Party Mac Developer Application: 500px Inc." ./Growl.framework/Versions/A ./Growl.framework/Versions/A: replacing existing signature ./Growl.framework/Versions/A: object file format unrecognized, invalid, or unsuitable I've tried re

Security-Scoped Bookmarks for a directory

无人久伴 提交于 2020-01-03 15:36:27
问题 I need to give full read/write permission for a directory where the application write some file to this directory. I read that using sandboxed application it required to Enable Security-Scoped Bookmark and URL Access to access a folder after relaunch the app. So I am trying to implement it based on the code here with some minor modification What is the correct way to handle stale NSURL bookmarks? NSOpenPanel* openDlg = [NSOpenPanel openPanel]; [openDlg setCanChooseDirectories:YES]; [openDlg

How to allow permission for user's Home folder in cocoa application for mac

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-02 17:56:13
问题 I am having a mac app in which I am deleting some data from user's Home directory. My app is rejected saying the below reason. The app only finds files in the ~/Downloads folder. It would be appropriate to have the user grant access to the Home folder. So I used NSOpenPanel for asking the access from the user but I have no idea about how to give access to user's hidden folders. EDIT I have successfully enabled sandboxing for my app but now on allow button, what should I do? Please guide me on

What Scripting Targets exist for iTunes?

北战南征 提交于 2020-01-02 11:19:27
问题 Apple has a nice documented Technical Q&A page for implementing scripting targets for Mail.app. However, even though scripting targets also work for iTunes, there isn't a comprehensive list of available scripting targets. Does anybody know how to find this list? The WWDC 2012 session on Secure Automation mentions a few, but it isn't comprehensive. 回答1: In OS X 10.9 Mavericks, you can view the com.apple.iTunes.sdef file at /System/Library/Frameworks/Foundation.framework/Versions/Current

What are the current kernel resource limits on security-scoped bookmarks?

前提是你 提交于 2020-01-01 03:29:31
问题 The docs for -[NSURL startAccessingSecurityScopedResource] state: You must balance every call to the startAccessingSecurityScopedResource method with a corresponding call to the stopAccessingSecurityScopedResource method. If you fail to relinquish your access when you no longer need a file-system resource, your app leaks kernel resources. If sufficient kernel resources are leaked, your app loses its ability to add file-system locations to its sandbox, such as via Powerbox or security-scoped

Audiokit crashes when enabling sandbox in OS X

倾然丶 夕夏残阳落幕 提交于 2019-12-24 10:08:07
问题 My app using Audiokit is running perfectly without sandbox. But as soon as I enable sandbox in Xcode the app crashes when trying to initialize the mic access. (The app is on the App Store for iOS, but now I am trying to submit to the Mac Store as a OS X app but I need to enable sandbox) Has anyone been able to submit a Mac app to the Mac App Store with Audiokit in it? ERROR: >avae> AVAudioEngine.mm:275: AttachNode: required condition is false: node != nil 回答1: To enable microphone access in

Swift Execute command line command in Sandbox mode

家住魔仙堡 提交于 2019-12-23 05:52:00
问题 Currently I am trying to get my hands on Swift programming. I try to execute a command line command from within my macOS Swift application . Without setting my application being sandboxed everything is working fine. But since I activate the Sandbox the command will no longer work but does not throw any errors and terminates with status code 0 . So the simplest use case is to start VSCode from my application. The method which is responsible for executing the shell commands is the following:

Getting path to users Library folder in OS X

痴心易碎 提交于 2019-12-22 04:35:08
问题 I need to open a NSSavePanel with the users Library folder as destination folder. Normally I would do this by entering ~/Library/ in [NSSavePanel beginSheetForDirectory] . This works fine as long as the application is not sandboxed. For sandboxed applications this will result in the NSSavePanel trying to access a folder inside the applications document "box". I cannot refer to /Users/username/Library/ as I do not know the users username at runtime. So how do I link to this path in cocoa? 回答1: