xamarin - Visual Studio 2019 for Mac:调试器无法连接到 iOS 设备
问题描述
我正在尝试在全新的 MacBook Pro (Mojave) 上使用 Visual Studio 2019 调试长期遭受的 Xamarin 应用程序。
解决方案构建、传输到设备并启动应用程序,但调试器不会通过电缆或 wifi 连接。Visual Studio for Mac 中的虚拟项目也不会连接,但 xcode 中的虚拟项目会。
VS 只是说“等待调试器通过 Wifi 连接到端口 10000 上的...”
这是我的VS详细信息:
Visual Studio Community 2019 for Mac
Version 8.1.3 (build 19)
Installation UUID: 76ac8505-c20b-434f-95d4-c8266d3517f2
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.6.0.25 (d16-0 / 50f75273)
Package version: 518010028
Mono Framework MDK
Runtime:
Mono 5.18.1.28 (2018-08/223ea7ef92e) (64-bit)
Package version: 518010028
NuGet
Version: 5.0.2.5988
.NET Core
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
3.0.0-preview6-27804-01
2.1.11
2.1.9
SDK: /usr/local/share/dotnet/sdk/3.0.100-preview6-012264/Sdks
SDK Versions:
3.0.100-preview6-012264
2.1.700
2.1.505
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/Current/bin/Sdks
Xamarin.Profiler
Version: 1.6.10
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
Updater
Version: 11
Xamarin.Android
Not Installed
Microsoft Mobile OpenJDK
Java SDK: Not Found
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
Android Device Manager
Version: 1.2.0.44
Hash: aac645b
Branch: remotes/origin/d16-1
Build date: 2019-05-29 19:55:24 UTC
Xamarin Designer
Version: 16.1.0.467
Hash: f1657e133
Branch: remotes/origin/d16-1-new-document-model
Build date: 2019-06-18 21:57:42 UTC
Apple Developer Tools
Xcode 10.2.1 (14490.122)
Build 10E1001
Xamarin.Mac
Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.
Xamarin.iOS
Version: 12.10.0.157 (Visual Studio Community)
Hash: 6bd94753
Branch: d16-1
Build date: 2019-06-12 17:28:47-0400
Xamarin Inspector
Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1
Build Information
Release ID: 801030019
Git revision: 2d04b0145da8aa946d2cc9898fe2a59484e4f3f4
Build date: 2019-06-26 15:34:25+00
Build branch: release-8.1
Xamarin extensions: de240bddd6d1f96bfb1e7d11ce7ac5398956fe1d
Operating System
Mac OS X 10.14.5
Darwin 18.6.0 Darwin Kernel Version 18.6.0
Thu Apr 25 23:16:27 PDT 2019
root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
帮助。
解决方案
遗憾的是,这些错误现在通常隐藏在 VS 2019 for Mac 中。您需要查看Build Output窗口以准确确定导致此故障的原因。
您描述的行为不属于特定类型的错误,这只意味着VS没有直观地显示其描述,而是因为尝试将构建放在物理设备上时运行过程失败而卡住了。
推荐阅读
- mysql - MySQL 更新,但删除重复键(由于唯一索引)
- python - 读取 CSV 列,如果满足要求,写入单元格
- python - 如何提高深度学习中的准确性和验证准确性
- java - K8 容器编排:JVM 不释放内存
- javascript - 如何在这种情况下使用 Jest 测试 Express 路由器 catch 分支?
- javascript - 为什么不是
- oracle-sqldeveloper - 尝试在 Oracle SQL Developer 中使用 Sybase 连接时如何解决此错误?
- javascript - 有没有一种已知的方法可以在 Angular 中包含 Webfow JS 动画?
- xml - 根据条件添加新节点
- select - tinymce 将样式应用于整行,如标题、段落