iPhone OS 2.2.1をインストールしたiPhoneにXcodeで作成したプログラムを転送しようとすると、
Your mobile device has encountered an unexpected error (0xE8000001)
Try disconnecting and powering off the device; then power the device on and reconnect it.
などというエラーが発生し、XcodeがiPhoneを認識しないという状況に陥ります。
これの解決策は
/var/mobile/Media/PublicStaging
を削除し(jailbreakする必要があります)、再起動することです。
なぜ発生するのかは、今の自分にはよくわかりません(jailbreakしたから???)。