iOS App freezes when automation is running with latest appium version 1.16.0 while running fine manually with xcode and appium inspector

[Appium] Welcome to Appium v1.16.0
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {“desiredCapabilities”:{“app”:"/Users/sumit.kathuria/Library/Developer/Xcode/DerivedData/Gaana-fstyggspklpdrdcrbqoznpdzmxyf/Build/Products/Debug-iphonesimulator/Gaana.app",“appium-version”:“1.16”,“noReset”:true,“newCommandTimeout”:18000,“platformVersion”:“13.0”,“automationName”:“XCUITest”,“bundleId”:“com.til.gaana”,“platformName”:“iOS”,“deviceName”:“iPhone 11 Pro Max”,“nativeWebTap”:true,“autoAcceptAlerts”:true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/sumit.kathuria/Library/Developer/Xcode/DerivedData/Gaana-fstyggspklpdrdcrbqoznpdzmxyf/Build/Products/Debug-iphonesimulator/Gaana.app",“appium-version”:“1.16”,“noReset”:true,“newCommandTimeout”:18000,“platformVersion”:“13.0”,“automationName”:“XCUITest”,“bundleId”:“com.til.gaana”,“platformName”:“iOS”,“deviceName”:“iPhone 11 Pro Max”,“nativeWebTap”:true,“autoAcceptAlerts”:true},null,null]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1578931140218 (21:29:00 GMT+0530 (India Standard Time))
[Appium] Appium v1.16.0 creating new XCUITestDriver (v3.10.1) session
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {
[debug] [BaseDriver]
[debug] [BaseDriver] “appium-version”: “1.16”,
[debug] [BaseDriver] “noReset”: true,
[debug] [BaseDriver] “newCommandTimeout”: 18000,
[debug] [BaseDriver] “platformVersion”: “13.0”,
[debug] [BaseDriver] “automationName”: “XCUITest”,

[debug] [BaseDriver] “deviceName”: “iPhone 11 Pro Max”,
[debug] [BaseDriver] “nativeWebTap”: true,
[debug] [BaseDriver] “autoAcceptAlerts”: true
[debug] [BaseDriver] }
[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver] appium-version
[BaseDriver] Session created with session id: ad94d53d-a8a5-4ccc-9c12-f1477e3322cc
[debug] [XCUITest] Current user: ‘sumit.kathuria’
[XCUITest] iOS SDK Version set to ‘13.0’

[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1578931140844 (21:29:00 GMT+0530 (India Standard Time))
[BaseDr
[debug] [BaseDriver] Event ‘appConfigured’ logged at 1578931140847 (21:29:00 GMT+0530 (India Standard Time))
[debug] [XCUITest] Checking whether app ’
[debug] [XCUITest] App is present
[debug] [BaseDriver] Event ‘resetStarted’ logged at 1578931140848 (21:29:00 GMT+0530 (India Standard Time))
[debug] [XCUITest] Reset: noReset is on. Leaving simulator as is
[debug] [BaseDriver] Event ‘resetComplete’ logged at 1578931140849 (21:29:00 GMT+0530 (India Standard Time))
[
[debug] [BaseDriver] Event ‘logCaptureStarted’ logged at 1578931141135 (21:29:01 GMT+0530 (India Standard Time))
[XCUITest] Setting up simulator
[debug] [iOS] No reason to set locale
[debug] [iOS] No iOS / app preferences to set
[debug] [iOS] Setting did not need to be updated
[debug] [iOSSim] Setting preferences of 9163193E-713E-4DF7-9A5C-EE069E515F1D Simulator to {“ConnectHardwareKeyboard”:false}
[debug] [iOSSim] Setting common Simulator preferences to {“RotateWindowWhenSignaledByGuest”:true,“ConnectHardwareKeyboard”:false}
[debug] [iOSSim] UpdatedD Simulator preferences at ‘/Users/sumit.kathuria/Library/Preferences/com.apple.iphonesimulator.plist’ with {“DevicePreferences”:{"":{“ConnectHardwareKeyboard”:false}},“RotateWindowWhenSignaledByGuest”:true,“ConnectHardwareKeyboard”:false}
[debug] [iOSSim] Got Simulator UI client PID: 18419
[iOSSim] Both Simulator with UDID 9 and the UI client are currently running
[debug] [BaseDriver] Event ‘simStarted’ logged at 1578931141291 (21:29:01 GMT+0530 (India Standard Time))
[debug] [XCUITest] Verifying application platform
[debug] [XCUITest] CFBundleSupportedPlatforms: [“iPhoneSimulator”]
[debug] [XCUITest] App ‘com.til.gaana’ is already installed. No need to reinstall.
[debug] [BaseDriver] Event ‘appInstalled’ logged at 1578931141407 (21:29:01 GMT+0530 (India Standard Time))
[XCUITest] Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent’
[XCUITest] Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj’
[debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[DevCon Factory] Requesting connection for device 9163193E-713E-4DF7-9A5C-EE069E515F1D on local port 8100, device port 8100
[debug] [DevCon Factory] Cached connections count: 0
[DevCon Factory] Successfully requested the connection for 9163193E-713E-4DF7-9A5C-EE069E515F1D:8100
[debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key ‘XCUITestDriver’
[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: {
[debug] [WD Proxy] “value” : {
[debug] [WD Proxy] “message” : “WebDriverAgent is ready to accept commands”,
[debug] [WD Proxy] “state” : “success”,
[debug] [WD Proxy] “os” : {
[debug] [WD Proxy] “name” : “iOS”,
[debug] [WD Proxy] “version” : “13.0”,
[debug] [WD Proxy] “sdkVersion” : “13.0”
[debug] [WD Proxy] },
[debug] [WD Proxy] “ios” : {
[debug] [WD Proxy] “simulatorVersion” : “13.0”,
[debug] [WD Proxy] “ip” : “192.168.0.102”
[debug] [WD Proxy] },
[debug] [WD Proxy] “ready” : true,
[debug] [WD Proxy] “build” : {
[debug] [WD Proxy] “upgradedAt” : “1578467625330”,
[debug] [WD Proxy] “time” : “Jan 8 2020 12:43:55”,
[debug] [WD Proxy] “productBundleIdentifier” : “com.facebook.WebDriverAgentRunner”
[debug] [WD Proxy] }
[debug] [WD Proxy] },
[debug] [WD Proxy] “sessionId” : “2359E19F-6F41-425B-99A8-DABB99CC53F2”
[debug] [WD Proxy] }
[debug] [XCUITest] Upgrade timestamp of the currently bundled WDA: 1578467625330
[debug] [XCUITest] Upgrade timestamp of the WDA on the device: 1578467625330
[XCUITest] Will reuse previously cached WDA instance at ‘http://localhost:8100/’ with ‘com.facebook.WebDriverAgentRunner’. Set the wdaLocalPort capability to a value different from 8100 if this is an undesired behavior.
[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 1578931141507 (21:29:01 GMT+0530 (India Standard Time))
[XCUITest] Using provided WebdriverAgent at ‘http://localhost: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: {
[debug] [WD Proxy] “value” : {
[debug] [WD Proxy] “message” : “WebDriverAgent is ready to accept commands”,
[debug] [WD Proxy] “state” : “success”,
[debug] [WD Proxy] “os” : {
[debug] [WD Proxy] “name” : “iOS”,
[debug] [WD Proxy] “version” : “13.0”,
[debug] [WD Proxy] “sdkVersion” : “13.0”
[debug] [WD Proxy] },
[debug] [WD Proxy] “ios” : {
[debug] [WD Proxy] “simulatorVersion” : “13.0”,
[debug] [WD Proxy] “ip” : “192.168.0.102”
[debug] [WD Proxy] },
[debug] [WD Proxy] “ready” : true,
[debug] [WD Proxy] “build” : {
[debug] [WD Proxy] “upgradedAt” : “1578467625330”,
[debug] [WD Proxy] “time” : “Jan 8 2020 12:43:55”,
[debug] [WD Proxy] “productBundleIdentifier” : “com.facebook.WebDriverAgentRunner”
[debug] [WD Proxy] }
[debug] [WD Proxy] },
[debug] [WD Proxy] “sessionId” : “2359E19F-6F41-425B-99A8-DABB99CC53F2”
[debug] [WD Proxy] }
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1578931141514 (21:29:01 GMT+0530 (India 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: {“capabilities”:{“firstMatch”:[{“bundleId”:“com.til.gaana”,“arguments”:[],“environment”:{},“eventloopIdleDelaySec”:0,“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true,“defaultAlertAction”:“accept”}],“alwaysMatch”:{}}}

@mykola-mokhnach Please look into this