1. 首先在Xamarin项目中的iOS Debug中关闭Enable Debugging选项 enter image description here

  2. 然后在Xamarin中运行App,然后可以在Mac的Activity Monitor中看到该App的进程 enter image description here

  3. 在Xcode中选择Debug > Attach to Process by PID or Name enter image description here

  4. 在Xcode中运行Debug View Hierarchy工具既可看到该App的View Hierarchy enter image description here