Uploaded image for project: 'Swift'
  1. Swift
  2. SR-8803

Issue in swift 4.2 with spaces in folder names on Linux

    XMLWordPrintable

    Details

      Description

      I found that when building a swift project with the Release config, if there are spaces in any folder names then errors are thrown during the linking process.

      Linking ./.build/x86_64-unknown-linux/release/Run
      clang: error: no such file or directory: '/home/ubuntu/MyApp/.build/x86_64-unknown-linux/release/App.build/Models/Contexts/PDF'
      clang: error: no such file or directory: 'Contexts/AppPDFContext.swift.o' 
      clang: error: no such file or directory: '/home/ubuntu/MyApp/.build/x86_64-unknown-linux/release/App.build/Models/Contexts/View' 
      clang: error: no such file or directory: 'Contexts/AppViewContext.swift.o'
      

      As you can see above, the errors are printed across multiple lines. It thinks the files are: 

      • /home/ubuntu/MyApp/.build/x86_64-unknown-linux/release/App.build/Models/Contexts/PDF
      • Contexts/AppPDFContext.swift.o
      • /home/ubuntu/MyApp/.build/x86_64-unknown-linux/release/App.build/Models/Contexts/View
      • Contexts/AppViewContext.swift.o

      The folder names with spaces are "PDF Contexts" and "View Contexts"

       

      This didn't happen on Swift 4.1.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joebayld Joe Bay
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: