You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows版Visual Studio 2022+MAUI无法连接Mac问题求助

MAUI项目无法连接Mac构建主机(Xamarin Forms连接正常)

环境信息

  • Windows:Visual Studio 2022 v17.4.4,曾测试VS 17.5 Preview(build 1728)
  • Mac:Xcode 14.1,已安装xamarin.ios-16.1.1.27.pkg、xamarin.mac.9.0.0.27.pkg;.NET SDK版本7.0.102,dotnet ios workload版本16.1.1477

问题现象

  • Xamarin Forms项目可正常连接Mac构建主机,但MAUI项目始终无法连接,且VS中的“连接”按钮会失效,必须重启VS才能再次尝试连接
  • 偶尔弹出异常错误提示:

    The Xcode version installed on the Mac (14.1) is not compatible with this version of Visual Studio. This may cause unexpected warnings or errors when building and deploying iOS projects. Please install Xcode '0.0'.

连接日志

Checking host configuration for connecting to <mac's IP address>...
Checking SSH configuration...
Current SSH Key File: C:\Users\XXXXX\AppData\Local\Xamarin\MonoTouch\id_xma.pub
Initializing environment...
Checking available disk space...
Checking Mono installation...
Checking host configuration for connecting to '<mac's IP address>'...
Host '<mac's IP address>' is configured correctly
Starting connection to '<mac's IP address>'...
Checking Broker 17.4.0.312 installation...
Starting Broker 17.4.0.312 in port 59545...
Broker 17.4.0.312 started successfully
Starting connection to '<mac's IP address>'...
SSH connection to '<mac's IP address>' has been established...
Starting registered Agents: IDB 17.4.0.312...
Starting IDB 17.4.0.312...
Checking IDB 17.4.0.312 installation...
Starting IDB 17.4.0.312 in port 59545...
IDB 17.4.0.312 started successfully
IDB 17.4.0.312 started
Starting registered Agents: ...
The Agents have been started successfully
Performing server validations against '<mac's IP address>'...
dotnet validation completed
The dotnet SDK is already installed. Version: '7.0.102'
Sdk packs found: 
dotnet validation completed
The dotnet ios workload is already installed. Version: '16.1.1477'
Initializing IDB environment...
Server Settings:
- mlaunch path: 
- Xcode version: 14.1
- Xcode path: /Applications/Xcode.app

Starting disconnection from <mac's IP address>...
Validating Mac operating system version compatibility...
Starting disconnection from <mac's IP address>...
The connection to '<mac's IP address>' has been finished

已查阅大量资料仍未找到解决方案,求各位帮忙排查。

内容的提问来源于stack exchange,提问作者John Ureke

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.03 12:02:44