Mac OS app entitlements block internet connection
Asked Answered
T

1

2

I have a Mac OS app that needs outgoing connections.

I've followed Apple Code Signing Guide (Xcode 4.6.2) to enable entitlements and my target summary looks like this:

enter image description here

I have a MYAPP.entitlements file in my project that looks like:

enter image description here

Everything seems to be set in the right way, but when I try to run my app, even if

- (void)webView:(WebView *)sender didStartProvisionalLoadForFrame:(WebFrame *)frame

and

- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame 

are called, nothing is loaded in my webView. Nor Little Snitch asks for connection. Then, in Console no violation is presented.

If I try to change Entitlements setting, by unchecking "Allow Outgoing Connections", Console shows Sandbox violation this way:

20/05/13 00:44:09,000 kernel[0]: Sandbox: sandboxd(908) deny mach-lookup com.apple.coresymbolicationd
20/05/13 00:44:10,593 sandboxd[908]: ([904]) MYAPP(904) deny mach-lookup com.apple.SystemConfiguration.SCNetworkReachability
20/05/13 00:44:10,601 sandboxd[908]: ([904]) MYAPP(904) deny system-socket

If I remove Enable App Sandboxing, everything works and my webView loads its contents...

I have tried:

  1. to exit Xcode
  2. to reboot my computer
  3. to boot in save mode
  4. to enable any combination of permissions in Entitlements
  5. to create a new MYAPP.entitlements file
  6. to rename my target

Anybody has experienced this behavior? Any suggestion will be very appreciated... Thank you.

Than answered 19/5, 2013 at 22:57 Comment(0)
T
1

Well, I ended up reinstalling my whole system and now it works...

Than answered 4/8, 2013 at 1:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.