This is a perf fix for when lldb on a mac is iterating through all of the Platforms looking for a good one, and the iOS/watchOS/tvOS simulators all call xcrun to find an SDK. If those SDKs are not installed, the xcruns can be quite expensive. The code today determines the SDK path before it knows if the Platform will create itself or not. When the SDKs are present, these xcrun calls are very inexpensive, but some people have different setups.
This patch passes the names of the SDKs into the central method that decides whether to create the Platform, and only searches for the SDK path via xcrun if this Platform is a match.
Adrian, I think you might have written this? If you'd like to review. Else I can ask around if anyone wants to take a look.