sandbox

Flash videos in WebView not working in sandboxed app

时间秒杀一切 提交于 2019-12-01 12:14:54
问题 I'm having a problem with playing flash videos in my application. It's been working before, but ever since Apple has required every developer to enable entitlements and sandboxing, flash videos in the webview do not play. Everytime I disable sandboxing, it works, but if sandboxing is enabled, it doesn't. Below I've posted links images of the Sandboxing and Entitlements settings. Thanks. http://i.stack.imgur.com/LCpvJ.png http://i.stack.imgur.com/o6OVy.png 回答1: figured out how to fix it... go

How to properly enable the twig's sandbox extension in Symfony2?

假装没事ソ 提交于 2019-12-01 11:35:36
In Symfony2, there is some Twig module disabled by default. One of them is the debug extension, that adds {% debug %} tag (useful on a development environment). To enable it, nothing really difficult, you add this service to your configuration : debug.twig.extension: class: Twig_Extensions_Extension_Debug tags: - { name: 'twig.extension' } But how to enable the {% sandbox %} tag? My issue is that the extension's constructor takes security policies : public function __construct(Twig_Sandbox_SecurityPolicyInterface $policy, $sandboxed = false) { $this->policy = $policy; $this->sandboxedGlobally

App Sandbox/iCloud and Snow Leopard backwards compatibility

梦想与她 提交于 2019-12-01 07:33:39
By now all Mac App Store developers know that all apps must have the new OSX Lion Sandboxing enabled going forward. For existing apps, we must enable it in XCode 4.2 and set in place the data migration plist. So my existing Mac App Store app has a build target of OSX 10.6.8 Snow Leopard. Not only that, but it does access the webcam and also synchronizes stuff to iCal via CalendarStore API and AppleScript. I'm expecting most of my app to break when I enable the Sandbox, but when I get that working in the Sandbox I'm wondering if a Sandboxed app can run in Snow Leopard. Does anybody have

reusing security scoped bookmark

醉酒当歌 提交于 2019-12-01 06:15:22
In my app, I would like to access local file directory with security-scoped bookmark. As mentioned in App Sandbox Design Guide , I store my user's specified folder (NSOpenPanel) in security-scoped bookmark (as NSData). However, I find URLByResolvingBookmarkData is no longer available in Swift. I have no idea how can I access the url and grant the permission to the directory I previously chosen after relaunching my app. Any ideas? /// OpenPanel and set the folderPath var folderPath: NSURL? { didSet { do { let bookmark = try folderPath?.bookmarkDataWithOptions(.SecurityScopeAllowOnlyReadAccess,

reusing security scoped bookmark

送分小仙女□ 提交于 2019-12-01 05:49:05
问题 In my app, I would like to access local file directory with security-scoped bookmark. As mentioned in App Sandbox Design Guide, I store my user's specified folder (NSOpenPanel) in security-scoped bookmark (as NSData). However, I find URLByResolvingBookmarkData is no longer available in Swift. I have no idea how can I access the url and grant the permission to the directory I previously chosen after relaunching my app. Any ideas? /// OpenPanel and set the folderPath var folderPath: NSURL? {

Sandboxing my App with Scripting Bridge to send email

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 05:29:51
I'm using a scripting bridge for sending mails from my Mac App. Now I need to sandbox the app and sending mails is not longer working while sandboxing is enabled. Does anybody know how to fix that? Thanks, Andreas Code: ` /* create a Scripting Bridge object for talking to the Mail application */ MailApplication *mail = [SBApplication applicationWithBundleIdentifier:@"com.apple.Mail"]; /* create a new outgoing message object */ MailOutgoingMessage *emailMessage = [[[mail classForScriptingClass:@"outgoing message"] alloc] initWithProperties: [NSDictionary dictionaryWithObjectsAndKeys: [self

paypal sandbox unable to process request

感情迁移 提交于 2019-12-01 04:50:52
I've been working and testing the sandbox system paypal uses. It have been confusing, I've created some testing accounts. At the moment I've created a form from my site. A "Buy now" button. It's works as it should: <form id="checkout" target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" value="myemail@myaddres.com" name="business"> <input type="hidden" value="Order" name="item_name"> <input type="hidden" value="1000" name="amount"> <input type="hidden" value="50" name="tax"> <input type="hidden" value="SEK" name="currency_code"> <input type

Sandboxing my App with Scripting Bridge to send email

余生长醉 提交于 2019-12-01 04:40:21
问题 I'm using a scripting bridge for sending mails from my Mac App. Now I need to sandbox the app and sending mails is not longer working while sandboxing is enabled. Does anybody know how to fix that? Thanks, Andreas Code: ` /* create a Scripting Bridge object for talking to the Mail application */ MailApplication *mail = [SBApplication applicationWithBundleIdentifier:@"com.apple.Mail"]; /* create a new outgoing message object */ MailOutgoingMessage *emailMessage = [[[mail classForScriptingClass

Error in Sandboxed App, When loading Helper (LoginItems), code signing issue

末鹿安然 提交于 2019-12-01 03:46:50
I'm trying to get out of this problem (I hope it's the last!) Briefly, I have one status bar app, which needs to start at login. I followed this tutorial http://blog.timschroeder.net/2012/07/03/the-launch-at-login-sandbox-project/ Everything it's working, but when it's time for testing the app in a real contest, outside xcode, I end up with this message in the console system.log: appleeventsd[52]: <rdar://problem/11489077> A sandboxed application with pid 1258, "xxxxx" checked in with appleeventsd, but its code signature could not be validated ( either because it was corrupt, or could not be

My applescript doesn't work any more when I upgrade my OS X to 10.9

前提是你 提交于 2019-12-01 03:30:11
问题 The following code is trying to open the proxies settings dialog, NSAppleScript *a = [[NSAppleScript alloc] initWithSource:@"tell application \"System Preferences\"\nset current pane to pane \"com.apple.preference.network\"\nactivate\nend tell\ntell application \"System Events\" to tell process \"System Preferences\" to tell window 1\n click button -3\nclick radio button -2 of tab group 1 of sheet 1\nend tell"]; [a executeAndReturnError:nil]; it has been working well until I upgrade my Mac OS