Skip to content

Instantly share code, notes, and snippets.

@jaredh159
Created October 30, 2024 15:45
Show Gist options
  • Save jaredh159/06d3dc9180b93f3275719bbf0f3df22b to your computer and use it in GitHub Desktop.
Save jaredh159/06d3dc9180b93f3275719bbf0f3df22b to your computer and use it in GitHub Desktop.
debugging, dev testing gertrude iOS
  • if you want to debug the filter or controller, delete the app fully first
  • it's slow to work through the filter install when xcode is attached, it's super glitchy and unresponsive. instead, build and launch, and when you get past the launch screen, quit the app on the phone, detaching from Xcode. then work through the permissions, and then reattach in Xcode -> Debug -> Attach to process
  • sometimes "attach to process" can't get list. i just wait, or click some other things, and come back, eventually it shows up
  • i seem to have trouble debugging two processes at once, not sure if this is possible - i.e. attaching to the controller process and the filter process and debugging both...

misc...

  • i thought i could communicate with the filter by sending urls like https://sentinel.com/do/this/thing/please but all i get in the filter is hostname, i even tried spinning up a WKWebView -- no url. i'm not sure which apple api i can call to get a full URL path passed to the filter, but URLSession.data(for:) doesn't do it, nor wk webview.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment