native-network-logs
Capture all native network traffic from iOS apps, including Swift/Objective-C and background transfers invisible to JS fetch. Use for inspecting HTTP requests at the NSURLProtocol level.
Instructions
Retrieve network requests captured at the native NSURLProtocol level. Unlike the JS-level network inspector (view-network-logs), this captures ALL network traffic from the app including native modules, Swift/Objective-C networking, and background transfers that bypass JS fetch. Use when you need to inspect native-level HTTP traffic that is invisible to JS fetch interception. Returns { status, count, events } where each event contains URL, method, status code, headers, and timing. Returns { status: "restart_required" } if the dylib is not injected - if this happens, call "restart-app" then retry. Fails if native devtools are not connected or the app is not running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Simulator UDID | |
| clear | No | Clear the log after reading | |
| limit | No | Maximum number of events to return (most recent first) | |
| bundleId | Yes | Bundle ID of the app |