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 c650821 commit 85c6ac9Copy full SHA for 85c6ac9
Sources/SwiftlyCore/Platform.swift
@@ -215,7 +215,7 @@ extension Platform {
215
// find standard libraries that aren't in the toolchain, like libc++. Here we
216
// use xcrun to tell us what the default sdk root should be.
217
if newEnv["SDKROOT"] == nil {
218
- newEnv["SDKROOT"] = (try? await self.runProgramOutput("/usr/bin/xcrun", "--show-sdk-path"))
+ newEnv["SDKROOT"] = (try? await self.runProgramOutput("/usr/bin/xcrun", "--show-sdk-path"))?.replacingOccurrences(of: "\n", with: "")
219
}
220
#endif
221
0 commit comments