Few things to keep in mind while running in real device: 1)No simulator should be opened. 2)Make sure the .app file which you are using is build for real device(take the help of developer to find it out) 3)Pass correct udid and bundle id. 4)If you are getting error like app installed failed or something like that then try to do pass app path from appium gui and other parameters from your code i.e. device name , platform capabilities; trying these different combinations do help sometimes.