Mac OS, camera and auto-launching application
For some reason that I can’t remember, I installed the Canon EOS utility for my Canon digital camera on my Mac a few weeks back.
Now every time I plug in either my digital camera or my iPhone an application called “Camera Window” would launch and then display an error.
To fix this problem you should launch the Image Capture application (found in Applications), select your iPhone (or other device) and there is a setting for which application, or no application, to launch when the device is connected.

Thanks to this thread for the info on how to fix it.