简体   繁体   中英

Network extension web content filter not working in iOS

I have added the Network extension to my app successfully for web content filtering. I have the entitlement file checked and capabilities added as well. I have also pushed web-content filtering payload from my server which has my app's bundle identifier and type as plug-in. However, I have installed the app on a supervised device. But none of my log statements get printed from the extension. I haven't configured any rules so far. Just want the extension to run. Am I missing something ? Any assistance on the same would do a world of good ! Thanks in advance. PS I am using XCode 9.2(objective-c) and device functioning on iOS 11.0.1.

You can use consele.app to display both iOS and Mac logs which is already installed on your Mac. Search for console from your Spotlight and after opening the app select your iOS device under Devices from left panel. You can display all system logs including your extension's logs.

A small note for Swift developers don't forget to use NSLog to display logs from console app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM