requirements: check Xcode version is a string.

Fixes #34822.