Skip to content

Commit

Permalink
Missing askForAppToLaunch in ProfileAction (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellE committed Jul 7, 2022
1 parent b952b2e commit cb1a968
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
</MacroExpansion>
</LaunchAction>
<ProfileAction
askForAppToLaunch = "YES"
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
Expand Down
3 changes: 3 additions & 0 deletions Sources/XcodeProj/Scheme/XCScheme+ProfileAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ extension XCScheme {
"debugDocumentVersioning": debugDocumentVersioning.xmlString,
])
super.writeXML(parent: element)
if let askForAppToLaunch = askForAppToLaunch {
element.attributes["askForAppToLaunch"] = askForAppToLaunch.xmlString
}
if ignoresPersistentStateOnLaunch {
element.attributes["ignoresPersistentStateOnLaunch"] = ignoresPersistentStateOnLaunch.xmlString
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/XcodeProjTests/Scheme/XCSchemeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ final class XCSchemeIntegrationTests: XCTestCase {
XCTAssertEqual(scheme.profileAction?.savedToolIdentifier, "")
XCTAssertTrue(scheme.profileAction?.useCustomWorkingDirectory == false)
XCTAssertTrue(scheme.profileAction?.debugDocumentVersioning == true)
XCTAssertNil(scheme.profileAction?.askForAppToLaunch)
XCTAssertTrue(scheme.profileAction?.askForAppToLaunch == true)
XCTAssertNil(scheme.profileAction?.commandlineArguments)
XCTAssertNil(scheme.profileAction?.environmentVariables)

Expand Down

0 comments on commit cb1a968

Please sign in to comment.