找不到 Xamarin Xcode



我刚刚将MacOS更新到12.4并安装了Xcode 13.1,但当我尝试使用VS2022从我的PC连接时,我一无所获。在Xamarin输出窗口中,我得到这个消息无法找到Xcode,所以我不确定我需要做些什么来运行这个?

Broker 17.2.0.175 started successfully
Successfully connected to Local Broker
Starting IDB Local Agent...
Checking IDB.Local 17.2.0.175 installation...
Starting IDB.Local 17.2.0.175 in port 51028...
IDB.Local 17.2.0.175 started successfully
Successfully started IDB Local Agent
iTunes has not been found. Please ensure to have a valid iTunes installation in order to communicate with Apple devices in Windows
Checking host configuration for connecting to 'User Support - MacBook Pro'...
Checking SSH configuration...
Current SSH Key File: C:UsersmcdevittAppDataLocalXamarinMonoTouchid_rsa.pub
Initializing environment...
Checking available disk space...
Checking Mono installation...
Checking Xamarin iOS installation...
Checking host configuration for connecting to 'User Support - MacBook Pro'...
Host 'User Support - MacBook Pro' is configured correctly
Starting connection to 'User Support - MacBook Pro'...
Checking Broker 17.2.0.175 installation...
Installing Broker 17.2.0.175...
Uploading Broker.zip (160/1533 KB) 10%...
Uploading Broker.zip (320/1533 KB) 20%...
Uploading Broker.zip (464/1533 KB) 30%...
Uploading Broker.zip (624/1533 KB) 40%...
Uploading Broker.zip (768/1533 KB) 50%...
Uploading Broker.zip (928/1533 KB) 60%...
Uploading Broker.zip (1088/1533 KB) 70%...
Uploading Broker.zip (1232/1533 KB) 80%...
Uploading Broker.zip (1392/1533 KB) 90%...
Uploaded Broker.zip 100%
Starting Broker 17.2.0.175 in port 59780...
Broker 17.2.0.175 started successfully
Starting connection to 'User Support - MacBook Pro'...
SSH connection to 'User Support - MacBook Pro' has been established...
Starting registered Agents: IDB 17.2.0.175...
Starting IDB 17.2.0.175...
Checking IDB 17.2.0.175 installation...
Installing IDB 17.2.0.175...
Uploading IDB.zip (1552/15404 KB) 10%...
Uploading IDB.zip (3088/15404 KB) 20%...
Uploading IDB.zip (4624/15404 KB) 30%...
Uploading IDB.zip (6176/15404 KB) 40%...
Uploading IDB.zip (7712/15404 KB) 50%...
Uploading IDB.zip (9248/15404 KB) 60%...
Uploading IDB.zip (10784/15404 KB) 70%...
Uploading IDB.zip (12336/15404 KB) 80%...
Uploading IDB.zip (13872/15404 KB) 90%...
Uploaded IDB.zip 100%
Starting IDB 17.2.0.175 in port 59780...
A remote error occurred in the connected Mac
Xcode couldn't be found at /Applications/Xcode.app. Please specify the right location in Visual Studio under 'Tools > Options > Xamarin > iOS Settings' or ensure that it is installed properly at the default location ('/Applications/Xcode.app')

我刚刚遇到了同样的错误-对我来说,解决方案是打开Xcode->Preferences并在Locations选项卡上打开"命令行工具"田野是空的。只需要点击命令行工具下拉并选择Xcode版本。重新启动Visual Studio并重新连接,并且能够成功连接。

最新更新