I’ve setup React Cordova App using Framework7 CLI. Was able to build Android apk and issue is with Ios build. Getting below error when run.
npm run build-dev-cordova-ios
Error
/webApp/cordova/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;
^
/webApp/cordova/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m:141:76: error:
use of undeclared identifier 'WKContentModeMobile'
configuration.defaultWebpagePreferences.preferredContentMode = WKContentModeMobile;
^
/webApp/cordova/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;
^
/webApp/cordova/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m:143:76: error:
use of undeclared identifier 'WKContentModeDesktop'
configuration.defaultWebpagePreferences.preferredContentMode = WKContentModeDesktop;
^
4 errors generated
** BUILD FAILED **
The following build commands failed:
CompileC /Users/yeshansachithak/Library/Developer/Xcode/DerivedData/InsightNation-fwfudlhslshrgvbghxqmcqktowfa/Build/Intermediates.noindex/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/x86_64/CDVWebViewEngine.o /webApp/cordova/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
xcodebuild: Command failed with exit code 65
Please advice.