I recently had a nasty problem with my iPhoto library that I corrected by rebuilding it. This restored missing/corrupted photos and fixed several other inconsistencies, so iPhoto is working properly again.
But now, iTunes is the one that's having problems. Whenever I connect my iPhone and visit the Photos pane, it tells me that my iPhoto library contains 0 photos (and, since I sync selectively, it says the same next to every item I've checked). It reported all the right counts before I rebuilt my iPhoto library.
Not only that, but whenever I sync for the first time after connecting, the photos will mysteriously disappear from my iPhone and I'm forced to resync them, even when I don't make any changes (not even outside the Photos pane). The photos then stay on my phone as usual, but once I connect and sync again, the same thing happens. I don't have a large photo library so it's only an extra couple of minutes of waiting, but it's still something I shouldn't have to put up with every single time I connect and sync my device.
I'm using iTunes 11.0.1 and iPhoto 9.4.2. My computer runs OS X 10.8.2, and my iPhone runs iOS 6.0.1. All are at their latest versions as of this writing.
What can I do to make iTunes read and sync my iPhoto library properly again?