Just noticed the new framework and was wondering if there was a way to use this (or any other public API) the determine location of iOS SDK in addition to the macOS one (if one is installed, of course).
Is it possible to use xcselect to locate an iOS SDK?
The xcselect_host_sdk_* functions only search for macOS SDK paths. However, running xcodebuild -version -sdk will provide information about each SDK in the currently selected Xcode installation, and contained in that information is the path on disk to each SDK. If you're interested in just finding out if an SDK is available, you can pass the SDK name as the argument for -sdk:
Code Block xcodebuild -version -sdk iphoneos
Oh, interesting, that is fairly useful! Thanks for sharing. However, it'd still be useful to locate this programmatically without scraping the output of xcodebuild so I hope you don't mind me filing a feedback request for it.