I am trying to build an ios build for ionic 5 app, i am getting this error in my app while building the app. I looked out for solutions on internet but nothing seems to work
/Users/Prateek/ionicApps/muniFlores/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m:141:27: error: property
'defaultWebpagePreferences' not found on object of type 'WKWebViewConfiguration *'
configuration.defaultWebpagePreferences.preferredContentMode = WKContentModeMobile;
^
/Users/Prateek/ionicApps/muniFlores/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m:141:76: error: use of undeclared
identifier 'WKContentModeMobile'
configuration.defaultWebpagePreferences.preferredContentMode = WKContentModeMobile;
^
/Users/Prateek/ionicApps/muniFlores/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m:143:27: error: property
'defaultWebpagePreferences' not found on object of type 'WKWebViewConfiguration *'
configuration.defaultWebpagePreferences.preferredContentMode = WKContentModeDesktop;
^
/Users/Prateek/ionicApps/muniFlores/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m:143:76: error: use of undeclared
identifier 'WKContentModeDesktop'
configuration.defaultWebpagePreferences.preferredContentMode = WKContentModeDesktop;