尝试使用VS 2019调试本机iOS应用

时间:2019-07-07 09:25:52

标签: c++ ios visual-studio

我正在尝试使用VS 2019安装和调试本机iOS项目。

我遵循了here的说明,并从here安装了Node。

该应用会生成并安装到我的设备上(注意:仅通过USB。如果在WiFi模式下尝试,则会出现错误Failed to fetch the first device. Reason: Cannot read property 'name' of undefined)。

但是该应用程序将无法运行。尝试过(来自here):

sudo chmod 777 /var/db/lockdown
brew uninstall ios-webkit-debug-proxy
brew uninstall ideviceinstaller
brew uninstall libimobiledevice

brew install --HEAD libimobiledevice
brew install --HEAD ideviceinstaller
brew install --HEAD ios-webkit-debug-proxy

在OSX级别,我的控制台如下所示:

Device.installApp executing command: /usr/local/lib/node_modules/vcremote/node_modules/ios-deploy/build/Release/ios-deploy --id 355c4a7afbd0e98ac9596c146fa1d051e9b2b3fe --nostart --bundle "/Volumes/DATA/r/F/ITOOLS/Tralala/Tralala/ARM64/Debug//Tralala.app" --timeout 5
Installed app on device: 'iPad'
GET /projects/2df69712-b4b8-43f3-9ada-fc50ca3fa6b1/build/ce4ed9aa-f673-4c78-99cb-968e2dc5bb7c/install?ver=1.4.0&appName=Tralala.app 200 5856ms
Debug Listener already listening
GET /debug/appRemotePath?package=com.Tralala&deviceUdid=xxxx 404 38ms - 196b

在Visual Studio中,出现此错误:

Unable to start debugging. Unexecpted failure trying to reach vcremote: NotFound

首先,程序包名称无效。但是,即使我将其更改为com.Tralala,也出现了同样的问题404。

为什么?我想念什么吗?

请注意,该应用程序也不会在模拟器中调试,它会在模拟器中运行,但VS会挂起一条消息“等待应用程序启动。请(重新)启动...”

我也检查了here的指令,没有运气。似乎找不到已安装的应用程序,但是该应用程序在其中,libimobiledevice可以看到它。

0 个答案:

没有答案