Visual Studio 2019 for Mac:调试器未连接到 iOS 设备
Visual Studio 2019 for Mac: debugger doesn't connect to iOS device
我正在尝试在全新的 MacBook Pro (Mojave) 上使用 visual studio 2019 调试一个长期受苦的 Xamarin 应用程序。
解决方案构建、传输到设备并启动应用程序,但调试器不会通过电缆或 wifi 连接。 Visual Studio 中用于 Mac 的虚拟项目也不会连接,但 xcode 中的虚拟项目会。
VS 只是说 "waiting for the debugger to connect to ... on port 10000 via Wifi"
这是我的 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
求助。
首先确保xcode和visual studio版本是最新的。
也试试
通过点击图标手动启动应用程序
正在从设备中删除应用程序并重新部署它
正在重启设备
更改调试器端口
遗憾的是,这些错误现在通常隐藏在 VS 2019 中,Mac。您需要查看 Build Output window 以准确确定导致此故障的原因。
您描述的行为不属于特定类型的错误,它仅表示 VS 没有直观地显示其描述,而是因为 运行 进程在尝试放置构建时失败而卡住了在物理设备上。
我正在尝试在全新的 MacBook Pro (Mojave) 上使用 visual studio 2019 调试一个长期受苦的 Xamarin 应用程序。
解决方案构建、传输到设备并启动应用程序,但调试器不会通过电缆或 wifi 连接。 Visual Studio 中用于 Mac 的虚拟项目也不会连接,但 xcode 中的虚拟项目会。
VS 只是说 "waiting for the debugger to connect to ... on port 10000 via Wifi"
这是我的 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
求助。
首先确保xcode和visual studio版本是最新的。
也试试
通过点击图标手动启动应用程序
正在从设备中删除应用程序并重新部署它
正在重启设备
更改调试器端口
遗憾的是,这些错误现在通常隐藏在 VS 2019 中,Mac。您需要查看 Build Output window 以准确确定导致此故障的原因。
您描述的行为不属于特定类型的错误,它仅表示 VS 没有直观地显示其描述,而是因为 运行 进程在尝试放置构建时失败而卡住了在物理设备上。