-
Notifications
You must be signed in to change notification settings - Fork 18
/
step.yml
109 lines (87 loc) · 4.23 KB
/
step.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
title: Run CocoaPods install
summary: This Step uses CocoaPods' `pod install` or `pod update` command to install your dependencies.
description: |-
CocoaPods is a dependency manager for Swift and Objective-C projects. This Step uses CocoaPods' `pod install` or `pod update` command to install your dependencies on the virtual machine where your Bitrise build runs.
CocoaPods version is determined based on the Podfile.lock file or on the Gemfile.lock file. If your Gemfile.lock file contains the `cocoapods` gem, then the Step will call the pod `install` command with `bundle exec`. Otherwise, the Cocoapods version in the Podfile.lock will be installed as a global gem.
If no Cocoapods version is defined in Podfile.lock or Gemfile.lock, the preinstalled sytem Cocoapods version will be used.
### Configuring the Step
1. Set the **Source Code Directory path** to the path of your app's source code.
1. Optionally, provide a Podfile in the **Podfile path** input.
Without a specific Podfile, the Step does a recursive search for the Podfile in the root of your app's directory, and uses the first Podfile it finds.
### Troubleshooting
If the Step fails, check out the Podfile and the Gemfile of your app. Make sure there is no compatibility issue with the different versions of your Pods.
Check that both Podfile.lock and Gemfile.lock is committed and the Cocoapods versions defined in both match.
You can set the **Execute cocoapods in verbose mode?** input to true to get detailed logs of the Step.
### Useful links
* [Caching Cocoapods](https://devcenter.bitrise.io/builds/caching/caching-cocoapods/)
* [Include your dependencies in your repository](https://devcenter.bitrise.io/tips-and-tricks/optimize-your-build-times/#include-your-dependencies-in-your-repository)
### Related Steps
* [Run yarn command](https://www.bitrise.io/integrations/steps/yarn)
* [Carthage](https://www.bitrise.io/integrations/steps/carthage)
website: https://github.com/bitrise-io/steps-cocoapods-install
source_code_url: https://github.com/bitrise-io/steps-cocoapods-install
support_url: https://github.com/bitrise-io/steps-cocoapods-install/issues
project_type_tags:
- ios
- macos
- cordova
- ionic
- react-native
- flutter
type_tags:
- dependency
is_always_run: false
is_skippable: false
toolkit:
go:
package_name: github.com/bitrise-steplib/steps-cocoapods-install
inputs:
- command: install
opts:
title: CocoaPods command
summary: CocoaPods command to use for installing dependencies.
description: |
CocoaPods command to use for installing dependencies.
Available options:
- `install`: Use `pod install` to download the explicit version listed in the Podfile.lock without trying to check if a newer version is available.
- `update`: Use `pod update` to update every Pod listed in your Podfile to the latest version possible.
is_required: true
value_options:
- install
- update
- source_root_path: $BITRISE_SOURCE_DIR
opts:
title: Workdir
summary: Directory path where the project's Podfile (and optionally Gemfile) is placed.
description: |
Directory path where the project's Podfile (and optionally Gemfile) is placed.
CocoaPods commands will be executed in this directory.
is_required: true
- podfile_path: ""
opts:
title: Podfile path
summary: Path of the project's Podfile.
description: |-
Path of the project's Podfile.
By specifying this input `Workdir` gets overriden by the provided file's directory path.
- verbose: "false"
opts:
title: Enable verbose logging
summary: Execute all CocoaPods commands in verbose mode.
description: |
Execute all CocoaPods commands in verbose mode.
If enabled the `--verbose` flag will be appended to all CocoaPods commands.
value_options:
- "true"
- "false"
- is_cache_disabled: "false"
opts:
title: Disable collecting cache content
summary: Disables automatic cache content collection.
description: |
Disables automatic cache content collection.
By default the Step adds the Pods directory in the `Workdir` to the Bitrise Build Cache.
Set this input to disable automatic cache item collection for this Step.
value_options:
- "true"
- "false"