我无法再在iOS模拟器上调试我的Cordova应用程序。我遇到了可怕的“我们无法找到应用程序......你正试图调试。”错误。我已经尝试了所有的故障排除步骤,但迄今没有任何工作。Apache Cordova的Visual Studio工具 - iOS调试失败
我应该注意到,这个是工作得很好。我能够多次调试我的应用程序,没有任何问题,然后突然发生这个错误,并且我尝试过的任何内容都修复了它。
有趣的是,在Visual Studio中的实际构建日志使它看起来像一切正常:
Requesting debug on remote iOS device for buildNumber 6805 on server https://<redacted>:3000/cordova... Debugging - Successfully Debugging on the device {webDebugPort=9221}
人有什么想法?
UPDATE 1 在我本地的OS X设备上尝试了这一点,并得到了类似的结果。下面是实际的构建日志:
Unable to attach to debug. Check that http://Matts-Mac-mini:9221 is accessible. We were unable to find the app you’re trying to debug. Check that the device is connected, awake, and unlocked. Also, make sure it has Web Inspector enabled. ------ Cordova tools 6.1.1 already installed. Requesting emulate on iOS Simulator for buildNumber 522 on server http://Matts-Mac-mini:3000/cordova... Emulated - Successfully sent to ios Simulator ------ Cordova tools 6.1.1 already installed. Requesting debug on remote iOS device for buildNumber 522 on server http://Matts-Mac-mini:3000/cordova... Debugging - Successfully Debugging on the device {webDebugPort=9221}
看起来事情失败了,但随后的消息后(这马上出现),使它看起来像事情的来龙去脉。该应用程序确实在我的Mac上的模拟器中运行。
尝试打开safari Web Inspector。请参阅[此链接](http://taco.visualstudio.com/en-us/docs/ios-guide/#safari)。 –
已经做到了。 Web Inspector已在模拟器中启用。我尝试禁用它,调试应用程序(如预期的那样失败),然后重新启用它。与以前相同的结果。 –
我发现了一个类似的情况[这里](http://stackoverflow.com/questions/36803349/why-is-visual-studio-taco-unable-to-find-the-app-i-am-trying-to-调试)。我想你可以尝试Jordan Matthiesen的答案来改变暂停。 –