Tests: Fix xcode version detection for Xcode 13 on ARM
Running xcode -version
on an ARM box prints content to stderr:
objc[...]: Class ... is implemented in both...
One of the two will be used. Which one is undefined.
Capture and parse only stdout. Otherwise we might configure test behavior for the wrong version of Xcode.
Backport: release