UI inspector not working

[debug] [XCUITest] Creating iDevice object with udid 1231231232123123213123
[XCUITest] Could not initialize ios-deploy make sure it is installed and works on your system
[XCUITest] Error: Could not initialize ios-deploy make sure it is installed and works on your system
at XCUITestDriver.getIDeviceObj$ (…/…/lib/driver.js:685:13)
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)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Error: Could not initialize ios-deploy make sure it is installed and works on your system
at XCUITestDriver.getIDeviceObj$ (…/…/lib/driver.js:685:13)
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)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[debug] [XCUITest] Running iOS simulator reset flow
[MJSONWP] Encountered internal error running command: Error: Could not initialize ios-deploy make sure it is installed and works on your system
at XCUITestDriver.getIDeviceObj$ (…/…/lib/driver.js:685:13)
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)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)

Please install ios-deploy: brew install ios-deploy

Thanks @pavanbachu

My error resolved , now new error encountered. Please check and advise.

[Xcode] Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.2’

[Xcode] Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the project editor.
Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.2’

[Xcode] Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.2’

[Xcode]
Testing failed:

[Xcode] Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the project editor.
Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.2’
** TEST FAILED **

The following build commands failed:
Check dependencies
(1 failure)

[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’

Read this thread, you need to sign the WebDriverAgentRunner (Find both targets) in XCode:

You can find details in this thread:
https://discuss.appium.io/t/xcodebuild-failed-with-code-65-warning-the-server-did-not-provide-any-stacktrace-information-command-duration-or-timeout-32-63-seconds/

@Cauthon - Thank you , I could able to resolve the problem using above solution.
Now I have new error, Please take a look and advise for steps.

[Xcode] 2017-01-13 14:32:52.138 xcodebuild[1807:31742] Connection peer refused channel request for “dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface”; channel canceled <DTXChannel: 0x7fa99cc9f2e0>

[Xcode]
Testing failed:

[Xcode] No signing certificate “iOS Development” found: No “iOS Development” signing certificate matching team ID “889ZYAXXXX” with a private key was found.
** TEST FAILED **

The following build commands failed:
Check dependencies

I believe that error has to do with either your Apple certificate not being set to iOS development (you may have a release certificate) or that it has not been downloaded and installed on your local development machine. Check to make sure the profile and cert you use in XCode for signing the WebDriverAgent project are set to development.

@Cauthon - can you please share the steps ? How to check the certificate as you have mentioned above.

Thanks