Sunday, October 7, 2012

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



1 comment:

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

    ReplyDelete