vscode-ios-debug
vscode-ios-debug copied to clipboard
Will not allow me to run app on simulator no matter what I try
MAUI App .Net 8 targetting iOS:
With the default configuration, I am able to get the app to deploy and debug on a real device:
{
"name":"Launch App",
"type":"maui",
"request":"launch",
"configuration": "Release",
"preLaunchTask":"maui: Build"
}
But no matter what I do, when I try to select a different device, it stays stuck to deploying only to the real device, even when it is unplugged and will complain within the debug console the following: Please connect the device '00008110-0009151A3604801E'...
I have closed VSCode, rebooted, Unpaired the device in XCode, etc to no avail. When I debug the app I select different simulators such as iPhone 14, iPhone 15 etc and nothing changes, it always wants me to connect '00008110-0009151A3604801E which is the real device.
So then I set the configuration based on the iOS Debug documentation:
{
"name": "Launch App",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/build/Debug-${command:ios-debug.targetSdk}/MyApp.app",
"iosBundleId": "com.mycompany.myapp",
"iosTarget": "select"
}
When I run the app, it first asks me to select a device and no matter what I choose all I get is an error popup in the lower right corner of VSCOde that says: Failed to install and launch app on simulator
There is no error info in output windows. Nothing in output, debug console, or terminal.
I have spent hours trying to figure this out.
I know there is no issue with my code because when I use the first configuration, it deploys to the device and the app runs fine. The issue is, no matter what I am unable to get the app to run on the simulator.