Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcversion not found #91

Open
dataviruset opened this issue May 5, 2022 · 1 comment
Open

xcversion not found #91

dataviruset opened this issue May 5, 2022 · 1 comment

Comments

@dataviruset
Copy link

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!

@sinoru
Copy link
Owner

sinoru commented May 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants