File tree 1 file changed +13
-3
lines changed
ReleaseTooling/Sources/ZipBuilder
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -690,11 +690,21 @@ struct ZipBuilder {
690
690
result += " \n " // Necessary for Resource message to print properly in markdown.
691
691
692
692
// Check if there is a Resources directory, and if so, add the disclaimer to the dependency
693
- // string.
693
+ // string. At this point, resources will be at the root of XCFrameworks.
694
694
do {
695
695
let fileManager = FileManager . default
696
- let resourceDirs = try fileManager. recursivelySearch ( for: . directories( name: " Resources " ) ,
697
- in: dir)
696
+ let resourceDirs = try fileManager. contentsOfDirectory (
697
+ at: dir,
698
+ includingPropertiesForKeys: [ . isDirectoryKey]
699
+ ) . flatMap {
700
+ try fileManager. contentsOfDirectory (
701
+ at: $0,
702
+ includingPropertiesForKeys: [ . isDirectoryKey]
703
+ )
704
+ } . filter {
705
+ $0. lastPathComponent == " Resources "
706
+ }
707
+
698
708
if !resourceDirs. isEmpty {
699
709
result += Constants . resourcesRequiredText
700
710
result += " \n " // Separate from next pod in listing for text version.
You can’t perform that action at this time.
0 commit comments