title: Connection to daemon was invalidated
body: <p>My app is using Firebase Analytics and I believe starting in iOS 13.2 started getting the errors described here: <a href="https://stackoverflow.com/questions/58321114/why-i-get-the-console-warning-process-kill-returned-unexpected-error-1-when">Why I get the console warning: [Process] kill() returned unexpected error 1 when I load a WKWebView in iOS13.2?</a></p>
  <p>I guess it wasn't a big deal</p>
  <p>Since I planned for my app to go live in January, I began bigger tests in physical devices. I noticed after a while the app started to behave erratically, specially after receiving a <strong>[general] Connection to daemon was invalidated</strong> error. This doesn't occur in the simulator</p>
  <p>Searching the internet I found a post that describes the same problem: <a href="https://forums.developer.apple.com/thread/124306" rel="nofollow noreferrer">https://forums.developer.apple.com/thread/124306</a></p>
  <p>In my case, only Firebase seems to be calling WKWebView, but every time I open the UIMenuController I get the error described in the console and the app appears to be missing inputs. This is specially troublesome with UIScrollViews, which my app uses a lot. The pinch gesture seems to work at will. On an iPhone 6s, the issue isn't as noticeable, on an iPad, it's like a 50% chance the pinch gesture will work properly</p>
  <p>Outside of removing Firebase, is there a way to mitigate this issue?</p>
  <p>1 June 2020: The console message still persists, however, I have seemed to resolve the UIScrollView issue by deactivating delaysContentTouches, now the pinch gesture seems to work most of the time</p>
  <p>23 October 2020 If anyone notices their app starting to behave erratically with no apparent reason I HIGHLY suggest to test it on an iOS 13 physical device if possible. Seems that Apple removed the warning from iOS 14, but testing it on iOS 13 you can pin point the exact reason after the warning appears in the console</p>