File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
ReleaseTooling/Sources/ZipBuilder Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,19 @@ extension CarthageUtils {
106
106
let fullPath = packagedDir. appendingPathComponent ( product)
107
107
guard FileManager . default. isDirectory ( at: fullPath) else { continue }
108
108
109
+ // Abort Carthage generation if there are any xcframeworks.
110
+ do {
111
+ let files = try FileManager . default. contentsOfDirectory ( at: fullPath,
112
+ includingPropertiesForKeys: nil )
113
+ let xcfFiles = files. filter { $0. pathExtension == " xcframework " }
114
+ if xcfFiles. count > 0 {
115
+ print ( " Skipping Carthage generation for \( product) since it includes xcframeworks. " )
116
+ continue
117
+ }
118
+ } catch {
119
+ fatalError ( " Failed to get contents of \( fullPath) . " )
120
+ }
121
+
109
122
// Parse the JSON file, ensure that we're not trying to overwrite a release.
110
123
var jsonManifest = parseJSONFile ( fromDir: jsonDir, product: product)
111
124
You can’t perform that action at this time.
0 commit comments