I'm pretty new to xamarin, tried to run a sample application (IOS). But Visual Studio says: "Please select a valid device before running the application"
I know on the IOS toolbar, there should be option to select which device to simulate (list of supported IOS devices like iphone 6, 5s etc), but I don't get that.
EDIT: To be more precise, TARGET IOS Device not shown on IOS Tool bar
I had the same problem a year back - please check the following:
I think for me it was outdated versions and a hickup in the software, after a reboot it worked.
OR If above steps do not work then try adding new build configuration as shown in following image by selecting iphoneSimulator.
Once in a while I always used to have this issue and solves it by starting Xcode first and then opening VS after. But recently it became consistent after Xcode 12.5 update. So as a trial, I uninstalled VS and reinstalled and now this workaround also stopped working. It's very annoying and there is a bug already reported to Microsoft to fix this.
The solution that worked for me is to
Unfortunately, you always have to open your sample sln first (but no need to create new sln every time) whenever you want to open your solution. But it solves the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With