Xamarin Forms iOS 部署到物理设备后无法调试。

huangapple go评论57阅读模式
英文:

Xamarin Forms iOS not debugging after deploying to phyical device

问题

很长时间以来,我一直在尝试在从Visual Studio(PC)部署到我的Mac服务器(Mac Mini M1)后进行调试。应用程序完全构建并在物理设备上显示闪屏页面的同时开始部署过程加载程序集。在最后一个程序集加载后,调试器会终止,没有报告的错误。请参见下文:

我已尝试降低Xamarin.iOS版本,将Xcode降级到14.2,将Visual Studio 2022降级到早期版本。我已更改链接器行为,删除了热重启/重新加载,并在两台计算机上调整了各种设置,但仍然无法在iOS设备上进行任何调试。

它可以顺利部署到模拟器,但由于应用程序需要蓝牙连接,我需要一个物理设备。我的物理设备是运行iOS 16.4的iPhone 11。

英文:

So for months now I have been struggling to debug after deploying from my Visual Studio (PC) to my mac server (Mac Mini M1). The application completely builds and begins the deployment process by loading assemblies while the splash page displays on the physical device. After the last assembly loads the debugger terminates with no reported errors. see below:

Loaded assembly: /private/var/containers/Bundle/Application/F0F79FD8-A3A6-441D-B0F5-7CDC3EF52807/[appName].iOS.app/AutoMapper.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/F0F79FD8-A3A6-441D-B0F5-7CDC3EF52807/[appName].iOS.app/[appName].Interfaces.dll
Loaded assembly: /private/var/containers/Bundle/Application/F0F79FD8-A3A6-441D-B0F5-7CDC3EF52807/[appName].iOS.app/GraphQL.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/F0F79FD8-A3A6-441D-B0F5-7CDC3EF52807/[appName].iOS.app/GraphQL.Client.Abstractions.Websocket.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/F0F79FD8-A3A6-441D-B0F5-7CDC3EF52807/[appName].iOS.app/GraphQL.Client.Abstractions.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/F0F79FD8-A3A6-441D-B0F5-7CDC3EF52807/[appName].iOS.app/GraphQL.Client.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/F0F79FD8-A3A6-441D-B0F5-7CDC3EF52807/[appName].app/GraphQL.Client.Serializer.Newtonsoft.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/F0F79FD8-A3A6-441D-B0F5-7CDC3EF52807/[appName].iOS.app/[appName].Application.dll
The app has been terminated.

I have attempted to lower my Xamarin.IOS version, my Xcode to 14.2, my visual studio 2022 to previous versions. I have changed my linker behavior, removed hot restart/reload, and played with settings throughout both computers to no avail. Still unable to debug anything on iOS devices.

It deploys fine to an emulator but because of the app's need for a Bluetooth connection, I need a physical device. My physical device is an iPhone 11 on iOS 16.4

答案1

得分: 1

我尝试通过WiFi调试,但一旦将我的Mac连接到以太网,我的调试器就没有问题。现在看起来非常明显,但希望如果有人遇到类似问题,他们可以避免像我一样经历几个月的痛苦 Xamarin Forms iOS 部署到物理设备后无法调试。

英文:

I was attempting to debug over wifi and once I put my Mac on ethernet, I had no problems with my debugger. Seems super obvious now but hopefully if anyone else runs into this issue, they can avoid months of torment like I did Xamarin Forms iOS 部署到物理设备后无法调试。

huangapple
  • 本文由 发表于 2023年5月11日 03:15:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/76221887.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定