Fixing Do you want the application 'iTunes.app' to accept incoming network connections?

Do you want the application 'iTunes.app'
to accept incoming network connections?
It's quite common to run into the problem that a signed app on Mac OS X thinks it's been modified so the firewall will keep asking whether you want to allow this app to accept connections.









The fix is quite easy, all we need to do is find out why the firewall thinks that the app is damaged. To check, go to terminal and run:

$ codesign -vvv /Applications/iTunes.app

it will show something like this:


/Applications/iTunes.app: a sealed resource is missing or invalid
In architecture: i386
resource added: /Applications/iTunes.app/Contents/Resources/English.lproj/DevicePrefsMobileMe.nib/objects.xib
resource added: /Applications/iTunes.app/Contents/Resources/English.lproj/Localized.rsrc
resource added: /Applications/iTunes.app/Contents/Resources/English.lproj/SmartPlaylist.nib/objects.xib
resource added: /Applications/iTunes.app/Contents/Resources/iTunesASUHelper
resource added: /Applications/iTunes.app/Contents/Resources/iTunesHelper.app/Contents/_CodeSignature/CodeResources
resource added: /Applications/iTunes.app/Contents/Resources/iTunesHelper.app/Contents/Info.plist
resource added: /Applications/iTunes.app/Contents/Resources/iTunesHelper.app/Contents/MacOS/iTunesHelper
resource added: /Applications/iTunes.app/Contents/Resources/iTunesHelper.app/Contents/PkgInfo
resource added: /Applications/iTunes.app/Contents/Resources/iTunesHelper.app/Contents/Resources/iTunesHelper.icns
resource added: /Applications/iTunes.app/Contents/Resources/iTunesHelper.app/Contents/version.plist

In my case there were some extra files in the app's directory, so all I needed to do is to remove them:

$ sudo su
$ rm /Applications/iTunes.app/Contents/Resources/English.lproj/DevicePrefsMobileMe.nib/objects.xib
...

After this, firewall was happy with iTunes again:


$ codesign -vvv /Applications/iTunes.app
/Applications/iTunes.app: valid on disk
/Applications/iTunes.app: satisfies its Designated Requirement



Comments

  1. How in the world does one know which are the "extra" files that need deleting?

    ReplyDelete

Post a Comment

Popular posts from this blog

MurMurHash3, an ultra fast hash algorithm for C# / .NET

Quick select algorithm - find the Kth element in a list in linear time

Octoprint as a systemd service - running it with high priority