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 e2eecf4 commit ba6b0ccCopy full SHA for ba6b0cc
plugin/src/main/kotlin/io/github/ttypic/swiftklib/gradle/task/CompileSwiftTask.kt
@@ -178,7 +178,7 @@ open class CompileSwiftTask @Inject constructor(
178
}
179
180
val output = stdout.toString().trim()
181
- val (_, majorVersion) = "Xcode (\\d+)\\.\\d+\\.\\d+".toRegex().find(output)?.groupValues
+ val (_, majorVersion) = "Xcode (\\d+)\\..*".toRegex().find(output)?.groupValues
182
?: throw IllegalStateException("Can't find Xcode")
183
184
return majorVersion.toInt()
0 commit comments