无法使用Cordova和VS2017在远程iOS设备上进行调试

时间:2018-04-09 11:41:58

标签: ios cordova visual-studio-2017

我一直在尝试使用VS2017和Cordova启动并运行“WeatherApp”教程。它将在模拟器中正常运行,并且在我将目标连接到构建服务器的远程设备时也会构建。但是,当我实际尝试调试它时,我收到以下错误:

Requesting launch on remote iOS device for buildNumber 38983 on server     http://X.X.X.X:3000/cordova...
http://X.X.X.X:3000/cordova/build/38983/run The remote server returned an     error: (404) Not Found.
Requesting debug on remote iOS device for buildNumber 38983 on server     http://X.X.X.X:3000/cordova...
http://X.X.X.X:3000/cordova/build/38983/debug The remote server returned     an error: (500) Internal Server Error.

以下是从我正在运行remotebuild的控制台窗口输出的(我使用的是2.1.3版本):

GET /cordova/build/tasks/49127 200 0.776 ms - 710
GET /cordova/build/tasks/49127 200 0.936 ms - 710
Done with current build. Checking for next build in queue.
GET /cordova/build/tasks/49127 200 1.534 ms - 689
GET /cordova/build/tasks/49127/log 200 23.425 ms - -
GET /cordova/build/49127/download 200 784.221 ms - -
GET /cordova/build/49127/deploy 200 798.379 ms - 726
GET /cordova/build/49127/run 404 11665.133 ms - 35
GET /cordova/build/49127/debug 500 10013.731 ms - 88
GET /cordova/build/49127 200 2.319 ms - 726

因此,出于某种原因,它认为它已部署但在尝试运行时无法找到任何内容。

WeatherApp2 \ bin \ iOS \ Debug文件夹中填充了Windows计算机上的.ipa / .plist / zip文件。 Mac上的cordovaApp / bin文件夹中没有任何内容。 Cordova版本是8.0.0

修改

在Mac上我可以通过在cordovaApp目录中键入以下内容来运行应用程序,这样可以正常工作:

cordova run --device from cordovaApp dir

0 个答案:

没有答案