TeamCity unmet requirement: MSBuildTools12.0_x86_Path exists (Mac only)











up vote
0
down vote

favorite












I've seen this question asked but never specifically for Mac. My company is using TeamCity on a Mac Mini to do our iOS and android builds. We would use windows but, iOS builds require a Mac with Xcode. I have not been able to satisfy this condition. I can see that there are multiple versions of MSBuild (and Xbuild) already on my machine. Here is what I tried:




  • set an environment variable for MSBuildTools12.0_x86_Path using launchctl setenv (tried the bin directory of every instance of MSBuild existing on my machine), rebooted before checking TC

  • setting env.MSBuildTools12.0_x86_Path entry in buildAgent.properties

  • setting system.MSBuildTools12.0_x86_Path entry in buildAgent.properties

  • logging into TeamCity, going to my build configuration, going to the "parameters" tab and adding a new parameter for env.MSBuildTools12.0_x86_Path


After all of the above failed to satisfy the condition, I tried grabbing version 12 of MSBuild from a Windows machine, copying it to my Mac and pointing to its "Bin" directory instead, and repeating all bullets above.

The path was /Users/myusername/MSBuild/12.0/Bin. This bin directory contains MSBuild.exe, an MSBuild folder, a bunch of DLLs and more.



Again, this failed to change the outcome of the unmet condition in TeamCity. The frustrating thing is that TeamCity isn't giving me details. I don't know if it's still complaining that the path isn't even set (and where it is even looking for that path definition), or if it SEES that the path is set but it's not pointing to a folder it recognizes as MSBuild. I'm completely in the dark.



Does anyone have any guidance for me on this? I feel I've exhausted all paths to a solution. Thank you so much, in advance.










share|improve this question






















  • I had the wrong version of Visual Studio selected. I have Visual Studio 2017 installed on my Mac. Once I corrected it, the requirement became MSBuildTools15.0_x86_Path. So I set it to the bin directory of VS2017 where MSBuild exists: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin but that didn't do a bit of good. I have the same error except it's MSBuild 15 instead of 12. I'm totally stuck here.
    – iPaul
    Nov 20 at 19:36










  • Could it be 32 bit vs. 64 bit? It's looking for x86, not x64, but I see no way to set it to 64-bit in the build step for Visual Studio.
    – iPaul
    Nov 20 at 19:55















up vote
0
down vote

favorite












I've seen this question asked but never specifically for Mac. My company is using TeamCity on a Mac Mini to do our iOS and android builds. We would use windows but, iOS builds require a Mac with Xcode. I have not been able to satisfy this condition. I can see that there are multiple versions of MSBuild (and Xbuild) already on my machine. Here is what I tried:




  • set an environment variable for MSBuildTools12.0_x86_Path using launchctl setenv (tried the bin directory of every instance of MSBuild existing on my machine), rebooted before checking TC

  • setting env.MSBuildTools12.0_x86_Path entry in buildAgent.properties

  • setting system.MSBuildTools12.0_x86_Path entry in buildAgent.properties

  • logging into TeamCity, going to my build configuration, going to the "parameters" tab and adding a new parameter for env.MSBuildTools12.0_x86_Path


After all of the above failed to satisfy the condition, I tried grabbing version 12 of MSBuild from a Windows machine, copying it to my Mac and pointing to its "Bin" directory instead, and repeating all bullets above.

The path was /Users/myusername/MSBuild/12.0/Bin. This bin directory contains MSBuild.exe, an MSBuild folder, a bunch of DLLs and more.



Again, this failed to change the outcome of the unmet condition in TeamCity. The frustrating thing is that TeamCity isn't giving me details. I don't know if it's still complaining that the path isn't even set (and where it is even looking for that path definition), or if it SEES that the path is set but it's not pointing to a folder it recognizes as MSBuild. I'm completely in the dark.



Does anyone have any guidance for me on this? I feel I've exhausted all paths to a solution. Thank you so much, in advance.










share|improve this question






















  • I had the wrong version of Visual Studio selected. I have Visual Studio 2017 installed on my Mac. Once I corrected it, the requirement became MSBuildTools15.0_x86_Path. So I set it to the bin directory of VS2017 where MSBuild exists: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin but that didn't do a bit of good. I have the same error except it's MSBuild 15 instead of 12. I'm totally stuck here.
    – iPaul
    Nov 20 at 19:36










  • Could it be 32 bit vs. 64 bit? It's looking for x86, not x64, but I see no way to set it to 64-bit in the build step for Visual Studio.
    – iPaul
    Nov 20 at 19:55













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I've seen this question asked but never specifically for Mac. My company is using TeamCity on a Mac Mini to do our iOS and android builds. We would use windows but, iOS builds require a Mac with Xcode. I have not been able to satisfy this condition. I can see that there are multiple versions of MSBuild (and Xbuild) already on my machine. Here is what I tried:




  • set an environment variable for MSBuildTools12.0_x86_Path using launchctl setenv (tried the bin directory of every instance of MSBuild existing on my machine), rebooted before checking TC

  • setting env.MSBuildTools12.0_x86_Path entry in buildAgent.properties

  • setting system.MSBuildTools12.0_x86_Path entry in buildAgent.properties

  • logging into TeamCity, going to my build configuration, going to the "parameters" tab and adding a new parameter for env.MSBuildTools12.0_x86_Path


After all of the above failed to satisfy the condition, I tried grabbing version 12 of MSBuild from a Windows machine, copying it to my Mac and pointing to its "Bin" directory instead, and repeating all bullets above.

The path was /Users/myusername/MSBuild/12.0/Bin. This bin directory contains MSBuild.exe, an MSBuild folder, a bunch of DLLs and more.



Again, this failed to change the outcome of the unmet condition in TeamCity. The frustrating thing is that TeamCity isn't giving me details. I don't know if it's still complaining that the path isn't even set (and where it is even looking for that path definition), or if it SEES that the path is set but it's not pointing to a folder it recognizes as MSBuild. I'm completely in the dark.



Does anyone have any guidance for me on this? I feel I've exhausted all paths to a solution. Thank you so much, in advance.










share|improve this question













I've seen this question asked but never specifically for Mac. My company is using TeamCity on a Mac Mini to do our iOS and android builds. We would use windows but, iOS builds require a Mac with Xcode. I have not been able to satisfy this condition. I can see that there are multiple versions of MSBuild (and Xbuild) already on my machine. Here is what I tried:




  • set an environment variable for MSBuildTools12.0_x86_Path using launchctl setenv (tried the bin directory of every instance of MSBuild existing on my machine), rebooted before checking TC

  • setting env.MSBuildTools12.0_x86_Path entry in buildAgent.properties

  • setting system.MSBuildTools12.0_x86_Path entry in buildAgent.properties

  • logging into TeamCity, going to my build configuration, going to the "parameters" tab and adding a new parameter for env.MSBuildTools12.0_x86_Path


After all of the above failed to satisfy the condition, I tried grabbing version 12 of MSBuild from a Windows machine, copying it to my Mac and pointing to its "Bin" directory instead, and repeating all bullets above.

The path was /Users/myusername/MSBuild/12.0/Bin. This bin directory contains MSBuild.exe, an MSBuild folder, a bunch of DLLs and more.



Again, this failed to change the outcome of the unmet condition in TeamCity. The frustrating thing is that TeamCity isn't giving me details. I don't know if it's still complaining that the path isn't even set (and where it is even looking for that path definition), or if it SEES that the path is set but it's not pointing to a folder it recognizes as MSBuild. I'm completely in the dark.



Does anyone have any guidance for me on this? I feel I've exhausted all paths to a solution. Thank you so much, in advance.







macos msbuild teamcity






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 19 at 18:37









iPaul

132




132












  • I had the wrong version of Visual Studio selected. I have Visual Studio 2017 installed on my Mac. Once I corrected it, the requirement became MSBuildTools15.0_x86_Path. So I set it to the bin directory of VS2017 where MSBuild exists: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin but that didn't do a bit of good. I have the same error except it's MSBuild 15 instead of 12. I'm totally stuck here.
    – iPaul
    Nov 20 at 19:36










  • Could it be 32 bit vs. 64 bit? It's looking for x86, not x64, but I see no way to set it to 64-bit in the build step for Visual Studio.
    – iPaul
    Nov 20 at 19:55


















  • I had the wrong version of Visual Studio selected. I have Visual Studio 2017 installed on my Mac. Once I corrected it, the requirement became MSBuildTools15.0_x86_Path. So I set it to the bin directory of VS2017 where MSBuild exists: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin but that didn't do a bit of good. I have the same error except it's MSBuild 15 instead of 12. I'm totally stuck here.
    – iPaul
    Nov 20 at 19:36










  • Could it be 32 bit vs. 64 bit? It's looking for x86, not x64, but I see no way to set it to 64-bit in the build step for Visual Studio.
    – iPaul
    Nov 20 at 19:55
















I had the wrong version of Visual Studio selected. I have Visual Studio 2017 installed on my Mac. Once I corrected it, the requirement became MSBuildTools15.0_x86_Path. So I set it to the bin directory of VS2017 where MSBuild exists: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin but that didn't do a bit of good. I have the same error except it's MSBuild 15 instead of 12. I'm totally stuck here.
– iPaul
Nov 20 at 19:36




I had the wrong version of Visual Studio selected. I have Visual Studio 2017 installed on my Mac. Once I corrected it, the requirement became MSBuildTools15.0_x86_Path. So I set it to the bin directory of VS2017 where MSBuild exists: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin but that didn't do a bit of good. I have the same error except it's MSBuild 15 instead of 12. I'm totally stuck here.
– iPaul
Nov 20 at 19:36












Could it be 32 bit vs. 64 bit? It's looking for x86, not x64, but I see no way to set it to 64-bit in the build step for Visual Studio.
– iPaul
Nov 20 at 19:55




Could it be 32 bit vs. 64 bit? It's looking for x86, not x64, but I see no way to set it to 64-bit in the build step for Visual Studio.
– iPaul
Nov 20 at 19:55












1 Answer
1






active

oldest

votes

















up vote
0
down vote













I figured it out on my own. On the Mac, you have to do an "MSBuild" runner type and pick "Mono xbuild 4.5" for the version. I used "x86" for the run platform and set a parameter for Mono4.5_x86 to point to xbuild. But it was trying to run the 64 bit version of mono and I found no way to set a command line argument for mono to tell it I want --arch=32 so I ended up having to link the mono executable to mono-sgen32 to get the build to finally work.






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',
    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%2f53380752%2fteamcity-unmet-requirement-msbuildtools12-0-x86-path-exists-mac-only%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I figured it out on my own. On the Mac, you have to do an "MSBuild" runner type and pick "Mono xbuild 4.5" for the version. I used "x86" for the run platform and set a parameter for Mono4.5_x86 to point to xbuild. But it was trying to run the 64 bit version of mono and I found no way to set a command line argument for mono to tell it I want --arch=32 so I ended up having to link the mono executable to mono-sgen32 to get the build to finally work.






    share|improve this answer

























      up vote
      0
      down vote













      I figured it out on my own. On the Mac, you have to do an "MSBuild" runner type and pick "Mono xbuild 4.5" for the version. I used "x86" for the run platform and set a parameter for Mono4.5_x86 to point to xbuild. But it was trying to run the 64 bit version of mono and I found no way to set a command line argument for mono to tell it I want --arch=32 so I ended up having to link the mono executable to mono-sgen32 to get the build to finally work.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        I figured it out on my own. On the Mac, you have to do an "MSBuild" runner type and pick "Mono xbuild 4.5" for the version. I used "x86" for the run platform and set a parameter for Mono4.5_x86 to point to xbuild. But it was trying to run the 64 bit version of mono and I found no way to set a command line argument for mono to tell it I want --arch=32 so I ended up having to link the mono executable to mono-sgen32 to get the build to finally work.






        share|improve this answer












        I figured it out on my own. On the Mac, you have to do an "MSBuild" runner type and pick "Mono xbuild 4.5" for the version. I used "x86" for the run platform and set a parameter for Mono4.5_x86 to point to xbuild. But it was trying to run the 64 bit version of mono and I found no way to set a command line argument for mono to tell it I want --arch=32 so I ended up having to link the mono executable to mono-sgen32 to get the build to finally work.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 21 at 2:34









        iPaul

        132




        132






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f53380752%2fteamcity-unmet-requirement-msbuildtools12-0-x86-path-exists-mac-only%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

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            TypeError: fit_transform() missing 1 required positional argument: 'X'