Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

491
Visualizações
Jenkins: fastlane fails in cocoapods

I've been struggling to make cocoapods working in fastlane/jenkins. Here is the console output from Jenkins:

[12:40:31]: [32m--- Step: cocoapods ---[0m
[12:40:31]: [32m-----------------------[0m
[12:40:31]: [36m$ bundle exec pod install[0m
+------------------+------+
|      [33mLane Context[0m       |
+------------------+------+
| DEFAULT_PLATFORM | ios  |
| PLATFORM_NAME    |      |
| LANE_NAME        | beta |
+------------------+------+
[12:40:31]: [31mNo such file or directory - bundle[0m

+------+-----------------------+-------------+
|              [32mfastlane summary[0m              |
+------+-----------------------+-------------+
| Step | Action                | Time (in s) |
+------+-----------------------+-------------+
| 1    | default_platform      | 0           |
| 2    | clean_build_artifacts | 0           |
| 💥   | [31mcocoapods[0m             | 0           |
+------+-----------------------+-------------+

[12:40:31]: [31mfastlane finished with errors[0m

[12:40:31]: [33mError accessing file, this might be due to fastlane's directory handling[0m
[12:40:31]: [33mCheck out https://docs.fastlane.tools/advanced/#directory-behavior for more details[0m

Everything just worked like a charm before adding cocoapods action in the lane of the Fastfile.

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

I ended up disabling bundle in cocoapods action like below.

cocoapods(use_bundle_exec: false)

Spent a lot of hours to discover it though. Hope it can help others later on.

over 4 years ago · Santiago Trujillo Relatório

0

As you have seen, the error is in the console log:

No such file or directory - bundle

The cocoapods action is built off of the base Fastlane::Action class. I dug in and found that if you have a Gemfile, fastlane believes that it can use the bundle method (from the bundler gem) to run a faster and more correct bundle exec pod install.

If you are not using bundler to run exact versions of the Ruby gems you are using, I would remove the Gemfile as it is a useless stub.

However, I strongly recommend that you use bundler to make sure that you are always using the exact versions of Ruby gems that you use to develop your fastlane code. It is faster too. Read more.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda