Merge pull request #199 from vhbit/overwrite-cmdargs

Fixed test/profile command line args not being passed
This commit is contained in:
Yonas Kolb authored and GitHub committed 2017-12-21 16:35:57 +08:00
commit 8864e4b1b6
1 file changed
+2
@@ -70,6 +70,7 @@ public class ProjectGenerator {
let testAction = XCScheme.TestAction(buildConfiguration: scheme.test?.config ?? defaultDebugConfig.name,
macroExpansion: buildableReference,
testables: testables,
shouldUseLaunchSchemeArgsEnv: scheme.test?.commandLineArguments.isEmpty ?? true,
codeCoverageEnabled: scheme.test?.gatherCoverageData ?? false,
commandlineArguments: testCommandLineArgs)
@@ -79,6 +80,7 @@ public class ProjectGenerator {
let profileAction = XCScheme.ProfileAction(buildableProductRunnable: productRunable,
buildConfiguration: scheme.profile?.config ?? defaultReleaseConfig.name,
shouldUseLaunchSchemeArgsEnv: scheme.profile?.commandLineArguments.isEmpty ?? true,
commandlineArguments: profileCommandLineArgs)
let analyzeAction = XCScheme.AnalyzeAction(buildConfiguration: scheme.analyze?.config ?? defaultDebugConfig.name)