File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -576,13 +576,21 @@ public final class SwiftTargetBuildDescription {
576
576
guard let bundlePath = self . bundlePath else { return }
577
577
578
578
let stream = BufferedOutputByteStream ( )
579
+
580
+ let mainPath : String = AbsolutePath ( Bundle . main. bundlePath)
581
+ . appending ( component: bundlePath. basename)
582
+ . pathString
583
+ . replacingOccurrences ( of: " \\ " , with: " \\ \\ " )
584
+ let buildPath : String =
585
+ bundlePath. pathString. replacingOccurrences ( of: " \\ " , with: " \\ \\ " )
586
+
579
587
stream <<< """
580
588
import class Foundation.Bundle
581
589
582
590
extension Foundation.Bundle {
583
591
static var module: Bundle = {
584
- let mainPath = Bundle.main.bundlePath + " / " + " \( bundlePath . basename ) "
585
- let buildPath = " \( bundlePath . pathString ) "
592
+ let mainPath = " \( mainPath ) "
593
+ let buildPath = " \( buildPath ) "
586
594
587
595
let preferredBundle = Bundle(path: mainPath)
588
596
You can’t perform that action at this time.
0 commit comments