We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4361ab3 commit 1356847Copy full SHA for 1356847
buildSrc/src/main/kotlin/XCode.kt renamed to buildSrc/src/main/kotlin/BuildUtil.kt
@@ -1,4 +1,3 @@
1
-import org.gradle.util.VersionNumber
2
import java.util.concurrent.TimeUnit
3
4
fun String.runCommand(): String? {
@@ -11,10 +10,3 @@ fun String.runCommand(): String? {
11
10
output.trim()
12
}.getOrNull()
13
}
14
-
15
-fun getXCodeVersion(): VersionNumber? {
16
- val version = "/usr/bin/xcodebuild -version".runCommand() ?: return null
17
- val extracted = Regex("""Xcode\s+([0-9\\.]*).*""")
18
- .find(version)?.groupValues?.getOrNull(1) ?: return null
19
- return VersionNumber.parse(extracted)
20
-}
0 commit comments