Button in real device app is working but when run in appium through eclipse its not working

Xcode:Version 12.4
Appium:1.20.2
Simulator:14.4