Skip to content

xcversion not found #91

@dataviruset

Description

@dataviruset

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions