actions-setup-xcode icon indicating copy to clipboard operation
actions-setup-xcode copied to clipboard

xcversion not found

Open dataviruset opened this issue 2 years ago • 1 comments

Used this on a mac1.metal EC2 instance.

      - name: Set up Xcode
        uses: sinoru/actions-setup-xcode@v2
        with:
          xcode-version: 13.2.1
          apple-id: ${{ inputs.apple_id_email }}
          apple-id-password: ${{ secrets.apple_id_password }}

Got this error message:

Error: Unable to locate executable file: xcversion. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

Seems xcode-install (fastlane) is needed. Adding this code snippet before calling sinoru/actions-setup-xcode seems to solve the problem.

      - name: Install xcode-install
        run: |
          sudo gem install xcode-install

Maybe this should be mentioned as a dependency in the README? Thanks for your contributions!

dataviruset avatar May 05 '22 04:05 dataviruset

Oh, I didn't think about self-hosted runner... I agreed that it should be documented. Thanks to report :)

sinoru avatar May 08 '22 19:05 sinoru