@@ -65,9 +65,6 @@ struct ZipBuilder {
65
65
struct FilesystemPaths {
66
66
// MARK: - Required Paths
67
67
68
- /// The path to the CoreDiagnostics.framework directory with the Zip flag enabled.
69
- var coreDiagnosticsDir : URL
70
-
71
68
/// The path to the directory containing the blank xcodeproj and Info.plist for building source
72
69
/// based frameworks.
73
70
var templateDir : URL
@@ -87,9 +84,8 @@ struct ZipBuilder {
87
84
var logsOutputDir : URL ?
88
85
89
86
/// Default initializer with all required paths.
90
- init ( templateDir: URL , coreDiagnosticsDir : URL ) {
87
+ init ( templateDir: URL ) {
91
88
self . templateDir = templateDir
92
- self . coreDiagnosticsDir = coreDiagnosticsDir
93
89
}
94
90
}
95
91
@@ -209,29 +205,6 @@ struct ZipBuilder {
209
205
print ( " Frameworks for pod: \( framework) were compiled at \( paths) " )
210
206
}
211
207
212
- // Overwrite the `FirebaseCoreDiagnostics.framework` in the `FirebaseAnalytics` folder. This is
213
- // needed because it was compiled specifically with the `ZIP` bit enabled, helping us understand
214
- // the distribution of CocoaPods vs Zip file integrations.
215
- if podsToInstall. contains ( . analytics) {
216
- let overriddenAnalytics : [ URL ] = {
217
- guard let currentFrameworks = frameworks [ " FirebaseAnalytics " ] else {
218
- fatalError ( " Attempted to replace CoreDiagnostics framework but the FirebaseAnalytics " +
219
- " directory does not exist. Existing directories: \( frameworks. keys) " )
220
- }
221
-
222
- // Filter out any CoreDiagnostics directories from the frameworks to install. There should
223
- // only be one.
224
- let withoutDiagnostics : [ URL ] = currentFrameworks. filter { url in
225
- url. lastPathComponent != " FirebaseCoreDiagnostics.framework "
226
- }
227
-
228
- return withoutDiagnostics + [ paths. coreDiagnosticsDir]
229
- } ( )
230
-
231
- // Set the newly required framework paths for Analytics.
232
- frameworks [ " FirebaseAnalytics " ] = overriddenAnalytics
233
- }
234
-
235
208
// Time to assemble the folder structure of the Zip file. In order to get the frameworks
236
209
// required, we will `pod install` only those subspecs and then fetch the information for all
237
210
// the frameworks that were installed, copying the frameworks from our list of compiled
0 commit comments