Allow static libraries to see external framework in search paths

This commit is contained in:
Brentley Jones
2018-12-17 09:37:48 -06:00
parent f3e5aa9083
commit 0617337a94
2 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -497,6 +497,9 @@ public class PBXProjGenerator {
}
case .framework:
let buildPath = Path(dependency.reference).parent().string.quoted
frameworkBuildPaths.insert(buildPath)
// Static libraries can't link or embed dynamic frameworks
guard target.type != .staticLibrary else { break }
@@ -529,9 +532,6 @@ public class PBXProjGenerator {
)
copyFrameworksReferences.append(embedFile)
}
let buildPath = Path(dependency.reference).parent().string.quoted
frameworkBuildPaths.insert(buildPath)
case .sdk:
// Static libraries can't link or embed dynamic frameworks
guard target.type != .staticLibrary else { break }