Can I safely delete the files that cause iTunes incoming network connections alerts

itunesosx lion

I am experiencing the same issue mentioned in "iTunes.app" to accept incoming network connections? but have a question about the files that iTunes creates, which cause this issue.

I have the Firewall turned on in Lion and every time I open iTunes it asks me if I want to allow incoming connections. The solution seems to be:

Go into the iTunes package and delete all of the files that this terminal command flags as a "resource added":

$ codesign -vvv /Applications/iTunes.app/

When you rerun the terminal command, it will indicate that iTunes.app now "satisfies its Designated Requirement" and the annoying popup should go away.

However my question is: What are these files iTunes creates and is it safe to delete them? I would like to understand what I am deleting before I just do it. Any help is greatly appreciated.

Best Answer

This solution didn't work for me, but fortunately I found another way: deleting the whole contents folder and then reinstalling iTunes (in Mountain Lion). I have a longer explanation with pictures posted on my blog if it helps:

http://scientific-ocean.com/mac-quick-tips/

If you adjusted your Mountain Firewall accordingly, i.e., you added iTunes to it, you should not experience this issue. However, for some unknown reason this issue still occurs for many people. A quick solution is simply going to the “Applications” folder, right-click on “iTunes.app”, and click on “Show package contents”. Now, delete the “Contents” folder, which eventually shows up. Next, go to http://www.apple.com/itunes/download/ and download the newest version of iTunes. After the reinstalling it, the problem should be solved.

Related Question