# IOS build is showing the error

**URL:** <https://forum.ionicframework.com/t/ios-build-is-showing-the-error/196210>\
**Category:** cordova\
**Created:** [September 14, 2020, 10:01am UTC](https://forum.ionicframework.com/t/ios-build-is-showing-the-error/196210 "2020-09-14T10:01:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shreya12322](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@shreya12322](https://forum.ionicframework.com/u/shreya12322)\
**Post date:** [September 14, 2020, 10:01am UTC](https://forum.ionicframework.com/t/ios-build-is-showing-the-error/196210/1 "2020-09-14T10:01:54Z")

</div>

```auto
    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
