ios - cordova-tools 处理“启动”时出错:无法找到 webview | Ionic 4 - VS 代码上的 Angular 7
问题描述
我需要帮助...所以我的目标是使用 Visual Studio 代码和内部断点调试我的离子应用程序。所以我的配置是:
- Mac OS 莫哈韦沙漠
- iOS 12.3.1
- Visual Studio(最后一次更新 2019 年 5 月)
- 已安装 Xcode 10.2.1
- 已安装 Visual Studio Code 上的 Cordova 工具 ( https://marketplace.visualstudio.com/items?itemName=msjsdiag.cordova-tools )
- 在 iPhone 上的 Safari 上,我将 Safari -> Advanced -> Inspector web 设置为 true
- 已安装 ios-webkit-debug-proxy 并已连接拦截器(如您所见)
所以,我的配置(launch.json)是:
{
"name": "Attach to iOS on device",
"type": "cordova",
"request": "attach",
"platform": "ios",
"target": "mytarget device",
"cwd": "${workspaceFolder}",
"sourceMaps": true,
"port": 9222,
"attachDelay": 5000
},
{
"name": "Run iOS on device",
"type": "cordova",
"request": "launch",
"platform": "ios",
"target": "my target device",
"sourceMaps": true,
"cwd": "${workspaceFolder}",
// "ionicLiveReload": true,
"devServerTimeout" : 420000,
"port": 9222,
"attachDelay": 5000
}
为了运行,我已经Run iOS on device
在我运行的设备上启动了应用程序之后Attach to iOS on device
。因此,当我认为一切正常时:visual studio 向我返回此错误:
Attaching to ios
Configuring debugging proxy
Unable to find webview <- this is my error.
我无法解决此错误,我该如何工作并找到 webview?我试图设置这个:
"attachDelay": 5000
但没有成功。有任何想法吗 ?
谢谢
解决方案
推荐阅读
- go - 将 server.go 和 client.go 中的以下代码分开
- tensorflow - 如何获取已保存模型的输出节点名称?
- java - 无法请求请求属性 - 请求不再处于活动状态
- php - 1)警告:mysqli_fetch_array() 需要参数 1 2)警告:mysqli_query() 需要至少 2 个参数
- laravel - Laravel:在多个不同的表中查找对象
- javascript - 如何设置html元素填充颜色与正文颜色相同
- python - 如果不存在元素值,则在保留空间的同时计算数组中值的频率的有效方法
- magnolia - Magnolia 实例未启动
- python - 如何让 selenium 会话在 heroku 中保持活跃?
- php - Codeigniter 文件上传,例如 docx 等 下载后的空白页