瀏覽代碼

Fix buildDependencies false and subspecs (#5852)

Paul Beusterien 5 年之前
父節點
當前提交
5e5bb91bfc
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      ZipBuilder/Sources/ZipBuilder/ZipBuilder.swift

+ 3 - 1
ZipBuilder/Sources/ZipBuilder/ZipBuilder.swift

@@ -154,7 +154,9 @@ struct ZipBuilder {
     }
 
     let podsToBuild = LaunchArgs.shared.buildDependencies ? installedPods :
-      installedPods.filter { podsToInstall.map { $0.name }.contains($0.key) }
+      installedPods.filter {
+        podsToInstall.map { $0.name.components(separatedBy: "/").first }.contains($0.key)
+      }
 
     // Generate the frameworks. Each key is the pod name and the URLs are all frameworks to be
     // copied in each product's directory.