iOS app fails to launch via the inspector start session screen

When I run the code, then the app is installed & launched successfully, however when I tried to launch it via the latest Appium client (via the inspector start session button) then the app is installed however it fails to launch (see below server log).

Any Idea what is the issue here?

Log:
Last login: Tue Oct 17 16:33:03 on console
Menys-MacBook-Pro:~ menypeled$ appium
[Appium] Welcome to Appium v1.7.2-beta
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/sessions {}
[debug] [MJSONWP] Calling AppiumDriver.getSessions() with args: []
[debug] [MJSONWP] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 12 ms - 40
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/menypeled/Documents/workspace/iOS_Appium/SkyGiraffe_5.12.2.app",“bundleId”:“beta.skygiraffe.skygiraffe”,“deviceName”:“SG iPhone 5s”,“platformName”:“iOS”,“platformVersion”:“11.0”,“udid”:“51d8c712258a5b0ac63516aa5be9d10014b0c270”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/menypeled/Documents/workspace/iOS_Appium/SkyGiraffe_5.12.2.app",“bundleId”:“beta.skygiraffe.skygiraffe”,“deviceName”:“SG iPhone 5s”,“platformName”:“iOS”,“platformVersion”:“11.0”,“udid”:“51d8c712258a5b0ac63516aa5be9d10014b0c270”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1508247448332 (16:37:28 GMT+0300 (IDT))
[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Creating new XCUITestDriver (v2.53.0) session
[Appium] Capabilities:
[Appium] app: ‘/Users/menypeled/Documents/workspace/iOS_Appium/SkyGiraffe_5.12.2.app’
[Appium] bundleId: ‘beta.skygiraffe.skygiraffe’
[Appium] deviceName: ‘SG iPhone 5s’
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘11.0’
[Appium] udid: ‘51d8c712258a5b0ac63516aa5be9d10014b0c270’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[BaseDriver] Session created with session id: 5ee57b3d-6f39-4ca4-b881-20ac1a78601e
[debug] [XCUITest] Xcode version set to ‘9.0.1’ (tools v9.0.1.0.1.1506734476)
[debug] [XCUITest] iOS SDK Version set to ‘11.0’
[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1508247450187 (16:37:30 GMT+0300 (IDT))
[debug] [XCUITest] Available devices: 51d8c712258a5b0ac63516aa5be9d10014b0c270, d55d2431cf18f9fac832b62e509431baf4c5a8bc
[debug] [XCUITest] Creating iDevice object with udid ‘51d8c712258a5b0ac63516aa5be9d10014b0c270’
[XCUITest] Determining device to run tests on: udid: ‘51d8c712258a5b0ac63516aa5be9d10014b0c270’, real device: true
[BaseDriver] Using local app ‘/Users/menypeled/Documents/workspace/iOS_Appium/SkyGiraffe_5.12.2.app’
[debug] [BaseDriver] Event ‘appConfigured’ logged at 1508247451356 (16:37:31 GMT+0300 (IDT))
[debug] [XCUITest] Checking whether app ‘/Users/menypeled/Documents/workspace/iOS_Appium/SkyGiraffe_5.12.2.app’ is actually present on file system
[debug] [XCUITest] App is present
[debug] [BaseDriver] Event ‘resetStarted’ logged at 1508247451359 (16:37:31 GMT+0300 (IDT))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [BaseDriver] Event ‘resetComplete’ logged at 1508247451360 (16:37:31 GMT+0300 (IDT))
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Starting iOS device log capture with: ‘idevicesyslog’
[debug] [BaseDriver] Event ‘logCaptureStarted’ logged at 1508247451484 (16:37:31 GMT+0300 (IDT))
[XCUITest] Setting up real device
[debug] [XCUITest] Installing ‘/Users/menypeled/Documents/workspace/iOS_Appium/SkyGiraffe_5.12.2.app’ on device with UUID ‘51d8c712258a5b0ac63516aa5be9d10014b0c270’…
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event ‘appInstalled’ logged at 1508247461826 (16:37:41 GMT+0300 (IDT))
[XCUITest] Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[debug] [XCUITest] Capability ‘useNewWDA’ set to false, so trying to reuse currently running WDA instance at ‘http://localhost:8100/
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] WDA is not listening at ‘http://localhost:8100/’. Rebuilding…
[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1508247462307 (16:37:42 GMT+0300 (IDT))
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[debug] [XCUITest] Killing running processes ‘xcodebuild.*51d8c712258a5b0ac63516aa5be9d10014b0c270, iproxy 8100’ for the device 51d8c712258a5b0ac63516aa5be9d10014b0c270…
[debug] [XCUITest] ‘pgrep -nif xcodebuild.*51d8c712258a5b0ac63516aa5be9d10014b0c270’ didn’t detect any matching processes. Return code: 1
[debug] [XCUITest] ‘pgrep -nif iproxy 8100’ didn’t detect any matching processes. Return code: 1
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Using Xcode 9.0.1, so fixing WDA codebase
[debug] [XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=51d8c712258a5b0ac63516aa5be9d10014b0c270 IPHONEOS_DEPLOYMENT_TARGET=11.0’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[debug] [XCUITest] Output from xcodebuild will not be logged. To see xcode logging, use ‘showXcodeLog’ desired capability
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Log file for xcodebuild test: /var/folders/mr/lbh2rfw568g5v74x7g7vgx440000gn/T/com.apple.dt.XCTest/IDETestRunSession-16138939-2B75-4081-A16B-72D3130FE207/WebDriverAgentRunner-29D50777-B8A6-4D5F-B5E0-53F0E8E5BC20/Session-WebDriverAgentRunner-2017-10-17_163802-k4UaBH.log
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{\n “value” : {\n “state” : “success”,\n “os” : {\n “name” : “iOS”,\n “version” : “11.0.1”\n },\n “ios” : {\n “simulatorVersion” : “11.0.1”,\n “ip” : “10.0.1.47”\n },\n “build” : {\n “time” : “Oct 17 2017 16:37:53”\n }\n },\n “sessionId” : “56734724-FA31-4F56-89F3-9C7FAF5098D4”,\n “status” : 0\n}”
[debug] [XCUITest] WebDriverAgent running on ip ‘10.0.1.47’
[debug] [XCUITest] WebDriverAgent successfully started after 26420ms
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1508247494025 (16:38:14 GMT+0300 (IDT))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“beta.skygiraffe.skygiraffe”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}

can you add this to your desired capabilities and try again:

automationName: 'XCUITest'

It’s 2020 February, I’m still facing the same issue. Browsed almost all the Q&A on web, but no help. Is this issue resolved ? if so how to resolve it ?

Appium Version : 1.15.1
Xcode : 11
Platform: iOS
MacOS: Mojave
Tried on multiple simulator and real iOS device.

Error Log
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body

[WD Proxy] Got an unexpected response with status 500:

In windows machine with same Appium version the things works perfectly fine, but fails with mac machine.