"Couldn’t communicate with a helper application" on 10.10

Dr.Kameleon picture Dr.Kameleon · Nov 9, 2014 · Viewed 15.6k times · Source

I'm suddenly getting this error on Yosemite:

***storageTaskManagerExistsWithIdentifier:withIdentifier failed: 
Error Domain=NSCocoaErrorDomain 
Code=4099 "Couldn’t communicate with a helper application." 
(The connection to service named com.apple.nsurlstorage-cache was invalidated.) 

UserInfo=0x6000000621c0 
{NSDebugDescription=The connection to service named com.apple.nsurlstorage-cache was invalidated.}; 

The app was working perfectly on Mavericks. Any ideas what might be going on?

(I don't even have a clue where too look at... Sure, I have a WebView in there, but I haven't yet manage to figure out where the error is triggered...)

Answer

martn_st picture martn_st · Nov 26, 2014

This issue is very likely due to sandboxing as @ingrid already pointed out. But if you want to distribute our app(s) via the Mac App Store you can not just switch sandboxing off (which isn't recommended anyway). Instead enable the 'Outgoing Connections' capability.

  • Click on your project file
  • Choose the App's build target
  • On the 'Capabilities' tab extend 'App Sandbox'
  • Enabled the 'Outgoing Connections (Client)' checkbox

enter image description here