Cannot get xml source & unable to inspect an IOS app page using Appium Inspector in latest version of Appium Desktop 1.7.0

When I have tried to inspect a particular page having webservice call in an IOS app in iPhone X simulator, the app crashes, appium inspector throws the error as follows and the app gets closed.

Error in Appium Inspector window -
Could not obtain source: {“cause”:{“sessionId”:“28833cee-e0ea-4a9d-abac-eca0d2f7ad88”,“status”:13,“value”:{“message”:“An unknown server-side error occurred while processing the command. Original error: Cannot get ‘xml’ source of the current application”}},“jsonwire-error”:{“detail”:“An unknown server-side error occurred while processing the command.”,“status”:13,“summary”:“UnknownError”},“message”:"[source()] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: Cannot get ‘xml’ source of the current application",“status”:13}

Environment -
Automating platform - IOS 11.4
Appium version - latest version 1.9.0
Appium Desktop version - latest version 1.7.0
Simulator/Emulator - iPhone X IOS simulator
The language used for writing tests - NodeJS , webdriverIO
System OS - Mac OS X High Sierra 10.13.6

Appium session logs -

[HTTP] --> GET /wd/hub/session/28833cee-e0ea-4a9d-abac-eca0d2f7ad88/source
[HTTP] {}
[MJSONWP] Calling AppiumDriver.getPageSource() with args: [“28833cee-e0ea-4a9d-abac-eca0d2f7ad88”]
[XCUITest] Executing command ‘getPageSource’
[JSONWP Proxy] Matched ‘/source’ to command name ‘getPageSource’
[JSONWP Proxy] Proxying [GET /source] to [GET http://localhost:8100/session/B022B432-5A75-48D6-B359-EC7C88329D66/source] with no body
[JSONWP Proxy] Got response with status 200: “{\n “value” : “Cannot get ‘xml’ source of the current application”,\n “sessionId” : “B022B432-5A75-48D6-B359-EC7C88329D66”,\n “status” : 13\n}”
[MJSONWP] Matched JSONWP error code 13 to UnknownError
[MJSONWP] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Cannot get ‘xml’ source of the current application
[MJSONWP] at errorFromMJSONWPStatusCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:787:10)
[MJSONWP] at ProxyRequestError.getActualError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:681:14)
[MJSONWP] at JWProxy.command$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:369:19)
[MJSONWP] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[MJSONWP] at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[MJSONWP] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[MJSONWP] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[MJSONWP] at
[HTTP] <-- GET /wd/hub/session/28833cee-e0ea-4a9d-abac-eca0d2f7ad88/source 500 3255 ms - 221

I have attached the screenshots for reference.