add guard for non-app target

This commit is contained in:
toshi0383
2017-10-04 22:22:39 +09:00
parent c94de4d6cc
commit d03fb7785e
+1 -1
View File
@@ -297,7 +297,7 @@ public class PBXProjGenerator {
carthageFrameworksByPlatform[target.platform.carthageDirectoryName]?.append(fileReference)
targetFrameworkBuildFiles.append(buildFile.reference)
if target.platform == .macOS {
if target.platform == .macOS && target.type.isApp {
let embedFile = PBXBuildFile(reference: generateUUID(PBXBuildFile.self, fileReference + target.name), fileRef: fileReference, settings: dependency.buildSettings)
addObject(embedFile)
copyFiles.append(embedFile.reference)