We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be4822e commit 95a15a9Copy full SHA for 95a15a9
Sources/XCBuildSupport/XcodeBuildSystem.swift
@@ -104,10 +104,13 @@ public final class XcodeBuildSystem: SPMBuildCore.BuildSystem {
104
arguments += buildParameters.xcbuildFlags
105
106
let delegate = createBuildDelegate()
107
+
108
let redirection: Process.OutputRedirection = .stream(stdout: delegate.parse(bytes:), stderr: { bytes in
- self.diagnostics.emit(StringError(String(bytes: bytes, encoding: .utf8)!))
109
+ if let str = String(bytes: bytes, encoding: .utf8) {
110
+ self.diagnostics.emit(warning: str)
111
+ }
112
})
-
113
114
let process = Process(arguments: arguments, outputRedirection: redirection)
115
try process.launch()
116
let result = try process.waitUntilExit()
0 commit comments