LucianoPAlmeida/bitrise-step-swift-environment-variable-injector

Issue with Bitrise when using step version 0.1.2

Closed this issue · 12 comments

Hi there!

We are having issues using this in Bitrise. We are using it to load a secret API key into one of our Swift files. Surprisingly the tool was working just fine and it did start failing without any update from our side to either the project's code or the Bitrise.yml.

Wondering if folks that use this tool on Bitrise noticed any issue (indicating a regression) or if it continued working just fine (indicating an issue with our set up).

Things we have checked:

  • Path to the file is correct
  • Turn on "verbose" mode (does not print anything)

Any tips on how we can debug this would be appreciated. Attaching a few screenshots below for reference.

Thanks!

image
image
image

We recently updated step version to 0.1.2, I see in your screenshot you are using it. But you can try 0.1.1 to test

Thanks Luciano, I can't seem to find how to downgrade to 0.1.1, only allows to select 0.x.x and 0.1.x through the GUI:
image

Maybe is there some way in the Bitrise.yml file to specify this?

Hey @jakunico!
In the bitrise yaml file, add @0.1.1 to the step name:
Screenshot 2022-10-26 at 20 26 28

Thank you folks, that fixed the issue!
So seems like something is wrong with 0.1.2.

That is wired, 0.1.2 seems to be working for for others ...

Just did another test, reverted back to 0.1.2 and the build is indeed not passing.

Just did another test, reverted back to 0.1.2 and the build is indeed not passing.

Can you share the logs of the step execution with 0.1.2? Of course what is possible to share. I want to see what is happening with shell execution. It should curl a package, extract, cp some file to places and execute the binary

Hello,

Well, I also got an issue injecting my env variables to the project using new 0.1.2 version of the swift-env-var-injector Bitrise step. tested by setting both 0.3.6 & 0.3.7 in the Swift Variable Injector Version field

I downgraded back to v0.1.1 with 0.3.6 in the Swift Variable Injector Version field and the vars are injected back correctly.

Not sure why the 0.1.2 is not working as expected ...

Can you try with 0.1.3

Issue should be fixed that version

I just did a test with 0.1.3 and everything seems working fine 🔥 Thanks a lot for the fix, YOU ROCK

Awesome, thanks for the verification.
Closing this