Command CompileSwiftSources failed with a nonzero exit code












2















I am using Xcode 10 and no CocoaPods.



<unknown>:0: error: no such file or directory: '/Users/XXXXXXXXXXXXX/Library/Developer/Xcode/DerivedData/iOS_Belt_-_MyEvents-eektunqbfhmzjabcmfpiscjsxlyf/Build/Intermediates.noindex/iOS Belt - MyEvents.build/Debug-iphonesimulator/iOS Belt - MyEvents.build/DerivedSources/CoreDataGenerated/iOS_Belt___MyEvents/iOS_Belt___MyEvents+CoreDataModel.swift'


Command CompileSwiftSources failed with a nonzero exit code










share|improve this question

























  • Delete your DerivedData folder and try again? That often fixes this kind of problem.

    – John Montgomery
    Sep 27 '18 at 20:35











  • Sorry this didn't fix it. Thanks though! :(

    – user5508867
    Sep 27 '18 at 21:56











  • See this: stackoverflow.com/a/52481653/1485367

    – Yaroslav
    Sep 28 '18 at 6:57











  • Thanks for reaching out Yaroslav! I did try your remedy prior and it didn't work. Apparently what might've fixed it for me was not naming/starting my project name with a "-" or dash character. Rebuilt a new project and it worked just fine.

    – user5508867
    Sep 28 '18 at 8:40
















2















I am using Xcode 10 and no CocoaPods.



<unknown>:0: error: no such file or directory: '/Users/XXXXXXXXXXXXX/Library/Developer/Xcode/DerivedData/iOS_Belt_-_MyEvents-eektunqbfhmzjabcmfpiscjsxlyf/Build/Intermediates.noindex/iOS Belt - MyEvents.build/Debug-iphonesimulator/iOS Belt - MyEvents.build/DerivedSources/CoreDataGenerated/iOS_Belt___MyEvents/iOS_Belt___MyEvents+CoreDataModel.swift'


Command CompileSwiftSources failed with a nonzero exit code










share|improve this question

























  • Delete your DerivedData folder and try again? That often fixes this kind of problem.

    – John Montgomery
    Sep 27 '18 at 20:35











  • Sorry this didn't fix it. Thanks though! :(

    – user5508867
    Sep 27 '18 at 21:56











  • See this: stackoverflow.com/a/52481653/1485367

    – Yaroslav
    Sep 28 '18 at 6:57











  • Thanks for reaching out Yaroslav! I did try your remedy prior and it didn't work. Apparently what might've fixed it for me was not naming/starting my project name with a "-" or dash character. Rebuilt a new project and it worked just fine.

    – user5508867
    Sep 28 '18 at 8:40














2












2








2








I am using Xcode 10 and no CocoaPods.



<unknown>:0: error: no such file or directory: '/Users/XXXXXXXXXXXXX/Library/Developer/Xcode/DerivedData/iOS_Belt_-_MyEvents-eektunqbfhmzjabcmfpiscjsxlyf/Build/Intermediates.noindex/iOS Belt - MyEvents.build/Debug-iphonesimulator/iOS Belt - MyEvents.build/DerivedSources/CoreDataGenerated/iOS_Belt___MyEvents/iOS_Belt___MyEvents+CoreDataModel.swift'


Command CompileSwiftSources failed with a nonzero exit code










share|improve this question
















I am using Xcode 10 and no CocoaPods.



<unknown>:0: error: no such file or directory: '/Users/XXXXXXXXXXXXX/Library/Developer/Xcode/DerivedData/iOS_Belt_-_MyEvents-eektunqbfhmzjabcmfpiscjsxlyf/Build/Intermediates.noindex/iOS Belt - MyEvents.build/Debug-iphonesimulator/iOS Belt - MyEvents.build/DerivedSources/CoreDataGenerated/iOS_Belt___MyEvents/iOS_Belt___MyEvents+CoreDataModel.swift'


Command CompileSwiftSources failed with a nonzero exit code







xcode cocoapods






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 28 '18 at 13:50









Nimesh Neema

461421




461421










asked Sep 27 '18 at 20:27







user5508867




















  • Delete your DerivedData folder and try again? That often fixes this kind of problem.

    – John Montgomery
    Sep 27 '18 at 20:35











  • Sorry this didn't fix it. Thanks though! :(

    – user5508867
    Sep 27 '18 at 21:56











  • See this: stackoverflow.com/a/52481653/1485367

    – Yaroslav
    Sep 28 '18 at 6:57











  • Thanks for reaching out Yaroslav! I did try your remedy prior and it didn't work. Apparently what might've fixed it for me was not naming/starting my project name with a "-" or dash character. Rebuilt a new project and it worked just fine.

    – user5508867
    Sep 28 '18 at 8:40



















  • Delete your DerivedData folder and try again? That often fixes this kind of problem.

    – John Montgomery
    Sep 27 '18 at 20:35











  • Sorry this didn't fix it. Thanks though! :(

    – user5508867
    Sep 27 '18 at 21:56











  • See this: stackoverflow.com/a/52481653/1485367

    – Yaroslav
    Sep 28 '18 at 6:57











  • Thanks for reaching out Yaroslav! I did try your remedy prior and it didn't work. Apparently what might've fixed it for me was not naming/starting my project name with a "-" or dash character. Rebuilt a new project and it worked just fine.

    – user5508867
    Sep 28 '18 at 8:40

















Delete your DerivedData folder and try again? That often fixes this kind of problem.

– John Montgomery
Sep 27 '18 at 20:35





Delete your DerivedData folder and try again? That often fixes this kind of problem.

– John Montgomery
Sep 27 '18 at 20:35













Sorry this didn't fix it. Thanks though! :(

– user5508867
Sep 27 '18 at 21:56





Sorry this didn't fix it. Thanks though! :(

– user5508867
Sep 27 '18 at 21:56













See this: stackoverflow.com/a/52481653/1485367

– Yaroslav
Sep 28 '18 at 6:57





See this: stackoverflow.com/a/52481653/1485367

– Yaroslav
Sep 28 '18 at 6:57













Thanks for reaching out Yaroslav! I did try your remedy prior and it didn't work. Apparently what might've fixed it for me was not naming/starting my project name with a "-" or dash character. Rebuilt a new project and it worked just fine.

– user5508867
Sep 28 '18 at 8:40





Thanks for reaching out Yaroslav! I did try your remedy prior and it didn't work. Apparently what might've fixed it for me was not naming/starting my project name with a "-" or dash character. Rebuilt a new project and it worked just fine.

– user5508867
Sep 28 '18 at 8:40












2 Answers
2






active

oldest

votes


















2














My instructor was able to help remedy this with me. Apparently, you should avoid having dash (-) characters when naming your project at the start. So just open a new Xcode project and avoid using hyphens in the title.






share|improve this answer































    -1














    I also encountered this error when I compile with Deployment Target 11.0.



    My solution is to change the value to 11.4.






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52544654%2fcommand-compileswiftsources-failed-with-a-nonzero-exit-code%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown
























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      My instructor was able to help remedy this with me. Apparently, you should avoid having dash (-) characters when naming your project at the start. So just open a new Xcode project and avoid using hyphens in the title.






      share|improve this answer




























        2














        My instructor was able to help remedy this with me. Apparently, you should avoid having dash (-) characters when naming your project at the start. So just open a new Xcode project and avoid using hyphens in the title.






        share|improve this answer


























          2












          2








          2







          My instructor was able to help remedy this with me. Apparently, you should avoid having dash (-) characters when naming your project at the start. So just open a new Xcode project and avoid using hyphens in the title.






          share|improve this answer













          My instructor was able to help remedy this with me. Apparently, you should avoid having dash (-) characters when naming your project at the start. So just open a new Xcode project and avoid using hyphens in the title.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 28 '18 at 8:47







          user5508867
































              -1














              I also encountered this error when I compile with Deployment Target 11.0.



              My solution is to change the value to 11.4.






              share|improve this answer




























                -1














                I also encountered this error when I compile with Deployment Target 11.0.



                My solution is to change the value to 11.4.






                share|improve this answer


























                  -1












                  -1








                  -1







                  I also encountered this error when I compile with Deployment Target 11.0.



                  My solution is to change the value to 11.4.






                  share|improve this answer













                  I also encountered this error when I compile with Deployment Target 11.0.



                  My solution is to change the value to 11.4.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 22 '18 at 1:40









                  Big HeadBig Head

                  11




                  11






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52544654%2fcommand-compileswiftsources-failed-with-a-nonzero-exit-code%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      'app-layout' is not a known element: how to share Component with different Modules

                      android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

                      WPF add header to Image with URL pettitions [duplicate]