File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
ZipBuilder/Sources/ZipBuilder Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ struct LaunchArgs {
85
85
return " The path to the directory containing the blank xcodeproj and Info.plist for " +
86
86
" building source based frameworks "
87
87
case . updatePodRepo:
88
- return " A flag to run `pod repo update` before building the zip file. "
88
+ return " A flag to run `pod repo update` and `pod cache clean -all` before building the " +
89
+ " zip file. "
89
90
case . zipPods:
90
91
return " The path to a JSON file of the pods (with optional version) to package into a zip. "
91
92
}
@@ -149,7 +150,7 @@ struct LaunchArgs {
149
150
init ( userDefaults defaults: UserDefaults = UserDefaults . standard,
150
151
fileChecker: FileChecker = FileManager . default) {
151
152
// Override default values for specific keys.
152
- // - Always run `pod repo update` unless explicitly set to false.
153
+ // - Always run `pod repo update` and pod cache clean -all` unless explicitly set to false.
153
154
defaults. register ( defaults: [ Key . updatePodRepo. rawValue: true ] )
154
155
155
156
// Get the project template directory, and fail if it doesn't exist.
Original file line number Diff line number Diff line change @@ -128,7 +128,9 @@ struct ZipBuilder {
128
128
( [ CocoaPodUtils . PodInfo ] , [ String : [ URL ] ] ) {
129
129
// Remove CocoaPods cache so the build gets updates after a version is rebuilt during the
130
130
// release process.
131
- CocoaPodUtils . cleanPodCache ( )
131
+ if LaunchArgs . shared. updatePodRepo {
132
+ CocoaPodUtils . cleanPodCache ( )
133
+ }
132
134
133
135
// We need to install all the pods in order to get every single framework that we'll need
134
136
// for the zip file. We can't install each one individually since some pods depend on different
You can’t perform that action at this time.
0 commit comments