Fix Apple Firewall asking for permissions


This post was orignally posted on Tumblr on the blog: Nerd Ramblings. View the full syndicated blog or view the original post.

As long as I can remember every time I opened up iTunes it would ask me to allow it permissions for my firewall. I have been meaning to check this out and find out why, but I just simply have had not gotten around to it. Then it started to happen to my Dropbox. At this point I decided to delve further.

After some Googling I found out that probably it was not signed properly and that the firewall did not see it as a trusted program, when clearly it is, Apple made it of course.

So do a check for this, fire up and write this command.

  codesign -vvv /Applications/

It should return this string.

  /Applications/ valid on disk/Applications/ satisfies its Designated Requirement

Mine returned this.

  /Applications/ a sealed resource is missing or invalid/Applications/ resource modified/Applications/ resource modified

So this means it is not a trusted signed piece of software. How do we fix this? We simply uninstall iTunes and download a clean copy and install. Don’t worry about deleting iTunes, all your music and media will stay intact.

Why do the apps loose their signed code? Most probably because you have done some sort of hack. For example I changed the way iTunes had the ‘Close, Minimise, Maximise’ buttons. And for Dropbox I changed the menubar item so it was invisible. After reinstalling these hacks stayed, but the problem went away. 

Repeat this process with any app that continually asks you these questions. Hope this solved your problem.