@@ -5,9 +5,11 @@ import co.touchlab.xcode.cli.XcodeHelper.Defaults.nonApplePlugins
55import co.touchlab.xcode.cli.util.BackupHelper
66import co.touchlab.xcode.cli.util.Console
77import co.touchlab.xcode.cli.util.File
8+ import co.touchlab.xcode.cli.util.fromString
89import co.touchlab.xcode.cli.util.Path
910import co.touchlab.xcode.cli.util.PropertyList
1011import co.touchlab.xcode.cli.util.Shell
12+ import co.touchlab.xcode.cli.util.Version
1113import kotlinx.serialization.SerialName
1214import kotlinx.serialization.Serializable
1315import kotlinx.serialization.json.Json
@@ -83,6 +85,14 @@ object XcodeHelper {
8385 checkNotNull(versionPlist.build?.trim()) { " Couldn't get build number of Xcode at $path ." }
8486 }
8587
88+ if (Version .fromString(version) >= Version .fromString(" 15.3" )) {
89+ return XcodeInstallation (
90+ version = version,
91+ build = build,
92+ path = path
93+ )
94+ }
95+
8696 val xcodeInfoPath = path / " Contents" / " Info"
8797 val pluginCompatabilityIdResult = Shell .exec(" /usr/bin/defaults" , " read" , xcodeInfoPath.value, " DVTPlugInCompatibilityUUID" )
8898 .checkSuccessful {
@@ -154,7 +164,7 @@ object XcodeHelper {
154164 val version : String ,
155165 val build : String ,
156166 val path : Path ,
157- val pluginCompatabilityId : String ,
167+ val pluginCompatabilityId : String? = null ,
158168 ) {
159169 val name: String = " Xcode $version ($build )"
160170 }
0 commit comments