热重启不再起作用,根本无法调试应用程序 [英] Hot Restart not working anymore, can't debug app at all

查看:32
本文介绍了热重启不再起作用,根本无法调试应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 XAML 和代码隐藏进行了一些更改,并在我的物理 iPad 上查看了更改.我看到我的更改没有得到反映,所以我删除了该应用程序并希望它重新安装.但是,从那时起,我每次尝试在设备上调试时都会收到此错误:

I had made some changes to both XAML and code-behind, and went to see the changes on my physical iPad. I saw that my changes weren't being reflected, so I deleted the app and expected it to reinstall. However, from that point, I received this error every time I tried to debug on the device:

严重性代码描述项目文件行抑制状态错误 运行 hotrestart 时出错:签署应用程序‘TraceIt.iOS.app’时发生错误".详细信息:未将对象引用设置为对象的实例.'.命令:'sign -i=C:\Users\Gorilla Rig\AppData\Local\Temp\Xamarin\HotRestart\Bundles\16.7.000.440\a0005e492e54334d6dcf94dfaa23baba\TraceIt.iOS.app"-p=C:\Users\Gorilla Rig\AppData\Local\Xamarin\iOS\Provisioning\Profiles\042184b7-110e-4dc3-abab-635382ed7659.mobileprovision"-c=C:\Users\Gorilla Rig\AppData\Local\Xamarin\iOS\Provisioning\Certificates\2E160A7E60AF6F7B.p12";-pk=CFBundleIdentifier"-pv=com.companyname.TraceIt"-w=145b2541-08e5-43e5-b15a-b7a650b26f22"'TraceIt.iOS

我在我的 iPhone 上试过,同样的问题.删除了应用程序,确保它没有加载任何东西,但唉,同样的问题.我已尝试转到 iOS 捆绑签名设置并重新加载配置文件.没什么.

I tried on my iPhone, same issue. Deleted the app, making sure it wasn't in the middle of loading anything, but alas, the same problem. I have attempted going to iOS Bundle Signing settings and reloading the provisioning profile. Nothing.

在 Android 上调试工作正常.

Debugging works fine on Android.

我能做什么?

推荐答案

在这种情况下,最好清理并重建解决方案.在 iOS 上,如果您尝试从设备中删除一个应用程序,然后重新安装到一个不存在的目录(在这种情况下是您删除的应用程序),那么它就会失败.

In this case, it's best to do a clean and rebuild the solution. On iOS, if you try to delete an application from the device, and then reinstall into a directory which does not exist (in this case the app you deleted), then it will fail.

如果这不起作用,请关闭 Visual Studio,然后重新打开,同时重复上述过程.

If that doesn't work, then close visual studio, and reopen, along with repeating the above process.

这篇关于热重启不再起作用,根本无法调试应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆