@@ -92,7 +92,6 @@ extension CarthageUtils {
92
92
artifacts: ZipBuilder . ReleaseArtifacts ,
93
93
outputDir: URL ,
94
94
versionCheckEnabled: Bool ) {
95
- factorProtobuf ( inPackagedDir: packagedDir)
96
95
let directories : [ String ]
97
96
do {
98
97
directories = try FileManager . default. contentsOfDirectory ( atPath: packagedDir. path)
@@ -213,44 +212,6 @@ extension CarthageUtils {
213
212
}
214
213
}
215
214
216
- /// Factor Protobuf into a separate Carthage distribution to avoid Carthage install issues
217
- /// trying to install the same framework from multiple bundles(#5276).
218
- ///
219
- /// - Parameters:
220
- /// - packagedDir: The packaged directory assembled for Carthage and Zip distribution.
221
-
222
- private static func factorProtobuf( inPackagedDir packagedDir: URL ) {
223
- let directories : [ String ]
224
- let protobufDir = packagedDir. appendingPathComponent ( " FirebaseProtobuf " )
225
- do {
226
- directories = try FileManager . default. contentsOfDirectory ( atPath: packagedDir. path)
227
- } catch {
228
- fatalError ( " Could not get contents of Firebase directory to package Carthage build. \( error) " )
229
- }
230
- let fileManager = FileManager . default
231
- var didMove = false
232
- // Loop through each directory to see if it includes Protobuf.framework.
233
- for package in directories {
234
- let fullPath = packagedDir. appendingPathComponent ( package )
235
- . appendingPathComponent ( " Protobuf.framework " )
236
- if fileManager. fileExists ( atPath: fullPath. path) {
237
- if didMove == false {
238
- didMove = true
239
- do {
240
- try fileManager. createDirectory ( at: protobufDir, withIntermediateDirectories: true )
241
- try fileManager
242
- . moveItem ( at: fullPath, to: protobufDir. appendingPathComponent ( " Protobuf.framework " ) )
243
- } catch {
244
- fatalError ( " Failed to create Carthage protobuf directory at \( protobufDir) \( error) " )
245
- }
246
-
247
- } else {
248
- fileManager. removeIfExists ( at: fullPath)
249
- }
250
- }
251
- }
252
- }
253
-
254
215
/// Creates a fake Firebase.framework to use the module for `import Firebase` compatibility.
255
216
///
256
217
/// - Parameters:
0 commit comments