From decfa2d770c01e12df5f1b28d55f70524456fb1b Mon Sep 17 00:00:00 2001 From: Yonas Kolb Date: Thu, 1 Mar 2018 21:52:42 +1100 Subject: [PATCH] listen to embed flag for carthage dependencies --- Sources/XcodeGenKit/PBXProjGenerator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/XcodeGenKit/PBXProjGenerator.swift b/Sources/XcodeGenKit/PBXProjGenerator.swift index 1aff050d..78c1333f 100644 --- a/Sources/XcodeGenKit/PBXProjGenerator.swift +++ b/Sources/XcodeGenKit/PBXProjGenerator.swift @@ -470,7 +470,7 @@ public class PBXProjGenerator { carthageFrameworksByPlatform[target.platform.carthageDirectoryName, default: []].insert(fileReference) targetFrameworkBuildFiles.append(buildFile.reference) - if target.platform == .macOS && target.type.isApp { + if target.platform == .macOS && embed { let embedFile = createObject( id: fileReference + target.name, PBXBuildFile(fileRef: fileReference, settings: dependency.buildSettings)