Help! "Do you want "Unity.App" to accept incoming network connection every time!!

Recently, after I upgraded Unity to 3.5.6, every time I start up Unity it would ask me :
“Do you want application “Unity.App” to accept incoming network connections?”
Even though I already allowed it in the OSX firewall. I have never encounter this problem prior to 3.5.6 so I am wondering what cause this problem? No matter how I change the settings in the firewall (allow, disallow, restart the computer…etc) it just won’t stick!! I will ask me every time I start up Unity. Can anyone help?

So nobody encounter this problem before?

Please file a bug report with OS and network set-up etc.

Hi, this is not a Unity Bug, but an OS bug, I resolved the issue by going into my firewall settings and deleting the Unity entry there, I’ve also had to do this for other apps, ie Maya and Outlook. Hope this helps.

I think I have found something, it may have something to do with code signing -
http://blog.avisi.nl/2011/12/28/mac-os-x-firewall-accept-incoming-network-connections/

So, does that mean Unity didn’t get its “code signed” as trusted app ?? Did someone at Unity forgot to include the trusted certificate in the Unity.app?

EDIT: I tried this method and this is the error message I got :

codesign -vvv /Applications/Unity/Unity.app/

/Applications/Unity/Unity.app: valid on disk
/Applications/Unity/Unity.app: does not satisfy its designated Requirement

So does anyone know what it means? And how do I fix this?

EDIT 2: This is what I found at Apple’s own documentation:
Technical Note TN2206
Mac OS X Code Signing In Depth
http://developer.apple.com/library/mac/#technotes/tn2206/_index.html
https://developer.apple.com/library/mac/#documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html

I tried that. Still didn’t work. Still ask me “Do you want application “Unity.App” to accept incoming network connections?” every single time.

I think it must be something specific to Unity, since it doesn’t happen with 3.4, only 3.5 and 4.0. Although it will happen with 3.4 if you’ve launched 3.5 or 4.0, but only once (until you launch 3.5 or 4.0 again). Additionally, 3.5 and 4.0 cause the “incoming connection” dialog to appear when switching projects, whereas 3.4 does not.

–Eric

Oh wow, so you are having this problem too? I thought its me. I am thinking this is to do with Code Signing certificates and how UT define them which probably got screw up because of some Asset Store editor extensions.

Why does unity ask for this? Does information about our projects get transmitted in anyway?

I just started to get this when I upgraded to 4.2. I tried deleting the firewall entries, no difference.

Besides being annoying, it stops my automated builds. I’ll file a bug report.

i’m having this alert back since 4.2… no way to remove it

Yes there’s a one time piece of data sent to unity tech about the hardware etc used for stats.unity3d.com
Mobile can opt-out of this in player settings, and the editor can opt out by unchecking the relevant entry in preferences.

This is the part where unity scan your hard drive and upload the data to the NSA and detect where pirates live*

  • No, it’s just for checking what parts of the editor actually get used, and what hardware is being used with unity. It’s harmless.

Strangely, it stopped happening to me with 4.2 a few weeks ago for no apparent reason, though I accidentally launched 4.1 once and it still happened with that version.

Note that this has no effect on the alert that pops up every time you launch Unity (or used to pop up, in my case now).

–Eric

This is still happening with 4.5.0f6 on Mavericks. Bug report already filed a while ago, but no response yet, and it’s REALLY annoying. Happens every time I open a project. Does anyone know a way to stop it?

Currently only way to use batch mode in OS X is to disable firewall, so that the dialog does not pop-up. Is it really so that this Pro feature that helps to automate builds has been unfixed almost two years? How about disabling the Unity usage stats in batch mode as a fast fix?

Sorry for necro posting but as this notification kept appearing to me on launch since I’ve updated to Unity 5.5 (didn’t have with 5.4), and none of the above solutions worked for me (Unity was already added to Firewall’s exceptions with network connections allowed). I figured I might share my solution, the only one that worked for me:
Looks like Unity 5.5 is not signed for some reason or the signature got broken.

When I pulled up Terminal and typed:
codesign –verify -vv /Applications/Unity/Unity.app

It revealed that for some reason:

/Applications/Unity/Unity.app: code object is not signed at all
In subcomponent: /Applications/Unity/Unity.app/Contents/Frameworks/MonoEmbedRuntime/osx/libmono.a

So after a bit more googling I’ve fixed it simply by typing:

sudo codesign --force --deep --sign - /Applications/Unity/Unity.app

This forced Unity to get signed and I only had to allow incoming network connections one last time and now OSX recognizes it as trusted app and no more notifications. Hope this helps someone!

1 Like