Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

IOS build is showing the error

$
0
0
    if (@available(iOS 13.0, *)) {
        NSString *contentMode = [settings cordovaSettingForKey:@"PreferredContentMode"];
        if ([contentMode isEqual: @"mobile"]) {
            **configuration.defaultWebpagePreferences.preferredContentMode = WKContentModeMobile;**
        } else if ([contentMode isEqual: @"desktop"]) {
            **configuration.defaultWebpagePreferences.preferredContentMode = WKContentModeDesktop;**
        }
        
    }

These 2 bold lines are creating error on giving the command :ionic cordova build ios for xcode10.0
The error is as follows:

  • Property ‘defaultWebpagePreferences’ not found on object of type ‘WKWebViewConfiguration *’

  • Use of undeclared identifier ‘WKContentModeMobile’

  • Use of undeclared identifier ‘WKContentModeDesktop’

Please help me with this error

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles