Skip to content

Commit

Permalink
fix: make watch targets runnable to fix schemes in Xcode 12
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidharris committed Dec 1, 2020
1 parent 255e654 commit af7a794
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/TuistCore/Models/Product.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public enum Product: String, CustomStringConvertible, CaseIterable, Encodable {
/// Returns true if the target can be ran.
public var runnable: Bool {
switch self {
case .app, .appClip, .commandLineTool:
case .app, .appClip, .commandLineTool, .watch2App, .watch2Extension:
return true
default:
return false
Expand Down
2 changes: 1 addition & 1 deletion Tests/TuistCoreTests/Models/ProductTests .swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ final class ProductTests: XCTestCase {

func test_runnable() {
Product.allCases.forEach { product in
if [.app, .appClip, .commandLineTool].contains(product) {
if [.app, .appClip, .commandLineTool, .watch2App, .watch2Extension].contains(product) {
XCTAssertTrue(product.runnable)
} else {
XCTAssertFalse(product.runnable)
Expand Down

0 comments on commit af7a794

Please sign in to comment.