From what I've read on this forum, ePub validity checkers are notoriously fickle, and the one used by the Apple store seems to be particularly bad. As far as I know, Calibre only creates valid ePub. I've heard mention of Sigil and Flightcrew as passable validity checkers. Others with more experience in these matters will no doubt be along shortly