Command /Xcode.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/bin/swiftc failed with exit code 1












1















When I build with Xcode 8.2.1 I received this error:



enter image description here




Command /Volumes/SSD/Xcode.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/bin/swiftc failed with exit code 1




I have cleaned the project, delete derived data, wait for the indexing processing files, close and reopen Xcode, restart computer and nothing.



There is no duplicated files.



Same error happens with other libraries not only Alamofire.



The error begin happening after merge a branch. Keeping in mind that, I have tried go to other old branch where it used to work but it doesn't work anymore, same error.



Any other required information let me know!



Thank you so much.










share|improve this question

























  • Delete your Pods directory and run pod install again.

    – allenh
    Nov 27 '17 at 13:16











  • Still the problem.

    – Eironeia
    Nov 27 '17 at 14:26
















1















When I build with Xcode 8.2.1 I received this error:



enter image description here




Command /Volumes/SSD/Xcode.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/bin/swiftc failed with exit code 1




I have cleaned the project, delete derived data, wait for the indexing processing files, close and reopen Xcode, restart computer and nothing.



There is no duplicated files.



Same error happens with other libraries not only Alamofire.



The error begin happening after merge a branch. Keeping in mind that, I have tried go to other old branch where it used to work but it doesn't work anymore, same error.



Any other required information let me know!



Thank you so much.










share|improve this question

























  • Delete your Pods directory and run pod install again.

    – allenh
    Nov 27 '17 at 13:16











  • Still the problem.

    – Eironeia
    Nov 27 '17 at 14:26














1












1








1








When I build with Xcode 8.2.1 I received this error:



enter image description here




Command /Volumes/SSD/Xcode.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/bin/swiftc failed with exit code 1




I have cleaned the project, delete derived data, wait for the indexing processing files, close and reopen Xcode, restart computer and nothing.



There is no duplicated files.



Same error happens with other libraries not only Alamofire.



The error begin happening after merge a branch. Keeping in mind that, I have tried go to other old branch where it used to work but it doesn't work anymore, same error.



Any other required information let me know!



Thank you so much.










share|improve this question
















When I build with Xcode 8.2.1 I received this error:



enter image description here




Command /Volumes/SSD/Xcode.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/bin/swiftc failed with exit code 1




I have cleaned the project, delete derived data, wait for the indexing processing files, close and reopen Xcode, restart computer and nothing.



There is no duplicated files.



Same error happens with other libraries not only Alamofire.



The error begin happening after merge a branch. Keeping in mind that, I have tried go to other old branch where it used to work but it doesn't work anymore, same error.



Any other required information let me know!



Thank you so much.







ios swift xcode






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 29 '17 at 13:29









Ashwin Sathawane

190112




190112










asked Nov 27 '17 at 11:27









EironeiaEironeia

301116




301116













  • Delete your Pods directory and run pod install again.

    – allenh
    Nov 27 '17 at 13:16











  • Still the problem.

    – Eironeia
    Nov 27 '17 at 14:26



















  • Delete your Pods directory and run pod install again.

    – allenh
    Nov 27 '17 at 13:16











  • Still the problem.

    – Eironeia
    Nov 27 '17 at 14:26

















Delete your Pods directory and run pod install again.

– allenh
Nov 27 '17 at 13:16





Delete your Pods directory and run pod install again.

– allenh
Nov 27 '17 at 13:16













Still the problem.

– Eironeia
Nov 27 '17 at 14:26





Still the problem.

– Eironeia
Nov 27 '17 at 14:26












3 Answers
3






active

oldest

votes


















1














Steps that I followed to make it work:




  • Delete derived data

  • Delete Pod folder and Podfile.lock

  • Delete inside the project:


    • AppName.xcodeproj/xcuserdata

    • AppName.xcworkspace/xcuserdata

    • AppName.xcworkspace/xcshareddata




Afterwards, pod install and surprisingly it works.



EDIT:
Only working with emulator still having the error with the phone.



EDIT2:
I redownload Xcode and now works normally. I keep without knowing the reason why brokes but it's now working.






share|improve this answer

































    0














    For me this was because i renamed some of the project directories. I had a ton of red files. To solve, I followed these steps:
    1. click on the directory in project navigator where many files show as red
    2. Under "Identity and Type" in the File Inspector (on the right side), click Containing directory
    3. Select the new directories
    4. Rebuild - command shift K, command B






    share|improve this answer































      0














      My error shows also the information that some file are used twice in the project. However the complete pointed to the same file with the exact same path.



      I could resolve it by unchecking the files an recheck it again.






      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%2f47509904%2fcommand-xcode-app-contents-developer-toolchains-swift-2-3-xctoolchain-usr-bin-s%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        1














        Steps that I followed to make it work:




        • Delete derived data

        • Delete Pod folder and Podfile.lock

        • Delete inside the project:


          • AppName.xcodeproj/xcuserdata

          • AppName.xcworkspace/xcuserdata

          • AppName.xcworkspace/xcshareddata




        Afterwards, pod install and surprisingly it works.



        EDIT:
        Only working with emulator still having the error with the phone.



        EDIT2:
        I redownload Xcode and now works normally. I keep without knowing the reason why brokes but it's now working.






        share|improve this answer






























          1














          Steps that I followed to make it work:




          • Delete derived data

          • Delete Pod folder and Podfile.lock

          • Delete inside the project:


            • AppName.xcodeproj/xcuserdata

            • AppName.xcworkspace/xcuserdata

            • AppName.xcworkspace/xcshareddata




          Afterwards, pod install and surprisingly it works.



          EDIT:
          Only working with emulator still having the error with the phone.



          EDIT2:
          I redownload Xcode and now works normally. I keep without knowing the reason why brokes but it's now working.






          share|improve this answer




























            1












            1








            1







            Steps that I followed to make it work:




            • Delete derived data

            • Delete Pod folder and Podfile.lock

            • Delete inside the project:


              • AppName.xcodeproj/xcuserdata

              • AppName.xcworkspace/xcuserdata

              • AppName.xcworkspace/xcshareddata




            Afterwards, pod install and surprisingly it works.



            EDIT:
            Only working with emulator still having the error with the phone.



            EDIT2:
            I redownload Xcode and now works normally. I keep without knowing the reason why brokes but it's now working.






            share|improve this answer















            Steps that I followed to make it work:




            • Delete derived data

            • Delete Pod folder and Podfile.lock

            • Delete inside the project:


              • AppName.xcodeproj/xcuserdata

              • AppName.xcworkspace/xcuserdata

              • AppName.xcworkspace/xcshareddata




            Afterwards, pod install and surprisingly it works.



            EDIT:
            Only working with emulator still having the error with the phone.



            EDIT2:
            I redownload Xcode and now works normally. I keep without knowing the reason why brokes but it's now working.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 29 '17 at 12:31

























            answered Nov 28 '17 at 0:30









            EironeiaEironeia

            301116




            301116

























                0














                For me this was because i renamed some of the project directories. I had a ton of red files. To solve, I followed these steps:
                1. click on the directory in project navigator where many files show as red
                2. Under "Identity and Type" in the File Inspector (on the right side), click Containing directory
                3. Select the new directories
                4. Rebuild - command shift K, command B






                share|improve this answer




























                  0














                  For me this was because i renamed some of the project directories. I had a ton of red files. To solve, I followed these steps:
                  1. click on the directory in project navigator where many files show as red
                  2. Under "Identity and Type" in the File Inspector (on the right side), click Containing directory
                  3. Select the new directories
                  4. Rebuild - command shift K, command B






                  share|improve this answer


























                    0












                    0








                    0







                    For me this was because i renamed some of the project directories. I had a ton of red files. To solve, I followed these steps:
                    1. click on the directory in project navigator where many files show as red
                    2. Under "Identity and Type" in the File Inspector (on the right side), click Containing directory
                    3. Select the new directories
                    4. Rebuild - command shift K, command B






                    share|improve this answer













                    For me this was because i renamed some of the project directories. I had a ton of red files. To solve, I followed these steps:
                    1. click on the directory in project navigator where many files show as red
                    2. Under "Identity and Type" in the File Inspector (on the right side), click Containing directory
                    3. Select the new directories
                    4. Rebuild - command shift K, command B







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 6 '18 at 23:34









                    Alaa AwadAlaa Awad

                    98231031




                    98231031























                        0














                        My error shows also the information that some file are used twice in the project. However the complete pointed to the same file with the exact same path.



                        I could resolve it by unchecking the files an recheck it again.






                        share|improve this answer




























                          0














                          My error shows also the information that some file are used twice in the project. However the complete pointed to the same file with the exact same path.



                          I could resolve it by unchecking the files an recheck it again.






                          share|improve this answer


























                            0












                            0








                            0







                            My error shows also the information that some file are used twice in the project. However the complete pointed to the same file with the exact same path.



                            I could resolve it by unchecking the files an recheck it again.






                            share|improve this answer













                            My error shows also the information that some file are used twice in the project. However the complete pointed to the same file with the exact same path.



                            I could resolve it by unchecking the files an recheck it again.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 22 '18 at 10:32









                            we7eewe7ee

                            1088




                            1088






























                                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%2f47509904%2fcommand-xcode-app-contents-developer-toolchains-swift-2-3-xctoolchain-usr-bin-s%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

                                MongoDB - Not Authorized To Execute Command

                                How to fix TextFormField cause rebuild widget in Flutter

                                in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith