ios - Jenkins:faSTLane 在 cocoapods 中失败

标签 ios swift jenkins cocoapods fastlane

我一直在努力让 cocoapods 在 faSTLane/jenkins 中工作。 这是 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

在 Fastfile channel 中添加 cocoapods 操作之前,一切都非常顺利。

最佳答案

我最终在 cocoapods 操作中禁用了 bundle ,如下所示。

cocoapods(use_bundle_exec: false)

尽管如此,还是花了很多时间才发现它。希望以后能对其他人有所帮助。

关于ios - Jenkins:faSTLane 在 cocoapods 中失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54085723/

相关文章:

ios - 在美国 iPhone Cell 中 NSDate 中的字符串转换无法正常工作,但在印度 iPhone Cell 中可以正常工作

ios - 在 iPhone 和 Apple Watch 之间发送数据时减少延迟的策略?

ios - 关闭 Popover,[UIPopoverController dealloc] 在 popover 仍然可见时到达

jenkins - gradle artifactory 发布 : jenkins pipeline does not publish properties

jenkins - 判断gradle里面是否是jenkins环境

jenkins - 使用Jenkins脚本化管道创建Kubernetes Pod模板时的脱机代理

ios - FQL 多重查询并不总是有效

javascript - 将字典值中的整数分配给字符串的字符

swift - 是否有可能在 Swift 中捕获 NSInternalInconsistencyException?

swift - 无法在 Double - Swift 中转换和使用字符串值