Skip to content

Commit 3db9865

Browse files
committed
Revert "[Release Tooling] Only embed bundles containing privacy manifests (#12324)"
This reverts commit 4914cc2.
1 parent 3de7e6c commit 3db9865

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

ReleaseTooling/Sources/ZipBuilder/FrameworkBuilder.swift

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -639,34 +639,6 @@ struct FrameworkBuilder {
639639
"\(framework): \(error)")
640640
}
641641

642-
// Move any privacy manifest-containing resource bundles into the
643-
// platform framework.
644-
try? fileManager.contentsOfDirectory(
645-
at: frameworkPath.deletingLastPathComponent(),
646-
includingPropertiesForKeys: nil
647-
)
648-
.filter { $0.pathExtension == "bundle" }
649-
// TODO(ncooke3): Once the zip is built with Xcode 15, the following
650-
// `filter` can be removed. The following block exists to preserve
651-
// how resources (e.g. like FIAM's) are packaged for use in Xcode 14.
652-
.filter { bundleURL in
653-
let dirEnum = fileManager.enumerator(atPath: bundleURL.path)
654-
var containsPrivacyManifest = false
655-
while let relativeFilePath = dirEnum?.nextObject() as? String {
656-
if relativeFilePath.hasSuffix("PrivacyInfo.xcprivacy") {
657-
containsPrivacyManifest = true
658-
break
659-
}
660-
}
661-
return containsPrivacyManifest
662-
}
663-
// Bundles are moved rather than copied to prevent them from being
664-
// packaged in a `Resources` directory at the root of the xcframework.
665-
.forEach { try! fileManager.moveItem(
666-
at: $0,
667-
to: platformFrameworkDir.appendingPathComponent($0.lastPathComponent)
668-
) }
669-
670642
// Headers from slice
671643
do {
672644
let headersSrc: URL = frameworkPath.appendingPathComponent("Headers")

0 commit comments

Comments
 (0)