appstore-sandbox

NSSavePanel is not saving a file after sandboxing an app

好久不见. 提交于 2019-12-04 03:54:08
I'm having a problem saving a string file with NSSavePanel after sandboxing the app for the Mac App Store. I set com.apple.security.files.user-selected.read-write to YES and the NSOpenPanel is working as it should. When I try to save a new file, though, it seems that everything is working fine but then there is no saved file where it should be.... This is the code I am using to save the file: NSSavePanel *save = [NSSavePanel savePanel]; long int result = [save runModal]; if (result == NSOKButton) { NSString *selectedFile = [save filename]; NSString *fileName = [[NSString alloc] initWithFormat:

Alternatives for CGEventPostToPSN() for activating an other app's menu item in a sandboxed environment?

梦想与她 提交于 2019-12-03 22:40:54
I have this app where I need to activate an other app's menu item (like Print cmd+p) from within my app. Right now I'm using CGEventPostToPSN() to do the job and it works fine, but when I activate sandboxing, it stops working. CGEventPostToPSN(&psn, keyDownEvent); CFRelease(keyDownEvent); CGEventPostToPSN(&psn, keyUpEvent); CFRelease(keyUpEvent); My question now is what can I do when I need to enable sandboxing? I heard a lot about the Accessibility API but I was unable to find out how I can activate an other app's menu item. I'm thankful for any answer on this problem. Fabian In a sandboxed

File access in a sandboxed Mac app with swift

时光总嘲笑我的痴心妄想 提交于 2019-12-03 12:53:20
问题 I am working on an app for OS X 10.9 with swift, sandboxed. The app needs access to a SQLite database file. I let the user choose/open a file with NSOpenPanel. I then save the file path with NSUserDefaults for later use. I want this file to be opened automatically every time when the app is started again. I get the stored path from the NSUserDefault, but when I open the file with this path I get an error, saying I have no permission to access the file. (it is working without sandboxing) It

File access in a sandboxed Mac app with swift

ぐ巨炮叔叔 提交于 2019-12-03 03:10:47
I am working on an app for OS X 10.9 with swift, sandboxed. The app needs access to a SQLite database file. I let the user choose/open a file with NSOpenPanel. I then save the file path with NSUserDefaults for later use. I want this file to be opened automatically every time when the app is started again. I get the stored path from the NSUserDefault, but when I open the file with this path I get an error, saying I have no permission to access the file. (it is working without sandboxing) It looks like bookmark's are the solution to my problem. Is there a good tutorial how to use bookmark's with

iOS itunesconnect sandbox test account (Invalid Year)

让人想犯罪 __ 提交于 2019-12-03 01:53:10
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! MarkHim This was a temporary bug in itunesconnect between 27th and 30th of August. Same problem also mentioned in "Invalid year" error when setting up Sandbox Tester Account iTunesConnect unable to accept

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

若如初见. 提交于 2019-12-02 10:23:07
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/Resources/the_file.foo The path is created using: CFBundleRef bundle = CFBundleGetMainBundle(); CFURLRef

QuickLook Plugin Failing with sandboxing error

微笑、不失礼 提交于 2019-12-02 00:06:25
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 errors: 2014-08-05 19:39 :33.008 qlmanage[98314:303] *** CFMessagePort: bootstrap_register(): failed

How do I add a Webkit plugin to my sandboxed OS X app WebView?

回眸只為那壹抹淺笑 提交于 2019-12-01 11:02:54
问题 I'm new to OS X application development, so bear with me.....I've got an OS X application that extensively uses a WebView to provide the user with a video conference/screensharing feature which relies on a browser plugin. The video plugin works when I have sandboxing disabled, but we'd like to distribute our app in the OS X App Store and need to get it to work with a sandboxed WebView. My question is, how can I enable sandboxing and have my sandboxed WebView include the browser plugin? Can I

Permissions error when saving file (sandbox)

守給你的承諾、 提交于 2019-12-01 04:20:09
问题 I'm trying to save a file to a path, in a sandboxed application [OS X], but so far am getting an error almost every time I try to save. The error is.. Error saving: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “test.txt” in the folder “Testing”." UserInfo=0x1001f5e70 {NSFilePath=/Users/Seb/Desktop/Testing/test.txt, NSUnderlyingError=0x1001f5d70 "The operation couldn’t be completed. Operation not permitted"} I have set "User Selected File" of my

Mac App Store: circumvent sandbox requirement

我与影子孤独终老i 提交于 2019-12-01 00:06:06
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 following command: codesign --display --entitlements - /Applications/Cinch.app It seems the app is not