iOS App is closed while taking screenshot with Appium Desktop Application

Appium.app desktop app while taking screenshot , AUT is closed and error is displayed

Attached logs:

[debug] �[35m[XCUITest]�[39m Executing command 'getWindowSize' [debug] �[35m[WD Proxy]�[39m Proxying [GET /window/size] to [GET http://127.0.0.1:8100/session/F84C2BB1-AD84-4CE3-BD44-AECFC5DFDF71/window/size] with no body [error] �[35m[Xcode]�[39m 2021-07-19 14:02:06.528156+0530 WebDriverAgentRunner-Runner[2712:1623950] Getting the most recent active application (out of 1 total items) [error] �[35m[Xcode]�[39m [error] �[35m[Xcode]�[39m t = 5426.78s Requesting snapshot of accessibility hierarchy for app with pid 2750 [error] �[35m[Xcode]�[39m [debug] �[35m[WD Proxy]�[39m Got response with status 200: {"value":{"width":414,"height":896},"sessionId":"F84C2BB1-AD84-4CE3-BD44-AECFC5DFDF71"} [debug] �[35m[MJSONWP (656069b6)]�[39m Responding to client with driver.getWindowSize() result: {"width":414,"height":896} [info] �[35m[HTTP]�[39m �[37m<-- GET /wd/hub/session/656069b6-928e-4052-b654-542468136075/window/current/size �[39m�[32m200�[39m �[90m1052 ms - 98�[39m [info] �[35m[HTTP]�[39m �[90m�[39m [error] �[35m[Xcode]�[39m 2021-07-19 14:02:07.527763+0530 WebDriverAgentRunner-Runner[2712:1623950] Getting the most recent active application (out of 1 total items) [error] �[35m[Xcode]�[39m [info] �[35m[HTTP]�[39m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/656069b6-928e-4052-b654-542468136075/execute�[39m [info] �[35m[HTTP]�[39m �[90m{"script":"mobile:getContexts","args":[]}�[39m [debug] �[35m[MJSONWP (656069b6)]�[39m Calling AppiumDriver.execute() with args: ["mobile:getContexts",[],"656069b6-928e-4052-b654-542468136075"] [debug] �[35m[XCUITest]�[39m Executing command 'execute' [debug] �[35m[XCUITest]�[39m Getting list of available contexts [debug] �[35m[iOS]�[39m Retrieving contexts and views [debug] �[35m[XCUITest]�[39m Selecting by url: false [debug] �[35m[RemoteDebugger]�[39m Sending connection key request [debug] �[35m[RemoteDebugger]�[39m Sending '_rpc_reportIdentifier:' message (id: 8): 'setConnectionKey' [debug] �[35m[RemoteDebugger]�[39m Sending to Web Inspector took 2ms [debug] �[35m[RemoteDebugger]�[39m Selecting application [debug] �[35m[RemoteDebugger]�[39m No applications currently connected. [debug] �[35m[XCUITest]�[39m No web frames found. [debug] �[35m[XCUITest]�[39m No webviews found in 2ms [debug] �[35m[MJSONWP (656069b6)]�[39m Responding to client with driver.execute() result: [{"id":"NATIVE_APP"}] [info] �[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session/656069b6-928e-4052-b654-542468136075/execute �[39m�[32m200�[39m �[90m8 ms - 93�[39m [info] �[35m[HTTP]�[39m �[90m�[39m [info] �[35m[HTTP]�[39m �[37m-->�[39m �[37mGET�[39m �[37m/wd/hub/session/656069b6-928e-4052-b654-542468136075/source�[39m [info] �[35m[HTTP]�[39m �[90m{}�[39m [debug] �[35m[MJSONWP (656069b6)]�[39m Calling AppiumDriver.getPageSource() with args: ["656069b6-928e-4052-b654-542468136075"] [debug] �[35m[XCUITest]�[39m Executing command 'getPageSource' [debug] �[35m[WD Proxy]�[39m Matched '/source' to command name 'getPageSource' [debug] �[35m[WD Proxy]�[39m Proxying [GET /source] to [GET http://127.0.0.1:8100/session/F84C2BB1-AD84-4CE3-BD44-AECFC5DFDF71/source] with no body [error] �[35m[Xcode]�[39m 2021-07-19 14:02:07.576409+0530 WebDriverAgentRunner-Runner[2712:1623950] Getting the most recent active application (out of 1 total items) [error] �[35m[Xcode]�[39m [error] �[35m[Xcode]�[39m 2021-07-19 14:02:07.576790+0530 WebDriverAgentRunner-Runner[2712:1623950] The following attributes were requested to be included into the XML: {( [error] �[35m[Xcode]�[39m FBHeightAttribute, [error] �[35m[Xcode]�[39m FBAccessibleAttribute, [error] �[35m[Xcode]�[39m FBValueAttribute, [error] �[35m[Xcode]�[39m FBVisibleAttribute, [error] �[35m[Xcode]�[39m FBWidthAttribute, [error] �[35m[Xcode]�[39m FBEnabledAttribute, [error] �[35m[Xcode]�[39m FBTypeAttribute, [error] �[35m[Xcode]�[39m FBYAttribute, [error] �[35m[Xcode]�[39m FBLabelAttribute, [error] �[35m[Xcode]�[39m FBIndexAttribute, [error] �[35m[Xcode]�[39m FBXAttribute, [error] �[35m[Xcode]�[39m FBNameAttribute [error] �[35m[Xcode]�[39m )} [error] �[35m[Xcode]�[39m 2021-07-19 14:02:07.576898+0530 WebDriverAgentRunner-Runner[2712:1623950] Waiting up to 2s until com.carriertransicold.containerLINK is in idle state (including animations) [error] �[35m[Xcode]�[39m t = 5427.83s Wait for com.carriertransicold.containerLINK to idle [error] �[35m[Xcode]�[39m [error] �[35m[Xcode]�[39m t = 5427.83s Requesting snapshot of accessibility hierarchy for app with pid 2750 [error] �[35m[Xcode]�[39m [error] �[35m[Xcode]�[39m 2021-07-19 14:04:38.548952+0530 WebDriverAgentRunner-Runner[2712:1623950] Cannot take a snapshot with attribute(s) ( [error] �[35m[Xcode]�[39m "XC_kAXXCAttributeElementBaseType", [error] �[35m[Xcode]�[39m "XC_kAXXCAttributeHasNativeFocus", [error] �[35m[Xcode]�[39m "XC_kAXXCAttributeTruncatedValue", [error] �[35m[Xcode]�[39m "XC_kAXXCAttributeViewControllerTitle",

iOS App is closed while taking screenshot with Appium Desktop Application
 
 
Q