From 51b2ddcc0569702561d3b39037052a9606e70dc0 Mon Sep 17 00:00:00 2001 From: Matt Kiazyk Date: Wed, 21 Jun 2023 19:44:15 -0500 Subject: [PATCH] feat: add support for VisionOS download --- Sources/XcodesKit/Models+Runtimes.swift | 3 + .../Fixtures/DownloadableRuntimes.plist | 913 +++++++++++++++--- .../Fixtures/LogOutput-Runtime_NoBetas.txt | 8 + .../Fixtures/LogOutput-Runtimes.txt | 26 +- Tests/XcodesKitTests/RuntimeTests.swift | 4 +- 5 files changed, 783 insertions(+), 171 deletions(-) diff --git a/Sources/XcodesKit/Models+Runtimes.swift b/Sources/XcodesKit/Models+Runtimes.swift index 7c3966a..7464816 100644 --- a/Sources/XcodesKit/Models+Runtimes.swift +++ b/Sources/XcodesKit/Models+Runtimes.swift @@ -86,6 +86,7 @@ extension DownloadableRuntime { case macOS = "com.apple.platform.macosx" case watchOS = "com.apple.platform.watchos" case tvOS = "com.apple.platform.appletvos" + case visionOS = "com.apple.platform.xros" var order: Int { switch self { @@ -93,6 +94,7 @@ extension DownloadableRuntime { case .macOS: return 2 case .watchOS: return 3 case .tvOS: return 4 + case .visionOS: return 5 } } @@ -102,6 +104,7 @@ extension DownloadableRuntime { case .macOS: return "macOS" case .watchOS: return "watchOS" case .tvOS: return "tvOS" + case .visionOS: return "visionOS" } } } diff --git a/Tests/XcodesKitTests/Fixtures/DownloadableRuntimes.plist b/Tests/XcodesKitTests/Fixtures/DownloadableRuntimes.plist index fbec1f7..4229254 100644 --- a/Tests/XcodesKitTests/Fixtures/DownloadableRuntimes.plist +++ b/Tests/XcodesKitTests/Fixtures/DownloadableRuntimes.plist @@ -148,7 +148,7 @@ arm64 maxHostVersion - 12.99.0 + 12.99 identifier com.apple.pkg.WatchSimulatorSDK6_0 @@ -312,7 +312,7 @@ arm64 maxHostVersion - 12.99.0 + 12.99 identifier com.apple.pkg.WatchSimulatorSDK6_1 @@ -439,6 +439,11 @@ 1587361125 identifier com.apple.pkg.AppleTVSimulatorSDK13_4 + hostRequirements + + maxHostVersion + 12.99 + name tvOS 13.4 Simulator platform @@ -470,6 +475,8 @@ arm64 + maxHostVersion + 12.99 identifier com.apple.pkg.WatchSimulatorSDK6_2 @@ -530,6 +537,11 @@ 2 fileSize 3373020521 + hostRequirements + + maxHostVersion + 12.99 + identifier com.apple.pkg.iPhoneSimulatorSDK13_7 name @@ -557,6 +569,11 @@ 2 fileSize 4713624934 + hostRequirements + + maxHostVersion + 13.99 + identifier com.apple.pkg.iPhoneSimulatorSDK14_0 name @@ -611,6 +628,11 @@ 2 fileSize 4879693158 + hostRequirements + + maxHostVersion + 13.99 + identifier com.apple.pkg.iPhoneSimulatorSDK14_1 name @@ -638,6 +660,11 @@ 2 fileSize 2558604649 + hostRequirements + + maxHostVersion + 13.99 + identifier com.apple.pkg.AppleTVSimulatorSDK14_0 name @@ -665,6 +692,11 @@ 2 fileSize 4913771875 + hostRequirements + + maxHostVersion + 13.99 + identifier com.apple.pkg.iPhoneSimulatorSDK14_2 name @@ -719,6 +751,11 @@ 2 fileSize 2582001001 + hostRequirements + + maxHostVersion + 13.99 + identifier com.apple.pkg.AppleTVSimulatorSDK14_2 name @@ -746,6 +783,11 @@ 2 fileSize 2641311079 + hostRequirements + + maxHostVersion + 13.99 + identifier com.apple.pkg.AppleTVSimulatorSDK14_3 name @@ -773,6 +815,11 @@ 2 fileSize 4995102054 + hostRequirements + + maxHostVersion + 13.99 + identifier com.apple.pkg.iPhoneSimulatorSDK14_3 name @@ -831,6 +878,8 @@ minHostVersion 12.0 + maxHostVersion + 13.99 minXcodeVersion 13.0 @@ -861,6 +910,11 @@ 2 fileSize 2641114477 + hostRequirements + + maxHostVersion + 13.99 + identifier com.apple.pkg.AppleTVSimulatorSDK14_4 name @@ -888,6 +942,11 @@ 2 fileSize 2680763745 + hostRequirements + + maxHostVersion + 13.99 + identifier com.apple.pkg.AppleTVSimulatorSDK14_5 name @@ -915,6 +974,11 @@ 2 fileSize 5038290278 + hostRequirements + + maxHostVersion + 13.99 + identifier com.apple.pkg.iPhoneSimulatorSDK14_5 name @@ -1231,6 +1295,8 @@ 15.5.1.1653527639 + authentication + virtual category simulator contentType @@ -1238,26 +1304,28 @@ dictionaryVersion 2 fileSize - 3221390293 + 3304605822 identifier - com.apple.dmg.AppleTVSimulatorSDK16_0b1 + com.apple.dmg.AppleTVSimulatorSDK16_0 name - tvOS 16 beta Simulator Runtime + tvOS 16 Simulator Runtime platform com.apple.platform.appletvos simulatorVersion buildUpdate - 20J5299n + 20J373 version 16.0 source - https://devimages-cdn.apple.com/downloads/xcode/simulators/tvOS%2016%20beta%20Simulator%20Runtime.dmg + https://download.developer.apple.com/Developer_Tools/tvOS_16_Simulator_Runtime/tvOS_16_Simulator_Runtime.dmg version - 16.0.0.1 + 16.0.0.0 + authentication + virtual category simulator contentType @@ -1265,26 +1333,28 @@ dictionaryVersion 2 fileSize - 3085745062 + 3604135917 identifier - com.apple.dmg.WatchSimulatorSDK9_0b1 + com.apple.dmg.WatchSimulatorSDK9_0 name - watchOS 9 beta Simulator Runtime + watchOS 9 Simulator Runtime platform com.apple.platform.watchos simulatorVersion buildUpdate - 20R5287p + 20R362 version 9.0 source - https://devimages-cdn.apple.com/downloads/xcode/simulators/watchOS%209%20beta%20Simulator%20Runtime.dmg + https://download.developer.apple.com/Developer_Tools/watchOS_9_Simulator_Runtime/watchOS_9_Simulator_Runtime.dmg version - 9.0.0.1 + 9.0.0.0 + authentication + virtual category simulator contentType @@ -1292,26 +1362,28 @@ dictionaryVersion 2 fileSize - 3337749440 + 6280680540 identifier - com.apple.dmg.AppleTVSimulatorSDK16_0b2 + com.apple.dmg.iPhoneSimulatorSDK16_0 name - tvOS 16 beta 2 Simulator Runtime + iOS 16 Simulator Runtime platform - com.apple.platform.appletvos + com.apple.platform.iphoneos simulatorVersion buildUpdate - 20J5319f + 20A360 version 16.0 source - https://devimages-cdn.apple.com/downloads/xcode/simulators/tvOS%2016%20beta%202%20Simulator%20Runtime.dmg + https://download.developer.apple.com/Developer_Tools/iOS_16_Simulator_Runtime/iOS_16_Simulator_Runtime.dmg version - 16.0.0.2 + 16.0.0.0 + authentication + virtual category simulator contentType @@ -1319,26 +1391,28 @@ dictionaryVersion 2 fileSize - 3197699949 + 3363890340 identifier - com.apple.dmg.WatchSimulatorSDK9_0b2 + com.apple.dmg.AppleTVSimulatorSDK16_1 name - watchOS 9 beta 2 Simulator Runtime + tvOS 16.1 Simulator Runtime platform - com.apple.platform.watchos + com.apple.platform.appletvos simulatorVersion buildUpdate - 20R5307f + 20K67 version - 9.0 + 16.1 source - https://devimages-cdn.apple.com/downloads/xcode/simulators/watchOS%209%20beta%202%20Simulator%20Runtime.dmg + https://download.developer.apple.com/Developer_Tools/tvOS_16.1_Simulator_Runtime/tvOS_16.1_Simulator_Runtime.dmg version - 9.0.0.2 + 16.1.0.0 + authentication + virtual category simulator contentType @@ -1346,26 +1420,28 @@ dictionaryVersion 2 fileSize - 3298800785 + 3627381860 identifier - com.apple.dmg.AppleTVSimulatorSDK16_0b3 + com.apple.dmg.WatchSimulatorSDK9_1 name - tvOS 16 beta 3 Simulator Runtime + watchOS 9.1 Simulator Runtime platform - com.apple.platform.appletvos + com.apple.platform.watchos simulatorVersion buildUpdate - 20J5328e + 20S75 version - 16.0 + 9.1 source - https://devimages-cdn.apple.com/downloads/xcode/simulators/tvOS%2016%20beta%203%20Simulator%20Runtime.dmg + https://download.developer.apple.com/Developer_Tools/watchOS_9.1_Simulator_Runtime/watchOS_9.1_Simulator_Runtime.dmg version - 16.0.0.3 + 9.1.0.0 + authentication + virtual category simulator contentType @@ -1373,24 +1449,24 @@ dictionaryVersion 2 fileSize - 3242624768 + 6325927910 identifier - com.apple.dmg.WatchSimulatorSDK9_0b3 + com.apple.dmg.iPhoneSimulatorSDK16_1 name - watchOS 9 beta 3 Simulator Runtime + iOS 16.1 Simulator Runtime platform - com.apple.platform.watchos + com.apple.platform.iphoneos simulatorVersion buildUpdate - 20R5316e + 20B72 version - 9.0 + 16.1 source - https://devimages-cdn.apple.com/downloads/xcode/simulators/watchOS%209%20beta%203%20Simulator%20Runtime.dmg + https://download.developer.apple.com/Developer_Tools/iOS_16.1_Simulator_Runtime/iOS_16.1_Simulator_Runtime.dmg version - 9.0.0.3 + 16.1.0.0 authentication @@ -1402,24 +1478,24 @@ dictionaryVersion 2 fileSize - 3278650917 + 6407069874 identifier - com.apple.dmg.AppleTVSimulatorSDK16_0b4 + com.apple.dmg.iPhoneSimulatorSDK16_2 name - tvOS 16 beta 4 Simulator Runtime + iOS 16.2 Simulator Runtime platform - com.apple.platform.appletvos + com.apple.platform.iphoneos simulatorVersion buildUpdate - 20J5344e + 20C52 version - 16.0 + 16.2 source - https://download.developer.apple.com/Developer_Tools/tvOS_16_beta_4_Simulator_Runtime/tvOS_16_beta_4_Simulator_Runtime.dmg + https://download.developer.apple.com/Developer_Tools/iOS_16.2_Simulator_Runtime/iOS_16.2_Simulator_Runtime.dmg version - 16.0.0.4 + 16.2.0.0 authentication @@ -1431,24 +1507,24 @@ dictionaryVersion 2 fileSize - 3228397551 + 3457045786 identifier - com.apple.dmg.WatchSimulatorSDK9_0b4 + com.apple.dmg.AppleTVSimulatorSDK16_4 name - watchOS 9 beta 4 Simulator Runtime + tvOS 16.4 Simulator Runtime platform - com.apple.platform.watchos + com.apple.platform.appletvos simulatorVersion buildUpdate - 20R5332f + 20L494 version - 9.0 + 16.4 source - https://download.developer.apple.com/Developer_Tools/watchOS_9_beta_4_Simulator_Runtime/watchOS_9_beta_4_Simulator_Runtime.dmg + https://download.developer.apple.com/Developer_Tools/tvOS_16.4_Simulator_Runtime/tvOS_16.4_Simulator_Runtime.dmg version - 9.0.0.4 + 16.4.0.0 authentication @@ -1460,24 +1536,24 @@ dictionaryVersion 2 fileSize - 3300627519 + 3597497121 identifier - com.apple.dmg.AppleTVSimulatorSDK16_0b5 + com.apple.dmg.WatchSimulatorSDK9_4 name - tvOS 16 beta 5 Simulator Runtime + watchOS 9.4 Simulator Runtime platform - com.apple.platform.appletvos + com.apple.platform.watchos simulatorVersion buildUpdate - 20J5355f + 20T253 version - 16.0 + 9.4 source - https://download.developer.apple.com/Developer_Tools/tvOS_16_beta_5_Simulator_Runtime/tvOS_16_beta_5_Simulator_Runtime.dmg + https://download.developer.apple.com/Developer_Tools/watchOS_9.4_Simulator_Runtime/watchOS_9.4_Simulator_Runtime.dmg version - 16.0.0.5 + 9.4.0.0 authentication @@ -1489,24 +1565,24 @@ dictionaryVersion 2 fileSize - 3231273872 + 6182486138 identifier - com.apple.dmg.WatchSimulatorSDK9_0b5 + com.apple.dmg.iPhoneSimulatorSDK16_4 name - watchOS 9 beta 5 Simulator Runtime + iOS 16.4 Simulator Runtime platform - com.apple.platform.watchos + com.apple.platform.iphoneos simulatorVersion buildUpdate - 20R5343e + 20E247 version - 9.0 + 16.4 source - https://download.developer.apple.com/Developer_Tools/watchOS_9_beta_5_Simulator_Runtime/watchOS_9_beta_5_Simulator_Runtime.dmg + https://download.developer.apple.com/Developer_Tools/iOS_16.4_Simulator_Runtime/iOS_16.4_Simulator_Runtime.dmg version - 9.0.0.5 + 16.4.0.0 authentication @@ -1518,24 +1594,24 @@ dictionaryVersion 2 fileSize - 3304605822 + 3717677009 identifier - com.apple.dmg.AppleTVSimulatorSDK16_0 + com.apple.dmg.AppleTVSimulatorSDK17_0_b1 name - tvOS 16 Simulator Runtime + tvOS 17.0 beta Simulator Runtime platform com.apple.platform.appletvos simulatorVersion buildUpdate - 20J373 + 21J5273p version - 16.0 + 17.0 source - https://download.developer.apple.com/Developer_Tools/tvOS_16_Simulator_Runtime/tvOS_16_Simulator_Runtime.dmg + https://download.developer.apple.com/Developer_Tools/tvOS_17_beta/tvOS_17_beta_Simulator_Runtime.dmg version - 16.0.0.0 + 17.0.0.1 authentication @@ -1547,24 +1623,24 @@ dictionaryVersion 2 fileSize - 3604135917 + 3912372147 identifier - com.apple.dmg.WatchSimulatorSDK9_0 + com.apple.dmg.WatchSimulatorSDK10_0_b1 name - watchOS 9 Simulator Runtime + watchOS 10.0 beta Simulator Runtime platform com.apple.platform.watchos simulatorVersion buildUpdate - 20R362 + 21R5275s version - 9.0 + 10.0 source - https://download.developer.apple.com/Developer_Tools/watchOS_9_Simulator_Runtime/watchOS_9_Simulator_Runtime.dmg + https://download.developer.apple.com/Developer_Tools/watchOS_10_beta/watchOS_10_beta_Simulator_Runtime.dmg version - 9.0.0.0 + 10.0.0.1 authentication @@ -1576,24 +1652,24 @@ dictionaryVersion 2 fileSize - 6280680540 + 7534187147 identifier - com.apple.dmg.iPhoneSimulatorSDK16_0 + com.apple.dmg.iPhoneSimulatorSDK17_0_b1 name - iOS 16 Simulator Runtime + iOS 17.0 beta Simulator Runtime platform com.apple.platform.iphoneos simulatorVersion buildUpdate - 20A360 + 21A5248u version - 16.0 + 17.0 source - https://download.developer.apple.com/Developer_Tools/iOS_16_Simulator_Runtime/iOS_16_Simulator_Runtime.dmg + https://download.developer.apple.com/Developer_Tools/iOS_17_beta/iOS_17_beta_Simulator_Runtime.dmg version - 16.0.0.0 + 17.0.0.1 authentication @@ -1605,24 +1681,24 @@ dictionaryVersion 2 fileSize - 3326848916 + 3729832117 identifier - com.apple.dmg.AppleTVSimulatorSDK16_1_b1 + com.apple.dmg.AppleTVSimulatorSDK17_0_b2 name - tvOS 16.1 Simulator Runtime Beta + tvOS 17.0 beta 2 Simulator Runtime platform com.apple.platform.appletvos simulatorVersion buildUpdate - 20K5041d + 21J5293g version - 16.1 + 17.0 source - https://download.developer.apple.com/Developer_Tools/tvOS_16.1_beta_Simulator_Runtime/tvOS_16.1_beta_Simulator_Runtime.dmg + https://download.developer.apple.com/Developer_Tools/tvOS_17_beta_2/tvOS_17_beta_2_Simulator_Runtime.dmg version - 16.1.0.1 + 17.0.0.2 authentication @@ -1634,26 +1710,91 @@ dictionaryVersion 2 fileSize - 3619633292 + 3932198802 identifier - com.apple.dmg.WatchSimulatorSDK9_1_b1 + com.apple.dmg.WatchSimulatorSDK10_0_b2 name - watchOS 9.1 Simulator Runtime Beta + watchOS 10.0 beta 2 Simulator Runtime platform com.apple.platform.watchos simulatorVersion buildUpdate - 20S5044e + 21R5295g version - 9.1 + 10.0 source - https://download.developer.apple.com/Developer_Tools/watchOS_9.1_beta_Simulator_Runtime/watchOS_9.1_beta_Simulator_Runtime.dmg + https://download.developer.apple.com/Developer_Tools/watchOS_10_beta_2/watchOS_10_beta_2_Simulator_Runtime.dmg version - 9.1.0.1 + 10.0.0.2 - + + authentication + virtual + category + simulator + contentType + diskImage + dictionaryVersion + 2 + fileSize + 7529869240 + identifier + com.apple.dmg.iPhoneSimulatorSDK17_0_b2 + name + iOS 17.0 beta 2 Simulator Runtime + platform + com.apple.platform.iphoneos + simulatorVersion + + buildUpdate + 21A5268h + version + 17.0 + + source + https://download.developer.apple.com/Developer_Tools/iOS_17_beta_2/iOS_17_beta_2_Simulator_Runtime.dmg + version + 17.0.0.2 + + + authentication + virtual + category + simulator + contentType + diskImage + dictionaryVersion + 2 + fileSize + 7354535384 + hostRequirements + + minHostVersion + 13.4 + minXcodeVersion + 15.0 + + identifier + com.apple.dmg.xrSimulatorSDK1_0_b1 + name + xrOS 1 beta Simulator Runtime + platform + com.apple.platform.xros + simulatorVersion + + buildUpdate + 21N5165g + version + 1.0 + + source + https://download.developer.apple.com/Developer_Tools/visionOS_1_beta/visionOS_1_beta_Simulator_Runtime.dmg + version + 1.0.0.1 + + refreshInterval 86400 sdkToSeedMappings @@ -1858,64 +1999,312 @@ seedNumber 1 - - sdkToSimulatorMappings - - sdkBuildUpdate - 19E239 - sdkIdentifier - iphoneos15.4 - simulatorBuildUpdate - 19E240 + buildUpdate + 22A5358d + platform + com.apple.platform.macosx + seedNumber + 3 - sdkBuildUpdate - 19F64 - sdkIdentifier - iphoneos15.5 - simulatorBuildUpdate - 19F70 + buildUpdate + 20B5056e + platform + com.apple.platform.iphoneos + seedNumber + 3 - sdkBuildUpdate - 20A5283m - sdkIdentifier - iphoneos16.0 - simulatorBuildUpdate - 20A5283p + buildUpdate + 20K5052c + platform + com.apple.platform.appletvos + seedNumber + 3 - sdkBuildUpdate - 20J5299n - sdkIdentifier - appletvos16.0 - simulatorBuildUpdate - 20J5299n + buildUpdate + 20S5055d + platform + com.apple.platform.watchos + seedNumber + 3 - sdkBuildUpdate - 20R5287p - sdkIdentifier - watchos9.0 - simulatorBuildUpdate - 20R5287p + buildUpdate + 20S5055e + platform + com.apple.platform.watchos + seedNumber + 3 - sdkBuildUpdate - 20A5303f - sdkIdentifier - iphoneos16.0 - simulatorBuildUpdate - 20A5303f + buildUpdate + 22E5219e + platform + com.apple.platform.macosx + seedNumber + 1 - sdkBuildUpdate - 20J5319f - sdkIdentifier - appletvos16.0 - simulatorBuildUpdate - 20J5319f + buildUpdate + 20E5212f + platform + com.apple.platform.iphoneos + seedNumber + 1 + + + buildUpdate + 20L5463g + platform + com.apple.platform.appletvos + seedNumber + 1 + + + buildUpdate + 20T5222f + platform + com.apple.platform.watchos + seedNumber + 1 + + + buildUpdate + 22E5230e + platform + com.apple.platform.macosx + seedNumber + 2 + + + buildUpdate + 20E5223f + platform + com.apple.platform.iphoneos + seedNumber + 2 + + + buildUpdate + 20L5474e + platform + com.apple.platform.appletvos + seedNumber + 2 + + + buildUpdate + 20T5233d + platform + com.apple.platform.watchos + seedNumber + 2 + + + buildUpdate + 22E5245a + platform + com.apple.platform.macosx + seedNumber + 3 + + + buildUpdate + 20E5238a + platform + com.apple.platform.iphoneos + seedNumber + 3 + + + buildUpdate + 20E5239a + platform + com.apple.platform.iphoneos + seedNumber + 3 + + + buildUpdate + 20L5489a + platform + com.apple.platform.appletvos + seedNumber + 3 + + + buildUpdate + 20T5248a + platform + com.apple.platform.watchos + seedNumber + 3 + + + buildUpdate + 23A5257p + platform + com.apple.platform.macosx + seedNumber + 1 + + + buildUpdate + 21A5248u + platform + com.apple.platform.iphoneos + seedNumber + 1 + + + buildUpdate + 21J5273p + platform + com.apple.platform.appletvos + seedNumber + 1 + + + buildUpdate + 21R5275s + platform + com.apple.platform.watchos + seedNumber + 1 + + + buildUpdate + 23A5276e + platform + com.apple.platform.macosx + seedNumber + 2 + + + buildUpdate + 21A5268f + platform + com.apple.platform.iphoneos + seedNumber + 2 + + + buildUpdate + 21J5293e + platform + com.apple.platform.appletvos + seedNumber + 2 + + + buildUpdate + 21R5295e + platform + com.apple.platform.watchos + seedNumber + 2 + + + buildUpdate + 21N5165f + platform + com.apple.platform.xros + seedNumber + 1 + + + buildUpdate + 21A5268h + platform + com.apple.platform.iphoneos + seedNumber + 2 + + + buildUpdate + 21J5293g + platform + com.apple.platform.appletvos + seedNumber + 2 + + + buildUpdate + 21R5295g + platform + com.apple.platform.watchos + seedNumber + 2 + + + buildUpdate + 21N5165g + platform + com.apple.platform.xros + seedNumber + 1 + + + sdkToSimulatorMappings + + + sdkBuildUpdate + 19E239 + sdkIdentifier + iphoneos15.4 + simulatorBuildUpdate + 19E240 + + + sdkBuildUpdate + 19F64 + sdkIdentifier + iphoneos15.5 + simulatorBuildUpdate + 19F70 + + + sdkBuildUpdate + 20A5283m + sdkIdentifier + iphoneos16.0 + simulatorBuildUpdate + 20A5283p + + + sdkBuildUpdate + 20J5299n + sdkIdentifier + appletvos16.0 + simulatorBuildUpdate + 20J5299n + + + sdkBuildUpdate + 20R5287p + sdkIdentifier + watchos9.0 + simulatorBuildUpdate + 20R5287p + + + sdkBuildUpdate + 20A5303f + sdkIdentifier + iphoneos16.0 + simulatorBuildUpdate + 20A5303f + + + sdkBuildUpdate + 20J5319f + sdkIdentifier + appletvos16.0 + simulatorBuildUpdate + 20J5319f sdkBuildUpdate @@ -2045,6 +2434,214 @@ simulatorBuildUpdate 20S5044e + + sdkBuildUpdate + 20B5056e + sdkIdentifier + iphoneos16.1 + simulatorBuildUpdate + 20B5056e + + + sdkBuildUpdate + 20K5052c + sdkIdentifier + appletvos16.1 + simulatorBuildUpdate + 20K5052c + + + sdkBuildUpdate + 20S5055d + sdkIdentifier + watchos9.1 + simulatorBuildUpdate + 20S5055e + + + sdkBuildUpdate + 20B71 + sdkIdentifier + iphoneos16.1 + simulatorBuildUpdate + 20B72 + + + sdkBuildUpdate + 20K67 + sdkIdentifier + appletvos16.1 + simulatorBuildUpdate + 20K67 + + + sdkBuildUpdate + 20S71 + sdkIdentifier + watchos9.1 + simulatorBuildUpdate + 20S75 + + + sdkBuildUpdate + 20C52 + sdkIdentifier + iphoneos16.2 + simulatorBuildUpdate + 20C52 + + + sdkBuildUpdate + 20E5212f + sdkIdentifier + iphoneos16.4 + simulatorBuildUpdate + 20E5212f + + + sdkBuildUpdate + 20L5463g + sdkIdentifier + appletvos16.4 + simulatorBuildUpdate + 20L5463g + + + sdkBuildUpdate + 20T5222f + sdkIdentifier + watchos9.4 + simulatorBuildUpdate + 20T5222f + + + sdkBuildUpdate + 20E5223f + sdkIdentifier + iphoneos16.4 + simulatorBuildUpdate + 20E5223f + + + sdkBuildUpdate + 20L5474e + sdkIdentifier + appletvos16.4 + simulatorBuildUpdate + 20L5474e + + + sdkBuildUpdate + 20T5233d + sdkIdentifier + watchos9.4 + simulatorBuildUpdate + 20T5233d + + + sdkBuildUpdate + 20E5238a + sdkIdentifier + iphoneos16.4 + simulatorBuildUpdate + 20E5239a + + + sdkBuildUpdate + 20L5489a + sdkIdentifier + appletvos16.4 + simulatorBuildUpdate + 20L5489a + + + sdkBuildUpdate + 20T5248a + sdkIdentifier + watchos9.4 + simulatorBuildUpdate + 20T5248a + + + sdkBuildUpdate + 20E238 + sdkIdentifier + iphoneos16.4 + simulatorBuildUpdate + 20E247 + + + sdkBuildUpdate + 20L489 + sdkIdentifier + appletvos16.4 + simulatorBuildUpdate + 20L494 + + + sdkBuildUpdate + 20T248 + sdkIdentifier + watchos9.4 + simulatorBuildUpdate + 20T253 + + + sdkBuildUpdate + 21A5248u + sdkIdentifier + iphoneos17.0 + simulatorBuildUpdate + 21A5248u + + + sdkBuildUpdate + 21J5273p + sdkIdentifier + appletvos17.0 + simulatorBuildUpdate + 21J5273p + + + sdkBuildUpdate + 21R5275s + sdkIdentifier + watchos10.0 + simulatorBuildUpdate + 21R5275s + + + sdkBuildUpdate + 21A5268f + sdkIdentifier + iphoneos17.0 + simulatorBuildUpdate + 21A5268h + + + sdkBuildUpdate + 21J5293e + sdkIdentifier + appletvos17.0 + simulatorBuildUpdate + 21J5293g + + + sdkBuildUpdate + 21R5295e + sdkIdentifier + watchos10.0 + simulatorBuildUpdate + 21R5295g + + + sdkBuildUpdate + 21N5165f + sdkIdentifier + xros1.0 + simulatorBuildUpdate + 21N5165g + version 2 diff --git a/Tests/XcodesKitTests/Fixtures/LogOutput-Runtime_NoBetas.txt b/Tests/XcodesKitTests/Fixtures/LogOutput-Runtime_NoBetas.txt index 336bf0e..de3babf 100644 --- a/Tests/XcodesKitTests/Fixtures/LogOutput-Runtime_NoBetas.txt +++ b/Tests/XcodesKitTests/Fixtures/LogOutput-Runtime_NoBetas.txt @@ -20,6 +20,9 @@ iOS 15.4 iOS 15.5 (Bundled with selected Xcode) iOS 15.5 (Installed) iOS 16.0 +iOS 16.1 +iOS 16.2 +iOS 16.4 -- watchOS -- watchOS 6.0 watchOS 6.1.1 @@ -34,6 +37,8 @@ watchOS 8.5 (Bundled with selected Xcode) watchOS 9.0-beta4 (Installed) watchOS 9.0 (20R362) watchOS 9.0 (UnknownBuildNumber) (Installed) +watchOS 9.1 +watchOS 9.4 -- tvOS -- tvOS 12.4 tvOS 13.0 @@ -49,5 +54,8 @@ tvOS 15.0 tvOS 15.2 tvOS 15.4 (Bundled with selected Xcode) tvOS 16.0 +tvOS 16.1 +tvOS 16.4 +-- visionOS -- Note: Bundled runtimes are indicated for the currently selected Xcode, more bundled runtimes may exist in other Xcode(s) diff --git a/Tests/XcodesKitTests/Fixtures/LogOutput-Runtimes.txt b/Tests/XcodesKitTests/Fixtures/LogOutput-Runtimes.txt index b577471..591f086 100644 --- a/Tests/XcodesKitTests/Fixtures/LogOutput-Runtimes.txt +++ b/Tests/XcodesKitTests/Fixtures/LogOutput-Runtimes.txt @@ -20,6 +20,11 @@ iOS 15.4 iOS 15.5 (Bundled with selected Xcode) iOS 15.5 (Installed) iOS 16.0 +iOS 16.1 +iOS 16.2 +iOS 16.4 +iOS 17.0-beta1 +iOS 17.0-beta2 -- watchOS -- watchOS 6.0 watchOS 6.1.1 @@ -31,14 +36,13 @@ watchOS 7.4 watchOS 8.0 watchOS 8.3 watchOS 8.5 (Bundled with selected Xcode) -watchOS 9.0-beta1 -watchOS 9.0-beta2 -watchOS 9.0-beta3 watchOS 9.0-beta4 (Installed) -watchOS 9.0-beta5 watchOS 9.0 (20R362) watchOS 9.0 (UnknownBuildNumber) (Installed) -watchOS 9.1-beta1 +watchOS 9.1 +watchOS 9.4 +watchOS 10.0-beta1 +watchOS 10.0-beta2 -- tvOS -- tvOS 12.4 tvOS 13.0 @@ -53,12 +57,12 @@ tvOS 14.5 tvOS 15.0 tvOS 15.2 tvOS 15.4 (Bundled with selected Xcode) -tvOS 16.0-beta1 -tvOS 16.0-beta2 -tvOS 16.0-beta3 -tvOS 16.0-beta4 -tvOS 16.0-beta5 tvOS 16.0 -tvOS 16.1-beta1 +tvOS 16.1 +tvOS 16.4 +tvOS 17.0-beta1 +tvOS 17.0-beta2 +-- visionOS -- +visionOS 1.0-beta1 Note: Bundled runtimes are indicated for the currently selected Xcode, more bundled runtimes may exist in other Xcode(s) diff --git a/Tests/XcodesKitTests/RuntimeTests.swift b/Tests/XcodesKitTests/RuntimeTests.swift index 2519138..314761a 100644 --- a/Tests/XcodesKitTests/RuntimeTests.swift +++ b/Tests/XcodesKitTests/RuntimeTests.swift @@ -80,14 +80,14 @@ final class RuntimeTests: XCTestCase { func test_downloadableRuntimes() async throws { mockDownloadables() let values = try await runtimeList.downloadableRuntimes().downloadables - XCTAssertEqual(values.count, 57) + XCTAssertEqual(values.count, 59) } func test_downloadableRuntimesNoBetas() async throws { mockDownloadables() let values = try await runtimeList.downloadableRuntimes().downloadables.filter { $0.betaNumber == nil } XCTAssertFalse(values.contains { $0.name.lowercased().contains("beta") }) - XCTAssertEqual(values.count, 45) + XCTAssertEqual(values.count, 52) } func test_printAvailableRuntimes() async throws {