CarthageDependencyResolver: ignore order-only dependencies (#1041)

* CarthageDependencyResolver: ignore target-only dependencies

* Update fixtures for expected changed in watchOS apps' FRAMEWORK_SEARCH_PATHS

* Update CHANGELOG.md
This commit is contained in:
Elliott Williams
2021-05-01 15:39:55 +10:00
committed by GitHub
parent 8d918c1e7e
commit fb559ba153
4 changed files with 27 additions and 24 deletions
@@ -68,6 +68,9 @@ public class CarthageDependencyResolver {
if let target = projectTarget as? Target {
for dependency in target.dependencies {
if case (false, false) = (dependency.link, dependency.embed ?? topLevelTarget.shouldEmbedCarthageDependencies) {
continue
}
guard !frameworks.contains(where: { $0.dependency == dependency }) else {
continue
}