Visual Studio Mac Error : Custom command execution failed !

I recently upgraded VS for mac and getting an error "Custom command execution failed" error. Its a Xamarin Mac project. Any help appreceated.

Answers

  • luke_iluke_i Member

    having same issue, any solutions?

  • Try this command..

    ~$ sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

  • AllanChin.6924AllanChin.6924 USUniversity ✭✭✭
    edited May 28

    Ran into a 2 of these after an upgrade. A search of the build output revealed a couple of these.

    **_Executing: sh -c 'xcodebuild -project xxx.xcodeproj -configuration Debug clean build'
    note: Using new build system
    error: Could not delete .../build because it was not created by the build system.

    ** CLEAN FAILED _

    Manually moved the 2 offending "build" folders to Trash and the errors went away. Maybe because of the new OS and dev environment?

  • cbusquecbusque Member
    edited May 29

    In XXX.csproj, I had to replace
    <CustomCommands>
    <Command>
    <type>BeforeBuild</type>
    <command>
    </command>
    </Command>
    </CustomCommands>

    by
    <CustomCommands>
    <Command type="BeforeBuild" command="" />
    </CustomCommands>

Sign In or Register to comment.