visual-studio-macxamarin.macxcode14macos-ventura

Xamarin.Mac: MMP : error MM5309: Failed to execute the tool 'clang'


Since macOS has been upgraded, I upgraded all development environments (Xcode, etc.) and wanted to build with an existing macOS application software project, but I get the following 2 errors and cannot build.

clang : error : linker command failed with exit code 1 (use -v to see invocation)
MMP : error MM5309: Failed to execute the tool 'clang', it failed with an error code '1'. Please check the build log for details.

I have done a lot of searching, but I have no idea what to do. If anyone knows what to do, I would appreciate any tips you can give me.


Solution

  • @Anoop Vaidya

    Thank you for your comment. I was checking the Xamarin GitHub repository and a similar question was asked most recently.

    https://github.com/xamarin/xamarin-macios/issues/16616

    It seemed that the SDK update had not caught up with Xcode 14.1.

    I installed a package that will be officially released shortly and was able to build without any problems.

    Another workarounds:

    Temporarily reverting Xcode 14.1 back to Xcode 14.0.1 seems to prevent this problem.

    https://developer.apple.com/download/all/?q=xcode

    Visual Studio Community 2019 for Mac Version 8.10.25 (build 2)

    and confirmed that it works.