IOS-setValue and sendkeys are not working in webdriverio , Appium 1.21.0,browserstack

I’m using appium1.21.0 with ios 14.4 emulator on browser stack. I unable set value for the passcode screen.
const ActionHelper = require(’./…/helpers/actionHelpers’);
require(‘chai’).should();

class CreatePasscodePage{
constructor()
{
this.passcode1 = ‘//XCUIElementTypeOther[@name=“passcode entry screen header”]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeOther’;

 }

enterPasscode1(passcode)
{

   // ActionHelper.typeText(this.passcode1,passcode)
   // console.log(passcodeNo1);
   // ActionHelper.setPasscode(this.passcode1,passcode);
    //ActionHelper.sendText(this.passcode1,passcodeNo1);
//ActionHelper.enterPasscode(this.passcode1,passcode);
ActionHelper.setValue(this.passcode1,passcode);
}

}
module.exports=CreatePasscodePage;

ActionHelper class:
static setValue(locator,inputText)
{
//$(locator).setValue(inputText);
browser.setValue($(locator),inputText);
}
How can I achieve setvalue or sendkeys in webdriverio, anyone have knowledge about this please help me-Thanks

Browserstack, like many vendors changes Appium to some degree. I’m not actually sure what they change/add to it. I could not find a BrowserStack Forum, but this is their support page for automation, with a ‘Contact Us’ button on the bottom. If you are paying for this service, you ought to be entitled to support:

https://www.browserstack.com/support/automate

You may get a quicker answer by posing your question to them.