Skip to content

Commit

Permalink
[Add] #302 app모듈 Scheme 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
MUKER-WON committed May 16, 2024
1 parent 7455cdb commit e18eb66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
28 changes: 9 additions & 19 deletions Plugins/EnvironmentPlugin/ProjectDescriptionHelpers/Scheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ public extension Scheme {
codeCoverageTargets: ["\(name)"]
)
),
runAction: .runAction(configuration: .debug),
runAction: .runAction(
configuration: .debug,
arguments: .init(launchArguments: [
.init(
name: "-FIRDebugEnabled",
isEnabled: true
)
])
),
archiveAction: .archiveAction(configuration: .release)
)
}
Expand All @@ -43,22 +51,4 @@ public extension Scheme {
archiveAction: .archiveAction(configuration: .release)
)
}

static func appDebugScheme(name: String) -> Self {
Scheme(
name: "\(name)-FirebaseDebug",
shared: true,
buildAction: .buildAction(targets: ["\(name)-FirebaseDebug"]),
runAction: .runAction(
configuration: .debug,
arguments: Arguments(
launchArguments: [
.init(name: "-FIRDebugEnabled", isEnabled: true)
]
)
),
// TODO: 검토필요
archiveAction: .archiveAction(configuration: .debug)
)
}
}
1 change: 0 additions & 1 deletion Tuist/ProjectDescriptionHelpers/Project+Templates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ extension Project {
}
schemes.append(.moduleScheme(name: name))
schemes.append(.uiTestsScheme(name: name))
schemes.append(.appDebugScheme(name: name))
case .dynamicFramework, .staticFramework:
targetModule = frameworkTarget(
name: name,
Expand Down

0 comments on commit e18eb66

Please sign in to comment.