为什么在 Mac 的 Visual Studio 中只显示 "Generic Simulator" 而菜单项 "iOS and Mac" 变灰?

Why is only "Generic Simulator" showing and the menu item "iOS and Mac" grayed out in Visual Studio for Mac?

我正在为 Mac 使用 Visual Studio,我想知道为什么主菜单 Tools 下的菜单项 "iOS and Mac" 被禁用。

而且我的 iPhone 模拟器没有显示在模拟器中部署 iOS 应用程序。

我在 Visual Studio 的首选项中设置了我的 Apple SDK 路径,如下所示。 /Applications/Xcode.app/

我的 macOS 和 Visual Studio 版本是:

macOS High Sierra 10.13.6
Visual Studio Community 2019 for Mac 8.10.8 (build 0)
Xamarin.iOS 12.6.0.25
Xcode 10.1

我找到了修复只显示通用模拟器的方法。我只是在解决方案中 unload the Xamarin.iOS projectreload itset it as startup project。就这么简单。我从别人的回答中得到了正确的方法。