Can't find an element when I have a very large xml file

Im working on iOS app that the root view has 2 views above each others with a large xml output from both of them.

When I get the XML from Appium I can’t find my UIButton there, and also couldn’t locate it on appium locator, although I have a visual on the the simulator. Back to code and remove the view controller at bottom (which is not visible), then I can locate the button and find it in the XML.

Any idea of number of elements limitations in appium ??

Thank you guys.

The same problem. Please, provide some workaround.