Error when running appium on iOS simulator

I think this issue happened when I upgraded my appium server. Downgraded it to previous version but it still happens now. The test is able to load the app but it’s not performing the appium commands like tapping on button, etc.

Appium server: 1.12.0
Xcode: 10.1
MacOS: 10.14

Logs:

[Appium] Welcome to Appium v1.12.0
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"app":"/Users/mmm/Desktop/test/amv.app","clearSystemFiles":true,"platformVersion":"12.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone XR","fullReset":true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/mmm/Desktop/test/amv.app","clearSystemFiles":true,"platformVersion":"12.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone XR","fullReset":true},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1581003559610 (23:39:19 GMT+0800 (Philippine Standard Time))
[Appium] Appium v1.12.0 creating new XCUITestDriver (v2.110.0) session
[Appium] Capabilities:
[Appium]   app: /Users/mmm/Desktop/test/amv.app
[Appium]   clearSystemFiles: true
[Appium]   platformVersion: 12.1
[Appium]   automationName: XCUITest
[Appium]   platformName: iOS
[Appium]   deviceName: iPhone XR
[Appium]   fullReset: true
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"app":"/Users/mnx/Deskto...
[BaseDriver] Session created with session id: 8f79a711-9a5a-4fe1-99eb-6f508bd56f18
[debug] [XCUITest] Current user: 'mnx'
[XCUITest] Simulator udid not provided
[XCUITest] Using desired caps to create a new simulator
[debug] [simctl] Creating simulator with name 'appiumTest-E2F7F61B-E6E4-4448-821E-844EDDCBF3AD-iPhone XR', device type id 'iPhone XR' and runtime id '12.1'
[iOSSim] Constructing iOS simulator for Xcode version 10.1 with udid '1CA006AF-5C32-40A8-9F59-BC7DB385D482'
[XCUITest] Created simulator with udid '1CA006AF-5C32-40A8-9F59-BC7DB385D482'.
[XCUITest] Determining device to run tests on: udid: '1CA006AF-5C32-40A8-9F59-BC7DB385D482', real device: false
[XCUITest] Xcode version set to '10.1' (tools v10.1.0.0.1.1539992718)
[XCUITest] iOS SDK Version set to '12.1'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1581003562405 (23:39:22 GMT+0800 (Philippine Standard Time))
[BaseDriver] Using local app '/Users/mmm/Desktop/test/amv.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1581003562409 (23:39:22 GMT+0800 (Philippine Standard Time))
[debug] [XCUITest] Checking whether app '/Users/mmm/Desktop/test/amv.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app '/Users/mmm/Desktop/test/amv.app': 'com.emvco.EMVCo-3DS20'
[debug] [BaseDriver] Event 'resetStarted' logged at 1581003562415 (23:39:22 GMT+0800 (Philippine Standard Time))
[debug] [XCUITest] Reset: fullReset is on. Cleaning simulator
[debug] [XCUITest] Killing running processes 'xcodebuild.*1CA006AF-5C32-40A8-9F59-BC7DB385D482, 1CA006AF-5C32-40A8-9F59-BC7DB385D482.*XCTRunner' for the device 1CA006AF-5C32-40A8-9F59-BC7DB385D482...
[debug] [XCUITest] 'pgrep -nif xcodebuild.*1CA006AF-5C32-40A8-9F59-BC7DB385D482' didn't detect any matching processes. Return code: 1
[debug] [XCUITest] 'pgrep -nif 1CA006AF-5C32-40A8-9F59-BC7DB385D482.*XCTRunner' didn't detect any matching processes. Return code: 1
[iOSSim] Cleaning simulator 1CA006AF-5C32-40A8-9F59-BC7DB385D482
[debug] [BaseDriver] Event 'resetComplete' logged at 1581003562972 (23:39:22 GMT+0800 (Philippine Standard Time))
[XCUITest] Continuing without capturing device logs: iOS Simulator with udid 1CA006AF-5C32-40A8-9F59-BC7DB385D482 is not running
[XCUITest] Setting up simulator
[debug] [iOS] No reason to set locale
[debug] [iOS] No iOS / app preferences to set
[debug] [iOSSim] Setting preferences of 1CA006AF-5C32-40A8-9F59-BC7DB385D482 Simulator to {"ConnectHardwareKeyboard":false}
[debug] [iOSSim] Setting common Simulator preferences to {"RotateWindowWhenSignaledByGuest":true,"ConnectHardwareKeyboard":false}
[debug] [iOSSim] Updated 1CA006AF-5C32-40A8-9F59-BC7DB385D482 Simulator preferences at '/Users/mnx/Library/Preferences/com.apple.iphonesimulator.plist' with {"DevicePreferences":{"1CA006AF-5C32-40A8-9F59-BC7DB385D482":{"ConnectHardwareKeyboard":false}},"RotateWindowWhenSignaledByGuest":true,"ConnectHardwareKeyboard":false}
[iOSSim] Booting Simulator with UDID 1CA006AF-5C32-40A8-9F59-BC7DB385D482...
[iOSSim] Starting Simulator UI with command: open -Fn /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID 1CA006AF-5C32-40A8-9F59-BC7DB385D482 -ConnectHardwareKeyboard 0
[iOSSim] Simulator with UDID 1CA006AF-5C32-40A8-9F59-BC7DB385D482 booted in 35 seconds
[debug] [BaseDriver] Event 'simStarted' logged at 1581003599472 (23:39:59 GMT+0800 (Philippine Standard Time))
[debug] [XCUITest] Starting log capture for iOS Simulator with udid '1CA006AF-5C32-40A8-9F59-BC7DB385D482', using 'xcrun simctl spawn 1CA006AF-5C32-40A8-9F59-BC7DB385D482 log stream --style compact'
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1581003601198 (23:40:01 GMT+0800 (Philippine Standard Time))
[debug] [XCUITest] Verifying application platform
[debug] [XCUITest] CFBundleSupportedPlatforms: ["iPhoneSimulator"]
[debug] [XCUITest] Cleaning installd cache to save the disk space
[debug] [XCUITest] Installing '/Users/mmm/Desktop/test/amv.app' on Simulator with UUID '1CA006AF-5C32-40A8-9F59-BC7DB385D482'...
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event 'appInstalled' logged at 1581003606811 (23:40:06 GMT+0800 (Philippine Standard Time))
[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] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[debug] [XCUITest] WDA is not listening at 'http://localhost:8100/'
[debug] [XCUITest] WDA is currently not running. There is nothing to cache
[debug] [XCUITest] Trying to start WebDriverAgent 2 times with 10000ms interval
[debug] [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1581003611580 (23:40:11 GMT+0800 (Philippine Standard Time))
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing running processes 'xcodebuild.*1CA006AF-5C32-40A8-9F59-BC7DB385D482, iproxy 8100, 1CA006AF-5C32-40A8-9F59-BC7DB385D482.*XCTRunner' for the device 1CA006AF-5C32-40A8-9F59-BC7DB385D482...
[debug] [XCUITest] 'pgrep -nif xcodebuild.*1CA006AF-5C32-40A8-9F59-BC7DB385D482' 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] 'pgrep -nif 1CA006AF-5C32-40A8-9F59-BC7DB385D482.*XCTRunner' didn't detect any matching processes. Return code: 1
[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=1CA006AF-5C32-40A8-9F59-BC7DB385D482 IPHONEOS_DEPLOYMENT_TARGET=12.1 GCC_TREAT_WARNINGS_AS_ERRORS=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 change this, use 'showXcodeLog' desired capability
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[debug] [XCUITest] Log file for xcodebuild test: /Users/mnx/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/Test-WebDriverAgentRunner-2020.02.06_23-40-20-+0800.xcresult/2_Test/Diagnostics/WebDriverAgentRunner-BC8F6822-42B2-40D1-87A3-D4B9FF0BF0FC/WebDriverAgentRunner-844D6357-8B4B-4ECD-8E36-A7F018044F6D/Session-WebDriverAgentRunner-2020-02-06_234026-2C4TWH.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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[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: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [WD Proxy] Got response with status 200: "{\n  \"value\" : {\n    \"state\" : \"success\",\n    \"os\" : {\n      \"name\" : \"iOS\",\n      \"version\" : \"12.1\",\n      \"sdkVersion\" : \"12.0\"\n    },\n    \"ios\" : {\n      \"simulatorVersion\" : \"12.1\",\n      \"ip\" : \"192.168.1.10\"\n    },\n    \"build\" : {\n      \"upgradedAt\" : \"1581002653398\",\n      \"time\" : \"Feb  6 2020 23:24:37\",\n      \"productBundleIdentifier\" : \"com.facebook.WebDriverAgentRunner\"\n    }\n  },\n  \"sessionId\" : \"99E40380-0CC2-4DDE-9603-C1981B7867B2\",\n  \"status\" : 0\n}"
[debug] [XCUITest] WebDriverAgent information:
[debug] [XCUITest] {
[debug] [XCUITest]   "state": "success",
[debug] [XCUITest]   "os": {
[debug] [XCUITest]     "name": "iOS",
[debug] [XCUITest]     "version": "12.1",
[debug] [XCUITest]     "sdkVersion": "12.0"
[debug] [XCUITest]   },
[debug] [XCUITest]   "ios": {
[debug] [XCUITest]     "simulatorVersion": "12.1",
[debug] [XCUITest]     "ip": "192.168.1.10"
[debug] [XCUITest]   },
[debug] [XCUITest]   "build": {
[debug] [XCUITest]     "upgradedAt": "1581002653398",
[debug] [XCUITest]     "time": "Feb  6 2020 23:24:37",
[debug] [XCUITest]     "productBundleIdentifier": "com.facebook.WebDriverAgentRunner"
[debug] [XCUITest]   }
[debug] [XCUITest] }
[debug] [XCUITest] WebDriverAgent successfully started after 20737ms
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1581003633770 (23:40:33 GMT+0800 (Philippine Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.emvco.EMVCo-3DS20","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [WD Proxy] Got response with status 200: {"value":{"sessionId":"73A6BDC5-3CA4-4302-97EB-AC6B2847E659","capabilities":{"device":"iphone","browserName":" ","sdkVersion":"12.1","CFBundleIdentifier":"com.apple.springboard"}},"sessionId":"73A6BDC5-3CA4-4302-97EB-AC6B2847E659","status":0}
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1581003642900 (23:40:42 GMT+0800 (Philippine Standard Time))
[debug] [XCUITest] Parsed BUILD_DIR configuration value: '/Users/mnx/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products'
[debug] [XCUITest] Got derived data root: '/Users/mnx/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy'
[debug] [BaseDriver] Event 'wdaStarted' logged at 1581003647276 (23:40:47 GMT+0800 (Philippine Standard Time))
[XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[debug] [BaseDriver] Event 'orientationSet' logged at 1581003647277 (23:40:47 GMT+0800 (Philippine Standard Time))
[Appium] New XCUITestDriver session created successfully, session 8f79a711-9a5a-4fe1-99eb-6f508bd56f18 added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1581003647282 (23:40:47 GMT+0800 (Philippine Standard Time))
[debug] [MJSONWP (8f79a711)] Cached the protocol value 'MJSONWP' for the new session 8f79a711-9a5a-4fe1-99eb-6f508bd56f18
[debug] [MJSONWP (8f79a711)] Responding to client with driver.createSession() result: {"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"app":"/Users/mmm/Desktop/test/amv.app","clearSystemFiles":true,"platformVersion":"12.1","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone XR","fullReset":true,"udid":"1CA006AF-5C32-40A8-9F59-BC7DB385D482"}
[HTTP] <-- POST /wd/hub/session 200 87778 ms - 580
[HTTP] 
[HTTP] --> POST /wd/hub/session/8f79a711-9a5a-4fe1-99eb-6f508bd56f18/timeouts
[HTTP] {"type":"implicit","ms":20000}
[debug] [MJSONWP (8f79a711)] Calling AppiumDriver.timeouts() with args: ["implicit",20000,null,null,null,"8f79a711-9a5a-4fe1-99eb-6f508bd56f18"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] MJSONWP timeout arguments: {"type":"implicit","ms":20000}}
[debug] [BaseDriver] Set implicit wait to 20000ms
[debug] [MJSONWP (8f79a711)] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/8f79a711-9a5a-4fe1-99eb-6f508bd56f18/timeouts 200 42 ms - 76
[HTTP] 
[HTTP] --> POST /wd/hub/session/8f79a711-9a5a-4fe1-99eb-6f508bd56f18/orientation
[HTTP] {"orientation":"PORTRAIT"}
[MJSONWP (8f79a711)] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command 'proxyReqRes'
[debug] [WD Proxy] Matched '/wd/hub/session/8f79a711-9a5a-4fe1-99eb-6f508bd56f18/orientation' to command name 'setOrientation'
[debug] [WD Proxy] Proxying [POST /wd/hub/session/8f79a711-9a5a-4fe1-99eb-6f508bd56f18/orientation] to [POST http://localhost:8100/session/73A6BDC5-3CA4-4302-97EB-AC6B2847E659/orientation] with body: {"orientation":"PORTRAIT"}
[debug] [WD Proxy] Got response with status 200: {"value":{},"sessionId":"73A6BDC5-3CA4-4302-97EB-AC6B2847E659","status":0}
[WD Proxy] Replacing sessionId 73A6BDC5-3CA4-4302-97EB-AC6B2847E659 with 8f79a711-9a5a-4fe1-99eb-6f508bd56f18

Even I’m facing same problem, stuck with it since 4 days. How you resolved it?