macos里CLion编译问题如何解决?

有哪位能解决这个问题?

CMake Error at /Users/***/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/232.8453.115/CLion 2023.2 EAP.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeTestCXXCompiler.cmake:60 (message):
  The C++ compiler

    "/usr/local/bin/g++-13"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /Users/***/Desktop/C++/cmake-build-debug/CMakeFiles/CMakeScratch/TryCompile-mDSZwy
    
    Run Build Command(s):/Users/***/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/232.8453.115/CLion 2023.2 EAP.app/Contents/bin/ninja/mac/ninja -v cmTC_a0b8f && [1/2] /usr/local/bin/g++-13   -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -fdiagnostics-color=always -o CMakeFiles/cmTC_a0b8f.dir/testCXXCompiler.cxx.o -c /Users/***/Desktop/C++/cmake-build-debug/CMakeFiles/CMakeScratch/TryCompile-mDSZwy/testCXXCompiler.cxx
    [2/2] : && /usr/local/bin/g++-13 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/cmTC_a0b8f.dir/testCXXCompiler.cxx.o -o cmTC_a0b8f   && :
    FAILED: cmTC_a0b8f 
    : && /usr/local/bin/g++-13 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/cmTC_a0b8f.dir/testCXXCompiler.cxx.o -o cmTC_a0b8f   && :
    ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/lib/libSystem.tbd' for architecture x86_64
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^