Skip to content

Commit 1d66c4f

Browse files
committed
Remove workaround for old bug
This issue was fixed long ago.
1 parent f716b3a commit 1d66c4f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Sources/SWBUtil/Xcode.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ public struct XcodeVersionInfo: Sendable {
6565
throw StubError.error("Failed to decode version plist at '\(versionPath.str)': \(error.localizedDescription)")
6666
}
6767
let (shortVersion, productBuildVersion) = try (Version(versionStrings.shortVersionString), versionStrings.productBuildVersion.map(ProductBuildVersion.init))
68-
69-
// <rdar://41211049> Guard against corrupt version info making its way into DTXcodeBuild and DTPlatformBuild
70-
if let productBuildVersion, productBuildVersion.major != shortVersion[0] {
71-
throw StubError.error("invalid content in '\(versionPath.str)' - ProductBuildVersion '\(productBuildVersion)' does not match CFBundleShortVersionString '\(shortVersion)' because their major version numbers differ (\(productBuildVersion.major) vs \(shortVersion[0])).")
72-
}
73-
7468
return XcodeVersionInfo(shortVersion: shortVersion, productBuildVersion: productBuildVersion)
7569
}
7670
}

0 commit comments

Comments
 (0)