[carthage-fix] Update PBXProjGenerator to embed frameworks also in test bundles and extensions

This commit is contained in:
Pedro Piñera
2018-01-21 17:51:03 -05:00
parent 1787231017
commit c6554fd3e8
3 changed files with 64 additions and 2 deletions
@@ -29,6 +29,14 @@ extension PBXProductType {
public var isApp: Bool {
return fileExtension == "app"
}
public var isTestBundle: Bool {
return fileExtension == "xctest"
}
public var shouldEmbedDynamicFrameworks: Bool {
return isApp || isExtension || isTestBundle
}
public var name: String {
return rawValue.replacingOccurrences(of: "com.apple.product-type.", with: "")