Unable to run UI Tests because Xcode Helper does not have permission to use Accessibility

Hello,

I have done basic configuration for a macos project using fastlane scan

When i run the job i get the following error

Unable to run UI Tests because Xcode Helper does not have permission to use Accessibility. To enable UI testing, go to the Security & Privacy pane in System Preferences, select the Privacy tab, then select Accessibility, and add Xcode Helper to the list of applications allowed to use Accessibility ...

I can’t find a lot of documentation on basic setup for macos, any resources i might have missed?

version: 2
jobs:
  build-and-test:
    macos:
      xcode: "9.4.1"
    working_directory: /Users/distiller/project
    environment:
      FL_OUTPUT_DIR: output
      FASTLANE_LANE: test
    shell: /bin/bash --login -o pipefail
    steps:
      - checkout
      - run:
          name: Install CocoaPods
          command: pod install
      - run:
          name: Fastlane
          command: bundle exec fastlane $FASTLANE_LANE
      - store_artifacts:
          path: output
      - store_test_results:
          path: output/scan
workflows:
  version: 2
  build-test:
    jobs:
      - build-and-test

I probably can’t help here as I don’t know anything about OS X, but I wonder if putting your config.yml in this post might help? Maybe something in there will make it obvious to a MacOS user.

Thanks for the reply. I added my config.yml, nothing fancy, just the bare minimum as i understand.

I had the same problem running locally, but as the error says, all i had to do was go to Settings/Privacy/Accesibility and allow XCode Helper.

On CircleCI no idea how to do it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.