Xcode Build Failure 65- Unable to run Appium in iOS real devices

I am trying to run Appium in real iOS devices. But everytime i run i get error “Xcode build failure - 65” . I have tried every possible scenario but still it is not working. It works fine when i run the test cases in Simulator. Am i doing something wrong? Is there something to do with my Xcode and Mac iOS version? Is there are dependencies for xcode version and Mac iOS version?
My system/devices version-
Macbook Air- macOS High Sierra(10.13.6)
Xcode Version- 10.1(10B61)
Appium version- 1.12.1