"Xcode helper" would like to control this computer. Is this request legit?
Solution 1:
If you are using UI testing on macOS, then yes, this is legit:
macOS needs permissions granted to a special Xcode Helper app. You are prompted for this automatically on your first use of UI tests.
(see Apple Developer Docs).
This is needed because UI testing uses the accessibility features of macOS to drive your UI during the test runs.