Skip to content

Commit f6c2eec

Browse files
launch-xcode: honor DEVELOPER_DIR
1 parent 6988bf1 commit f6c2eec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/launch-xcode/launch-xcode.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ struct LaunchXcode: CommandPlugin {
4040

4141
print("Launching Xcode...")
4242
let process = Process()
43-
process.executableURL = URL(fileURLWithPath: "/usr/bin/open")
44-
process.arguments = ["-n", "-F", "-W", "--env", "XCBBUILDSERVICE_PATH=\(buildServiceURL.path())", "-b", "com.apple.dt.Xcode"]
43+
process.executableURL = URL(fileURLWithPath: "/bin/sh")
44+
process.arguments = ["-c", "open -n -F -W --env 'XCBBUILDSERVICE_PATH=\(buildServiceURL.path(percentEncoded: false))' $(xcode-select -p)/../.."]
4545
process.standardOutput = nil
4646
process.standardError = nil
4747
try await process.run()

0 commit comments

Comments
 (0)