React - Cordova IOS Build Failed

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 :point_down:

/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.

First thing I’d say to check is that you have Xcode and the iOS SDKs installed properly?

I’ve run below commands in terminal to check xcode and sdk info

Yeshans-MacBook-Pro:~ yeshansachithak$ xcodebuild -version
Xcode 10.1
Build version 10B61
Yeshans-MacBook-Pro:~ yeshansachithak$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
Yeshans-MacBook-Pro:~ yeshansachithak$ xcodebuild -showsdks
iOS SDKs:
	iOS 12.1                      	-sdk iphoneos12.1

iOS Simulator SDKs:
	Simulator - iOS 12.1          	-sdk iphonesimulator12.1

macOS SDKs:
	macOS 10.14                   	-sdk macosx10.14

tvOS SDKs:
	tvOS 12.1                     	-sdk appletvos12.1

tvOS Simulator SDKs:
	Simulator - tvOS 12.1         	-sdk appletvsimulator12.1

watchOS SDKs:
	watchOS 5.1                   	-sdk watchos5.1

watchOS Simulator SDKs:
	Simulator - watchOS 5.1       	-sdk watchsimulator5.1

Yeshans-MacBook-Pro:~ yeshansachithak$