IOS Xcodebuild exited with code '65' after few runs

Our IOS app (real device ipad) in Appium runs fine for a certain number say around 15 to 20. All of a sudden appium stops working and i have to uninstall and reinstall to continue the test. Not able to find suitable solution from the past 2 weeks. There is no issue w.r.t signing of profile. The configuration is done correctly.

TEST EXECUTE FAILED
[Xcode]
[Xcode]
[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[debug] [BaseDriver] Event ‘wdaStartFailed’ logged at 1497517553073 (14:35:53 GMT+0530 (IST))
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 3423)
[debug] [XCUITest] iproxy exited with code ‘null’
[debug] [XCUITest] Removing WDA application from device
[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
at XCUITestDriver.quitAndUninstall$ (…/…/lib/driver.js:374:15)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)