Issue with input: ProjectPath

#1

Bitrise Build Issue Report template

Description of the issue

Build error during Recreate User Schemes step which shows that project path does not exit.
I’ve checked my repository to make sure that my app.xworkspace exits.
And my other iOS project which using the same workflow works just fine.
Any tips will be so much thankful.

Environment:

Where did the issue happen?

If on Bitrise.io: which stack? If not on Bitrise.io: on what operating system? (Plus any other information you can share)
trying to build an iOS app written with Xcode7.3 and using Pods ver 0.39.0
Build failed in Recreate User Schemes step

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO
  • If you have multiple different build configurations (workflows), does the issue affect all/more than one? : NO
  • If it’s an issue which happens sporadically, what’s the frequency? (e.g. Once a day ; about x% of the builds) : Always
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? :

Other stacks

Can it be reproduced by running the build locally with our CLI ( https://www.bitrise.io/cli ), after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( https://www.bitrise.io/cli )?

Build log

Please attach the build log (you can download the build log from the build’s page, once the build is finished, using the “Download log” button - floating at the bottom right corner of the log viewer), or if you can’t attach the whole log then send the full log through a private channel (e.g. email - https://www.bitrise.io/contact ), with a link to the related GitHub issue.

±-----------------------------------------------------------------------------+

| (6) recreate-user-schemes@1.0.1 |
±-----------------------------------------------------------------------------+
| id: recreate-user-schemes |
| version: 1.0.1 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2017-07-18T20:31:12-07:00 |
±-----------------------------------------------------------------------------+
| |
INFO[20:31:12] * [OK] Step dependency (go) installed, available.
Configs:

  • ProjectPath: peachjohncatalog.xcworkspace
    Issue with input: ProjectPath - path not exist at: peachjohncatalog.xcworkspace
    | |
    ±–±--------------------------------------------------------------±---------+
    | x | recreate-user-schemes@1.0.1 (exit code: 1) | 3.66 sec |
    ±–±--------------------------------------------------------------±---------+
    | Issue tracker: …hub.com/bitrise-steplib/steps-recreate-user-schemes/issues |
    | Source: https://github.com/bitrise-steplib/steps-recreate-user-schemes |
    ±–±--------------------------------------------------------------±---------+
1 Like

Recreate-user-schemes failed
#2

Hi @shen.yingyin,

Thanks for asking this here! :slight_smile:

Are you sure that this workspace exists at that path?

Keep in mind this is a relative path, by default relative to the root of the repository (unless you have a Change Workdir step or similar which changes the working directory), so if the workspace file is in a sub dir then it should be ./my/sub/dir/peachjohncatalog.xcworkspace

If that wouldn’t help, can you please send us the build’s bitrise.io URL through email or the onsite chat?

0 Likes

#3

Hi @shen.yingyin,

Checked the log you sent. The issue is that you changed where the code should be checked out in the primary workflow in your config.

From the build’s bitrise.yml:

  primary:
    steps:
    - activate-ssh-key@3.1.1:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone:
        inputs:
        - clone_into_dir: "$$BITRISE_GIT_BRANCHBITRISE_SOURCE_DIR"

Please select the primary workflow in the Workflow Editor, then select the Git Clone Repository step in the workflow, and set the Clone destination input back to the original $BITRISE_SOURCE_DIR:


Or, alternatively, switch to the bitrise.yml tab and just remove the git-clone step’s inputs.

From:

    - git-clone:
        inputs:
        - clone_into_dir: "$$BITRISE_GIT_BRANCHBITRISE_SOURCE_DIR"

change it to:

    - git-clone: {}
0 Likes

#4

Thanks for the check.
I followed the suggested step to change the clone destination.
But it ended up with the same error…
Here’s the build’s log


Totally being stuck in there :confounded:

0 Likes

#5

You changed the value to $$BITRISE_SOURCE_DIR.

Please either remove that input from bitrise.yml or change the value to $BITRISE_SOURCE_DIR (single dollar sign $)!

0 Likes

#6

Oh my… can’t believe I missed that…
Problem resolved!
Thanks sooo much for your help! :smile:

1 Like

#7

Any time :wink:

0 Likes