xcode_requirement: handle nil @version. by MikeMcQuaid · Pull Request #3780 · Homebrew/brew

When the Xcode requirement doesn't specify a version then we need to guard this check. Fixes Homebrew/homebrew-core#23838 CC @ilovezfs @fxcoudert