Visual Studio Code - iOS - Unable to get device version

Hello! In Visual Studio Code (Mac OS X) I run the project under debug (Cordova Tools) for iOS. Displays entries in the debug console:

Installing app on device
Launching app
—> Unable to get device OS version

Although if you enter the following command in the terminal:

ionic cordova run ios --device

then the device starts normally