If the Xcode version is major.minor.patch, the Number(xcodeVersion) is returning NaN, so the < 10 check is always false.
I could fix the version check, but since Xcode 10 is ancient, I think it's better to just remove the code as it's not doing anything.
If the Xcode version is major.minor.patch, the
Number(xcodeVersion)
is returningNaN
, so the< 10
check is always false. I could fix the version check, but since Xcode 10 is ancient, I think it's better to just remove the code as it's not doing anything.