Appium accesibility-id with xpath

I need to reach accesibility-id with xpath but i cant reach with //*[@accesibility-id=‘example’] with this how i can reach it i need help

You don’t need to create xpath you can directly use accessibility id

In android I can directly use findelementByaccessibilityId but in IOS can not use that, when use that , ı cant reach the element, I think if I can use accesibilityId in xpath my problem will be solved

Instead of accessibility id use @*.
// * [@ *=‘example’](remove spaces)

Thanks I can reach that with this.