This error was due to having both cordova-plugin-wkwebview-engine and the newer cordova-plugin-ionic-webview.
cordova-plugin-wkwebview-engine
cordova-plugin-ionic-webview
I fixed if by doing
ionic cordova plugin remove cordova-plugin-wkwebview-engine
Then I could run again:
ionic cordova run ios