appstore-sandbox

Can't search music using iTunes Scripting Bridge and Sandboxing

房东的猫 提交于 2019-12-08 09:41:57
问题 I am using iTunes Scripting Bridge to search through the user's music in iTunes. Unfortunately, when I have App Sandbox enabled and use the following method from iTunes.h: (iTunesTrack *) searchFor:(NSString *)for_ only:(iTunesESrA)only; It only returns nil. But if I disable App Sandboxing, it works perfectly fine. I can't seem to figure out what entitlements I need to include in my entitlement file to have this working correctly. Any ideas? My code: SBElementArray *iTunesSources = [self

How to Run a Shell Script with Mac App Sandbox Enabled?

好久不见. 提交于 2019-12-08 01:32:06
问题 Is it possible to have an app, that runs within the sandbox, execute a shell script? The script makes use of two basic commands: defaults write killall I know that there are some exceptions to the sandbox, that can be added via the entitlements file, but not sure wheter it would be possible to have the user confirm the execution of the small script and then run it? Please give me a practical hint... When I run my app with sandbox off, everything works fine. With sandbox on both commands are

Sandbox with NSTask

北慕城南 提交于 2019-12-07 11:25:38
问题 I have sandboxing enabled and use /sbin/ping with NSTask: [task setLaunchPath:@"/sbin/ping"]; [task setArguments:[NSArray arrayWithObjects:@"-c10", iPAddress, nil]]; Everything works great and I get the expected output. I also want to use /usr/sbin/traceroute with NSTask: [task setLaunchPath:@"/usr/sbin/traceroute"]; [task setArguments:[NSArray arrayWithObject:iPAddress]]; But the task terminates with the message: NSTask: Task create for path '/usr/sbin/traceroute' failed: 22, "Invalid

Check if path under app-scoped bookmark is writable inside sandboxed app

无人久伴 提交于 2019-12-07 05:19:02
问题 I have an OS X app, which stores an app-scoped bookmark to persist access to certain directories. I am able to write to those directories without any problems, but there is a part in my code where I want to make an extra check to confirm that the path is writable and it fails. var fileManager: NSFileManager = NSFileManager.defaultManager() var baseUrl: NSURL = try! NSURL(byResolvingBookmarkData: data, …) var fileUrl: NSURL = url.URLByAppendingPathComponent("foo.txt") // Changing this order

CFMessagePort and sandboxing

Deadly 提交于 2019-12-07 04:35:21
问题 I am adapting a MacOS application to use sandboxing. It uses a helper application (an exe in the same bundle) that fails when I try calling CFMessagePortCreateRemote with a 'deny mach-lookup' message in the console. I can see the com.apple.security.temporary-exception.mach-lookup.global-name entitlement key could solve this, but it is only temporary. Is there a way to achieve a communication between two apps with a mach port in a sandboxed application? Errors: let port =

Can a sandboxed app sold on the Mac App Store access system folders?

北城余情 提交于 2019-12-07 02:49:22
问题 Is it possible for an app sold thru the Mac App Store to access system folders? I mean this: my app needs to read the contents of directories that are outside the sandbox area, lets say something like /Library/StartupItems and possibly delete a file there if the user wants. Is it possible for a sandboxed app to access system folders and delete files there? If it cannot delete, can it at least read? Do I have to enable sandbox if I want to sell on the Mac App Store? I have tried a directory at

Mac app store helper tool Sandboxing

空扰寡人 提交于 2019-12-06 10:26:40
问题 My app consist of two executables the main app executable small console app to process some files, this executable is on Resources folder (no root privileges required) The thing is that I don't know how to submit this app to appstore, I get the following response from apple Invalid Signature - the main app bundle appname at path appname.app is signed but the signature is invalid. The following error(s) were reported from codesign: a sealed resource is missing or invalid In architecture: i386

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

依然范特西╮ 提交于 2019-12-06 08:11:10
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 this... Any help will be highly appreciated. Thanks in advance... Michael Dautermann I spent some time

How to Run a Shell Script with Mac App Sandbox Enabled?

混江龙づ霸主 提交于 2019-12-06 07:42:15
Is it possible to have an app, that runs within the sandbox, execute a shell script? The script makes use of two basic commands: defaults write killall I know that there are some exceptions to the sandbox, that can be added via the entitlements file, but not sure wheter it would be possible to have the user confirm the execution of the small script and then run it? Please give me a practical hint... When I run my app with sandbox off, everything works fine. With sandbox on both commands are not working and this is shown in the console: killall: warning: kill -TERM 12322: Operation not

What Scripting Targets exist for iTunes?

混江龙づ霸主 提交于 2019-12-06 07:09:43
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. In OS X 10.9 Mavericks, you can view the com.apple.iTunes.sdef file at /System/Library/Frameworks/Foundation.framework/Versions/Current/Resources . This lists the scripting target access group associated with each AppleScript command. There are six