Couldnot find text iOS Appium Selenium Web Driver

i their any other way to find text

elementByXPath(’"").text() is working

Such as:
elementByName("") or elementByAccessibilityId("")

Note:i want to find text