I got this error trying to build my Flutter app with Visual Studio Code. The cause of the error and how to solve it were shown a couple of lines from the top:
error:iOS 26.1 is not installed. Please download and install the platform from Xcode > Settings > Components.