File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change
1
+ description : install pods, use CircleCI cache to fetch CocoaPods specs
2
+
3
+ # note: do not use the --project-directory pod param because many example
4
+ # projects in the rn community repos rely on pod install to be run from ios directory
5
+ # instead cd into the folder and then back
6
+
7
+ parameters :
8
+ pod_install_directory :
9
+ type : string
10
+ default : " ios"
11
+ description : The location of the "ios" directory
12
+ steps :
13
+ - run :
14
+ name : Install CocoaPods
15
+ command : |
16
+ curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
17
+ cd <<parameters.pod_install_directory>> && pod install && cd -
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ parameters:
20
20
description : If we should start the Metro packager in the background for this job.
21
21
type : boolean
22
22
default : false
23
+ pod_install_directory :
24
+ type : string
25
+ default : " "
26
+ description : The location of the "ios" directory for `pod install`
23
27
# For the iOS build command
24
28
project_type :
25
29
description : If the iOS app is built using a project file (*.xcodeproj) or a workspace.
@@ -62,7 +66,7 @@ parameters:
62
66
node_version :
63
67
description : The version of Node to use. This can be either a major version ("8"), a major and minor ("8.4"), or a fully qualified version ("8.4.1").
64
68
type : string
65
- default : ' 10 '
69
+ default : " 10 "
66
70
67
71
steps :
68
72
- when :
75
79
- attach_workspace :
76
80
at : <<parameters.workspace_root>>
77
81
- setup_macos_executor :
78
- node_version : <<parameters.node_version>>
82
+ node_version : <<parameters.node_version>>
79
83
- ios_simulator_start :
80
- device : <<parameters.device>>
84
+ device : <<parameters.device>>
81
85
- yarn_install
82
86
- when :
83
87
condition : <<parameters.on_after_initialize>>
@@ -89,6 +93,11 @@ steps:
89
93
condition : <<parameters.start_metro>>
90
94
steps :
91
95
- metro_start
96
+ - when :
97
+ condition : <<parameters.pod_install_directory>>
98
+ steps :
99
+ - pod_install :
100
+ pod_install_directory : <<parameters.pod_install_directory>>
92
101
- ios_build :
93
102
project_path : <<parameters.project_path>>
94
103
derived_data_path : <<parameters.derived_data_path>>
You can’t perform that action at this time.
0 commit comments