Xcode 8, iOS 10 - "Starting WebFilter logging for process"

IosUiwebviewIos10

Ios Problem Overview


    WF: === Starting WebFilter logging for process Test
2016-09-30 08:56:45.458007 Test[616:142557] WF: _userSettingsForUser mobile: {
    filterBlacklist =     (
    );
    filterWhitelist =     (
    );
    restrictWeb = 1;
    useContentFilter = 0;
    useContentFilterOverrides = 0;
    whitelistEnabled = 0;
}
2016-09-30 08:56:45.458437 Test[616:142557] WF: _WebFilterIsActive returning: NO

I am receiving this warning in my debugger in xcode 8, iOS-10, when I using UIWebView Delegate methods to load something. I didn't find any documentation in Apple website about this web filter Active/De-active mode. Though it's not causing any problem in my existing webView functionality even I am running some javascript function in my webView did finished method. But still curious to know more about this new feature.

Any suggestion about this feature will be appreciate.

Ios Solutions


Solution 1 - Ios

According to Apple, the "Content Security Policy(CSP)" which support in Safari 10 has been enhanced by including version 2.0 of the standard. It seems that this feature includes in iOS 10 as well.

For more information please look here about the CSP levels: https://content-security-policy.com

OR

Check the site with Chrome Developer Tools and you will find most likely a warning like Mixed Content: The page at '...' as loaded over HTTPS, but requested an insecure resource '...'. This content should also be served over HTTPS.


And If you want to remove the message on the XCode's console then, please find the below steps.

  1. Select Product => Scheme => Edit Scheme or use shortcut : CMD + <
  2. Select the Run option from left side.
  3. On Environment Variables section, add the variable OS_ACTIVITY_MODE = disable

For more information please find the below GIF representation.

GIF

> Note : While debug the code in device, please unchecked this option as the NSLog statement do not show in the console.

Solution 2 - Ios

May be it is printing system log. Check that once and try this

1- From Xcode menu open: Product > Scheme > Edit Scheme

2- On your Environment Variables set OS_ACTIVITY_MODE = disable

enter image description here

Solution 3 - Ios

its very simple to solve you have to follow the below process. 1)goto MenuBar and find product menu->Scheme->Edit Scheme->its comes up with pops ->where you select "Run" and then select "Arguments"->then Environment Variables-> after this click on "+" button and there fore put this "OS_ACTIVITY_MODE = disable" after that this error will gone.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionA K M Saleh SultanView Question on Stackoverflow
Solution 1 - IosRamkrishna SharmaView Answer on Stackoverflow
Solution 2 - IosJayachandra AView Answer on Stackoverflow
Solution 3 - IosAmit SharmaView Answer on Stackoverflow