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

xcodebuild: error: '[app_name].xcworkspace' does not exist. #2

Closed
kbrady1 opened this issue Jun 19, 2020 · 2 comments
Closed

xcodebuild: error: '[app_name].xcworkspace' does not exist. #2

kbrady1 opened this issue Jun 19, 2020 · 2 comments
Assignees

Comments

@kbrady1
Copy link

kbrady1 commented Jun 19, 2020

I've set up a simple workflow, and have played around with a couple different path settings, but I get this same error every single time.
xcodebuild: error: '[app_name].xcworkspace' does not exist.

name: TestAction

on:
  push:
  pull_request:
    branches: [ master, dev ]

jobs:
  build:

    runs-on: macos-latest

    steps:
    - uses: actions/checkout@v2
    - name: Xcodebuild Action
      uses: sersoft-gmbh/xcodebuild-action@v1.1
      with:
        # The path to the xcworkspace to build. Mutually exclusive with `project`.
        project: [app_name].xcworkspace
        # The scheme to build. Required when using a workspace.
        scheme: [scheme]

File structure from root of repository:
.github.com/workflows/testAction.yml
[app_name]/[app_name].xcworkspace

@ffried
Copy link
Member

ffried commented Jun 21, 2020

@kbrady1 You need to specify the path from the root of the repository to the project or (in your case) workspace. In your example, xcodebuild would search the workspace at /[app_name].xcworkspace in the root of the repository. According to your file structure, the workspace is nested inside a folder, though.

Please give the following setup a try:

name: TestAction

on:
  push:
  pull_request:
    branches: [ master, dev ]

jobs:
  build:

    runs-on: macos-latest

    steps:
    - uses: actions/checkout@v2
    - name: Xcodebuild Action
      uses: sersoft-gmbh/xcodebuild-action@v1.1
      with:
        # The path to the xcworkspace to build. Mutually exclusive with `project`.
        workspace: [app_name]/[app_name].xcworkspace
        # The scheme to build. Required when using a workspace.
        scheme: [scheme]

@ffried ffried self-assigned this Jun 21, 2020
@kbrady1 kbrady1 closed this as completed Jun 22, 2020
@kbrady1
Copy link
Author

kbrady1 commented Jun 22, 2020

Thank you

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