Mobile:installcertificate

I use virtual device in perfecto for my testing , but while installing our Root certificate , my virtual device is not getting recognised as simulator (ie. as per (https://github.com/appium/appium-xcuitest-driver/blob/master/lib/commands/certificate.js)) , I wanted to know how/from where are we getting the “this.opts.realDevice” property, please help me to understand this ?

below is my capabalities
platformName=iOS
platformVersion=16.0
model=iPhone 14
manufacturer=Apple
useVirtualDevice=true

You need capability “deviceName”.

https://appium.io/docs/en/writing-running-appium/caps/

My best advice is to name the simulator something unique, example:

“iPhone 14” is a terrible name, “iphone_14_regression” is a great name.