xcodegitlabfastlaneswift-package-managerbitrise

Bitrise & SPM - How to build private SPM dependencies with Bitrise?


we have

All works fine on local machine - Xcode just ask to fill auth info for Gitlab (login/access-token), then dependencies graph resolves and we can build our project.

But Bitrise fails on gym stage with error below =(

xcodebuild: error: Could not resolve package dependencies: Authentication failed because no credentals were provided.

How to authenticate Gitlab account for Bitrise to process gym stage?


Solution

  • Over past day I tried following approaches:

    And nothing helps. Until I tried following one

    There is special build step in Workflow editor where you can setup gitlab access data. Set this step just before SPM resolve stage fires and annoying error about missing credentials gone.