appium-desktop icon indicating copy to clipboard operation
appium-desktop copied to clipboard

appium desktop inspector keeps spinning and doesnot gets loaded

Open LaxminarayanJena opened this issue 5 years ago • 9 comments

The problem

app is opening in my iphone X webdriver agent runner is also working fine but when the appium inspector keeps loading without any logs or warning so me unable to inspect elements

Environment

  • I am running Appium Desktop version .
  • I am on Mac- 10.15.2 macOS Catalina Appium GUI desktop 1.17 appium command line version 1.17 xcode version-11.4.1
Screenshot 2020-04-25 at 9 13 46 PM

output of iOS system log with showIOSLog: trueand xcodebuildlog with showXcodeLog : true?

[info] [35m[Appium][39m Welcome to Appium v1.17.0 [info] [35m[Appium][39m Non-default server args: [info] [35m[Appium][39m allowInsecure: { [info] [35m[Appium][39m } [info] [35m[Appium][39m denyInsecure: { [info] [35m[Appium][39m } [info] [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723[info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/sessions[39m [info] [35m[HTTP][39m [90m{}[39m [debug] [35m[GENERIC][39m Calling AppiumDriver.getSessions() with args: [] [debug] [35m[GENERIC][39m Responding to client with driver.getSessions() result: [] [info] [35m[HTTP][39m [37m<-- GET /wd/hub/sessions [39m[32m200[39m [90m5 ms - 40[39m [info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m [info] [35m[HTTP][39m [90m{"desiredCapabilities":{"app":"com.discovery.mobile.enterprise.tlc","deviceName":"iPhone","platformName":"iOS","platformVersion":"12.4.1","showIOSLog":true,"showXcodeLog":true,"udid":"5d50b7a22771f9af43e1dde31cb54ea4ab21794e","newCommandTimeout":0,"connectHardwareKeyboard":true}}[39m [debug] [35m[MJSONWP][39m Calling AppiumDriver.createSession() with args: [{"app":"com.discovery.mobile.enterprise.tlc","deviceName":"iPhone","platformName":"iOS","platformVersion":"12.4.1","showIOSLog":true,"showXcodeLog":true,"udid":"5d50b7a22771f9af43e1dde31cb54ea4ab21794e","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null] [debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1587835918418 (23:01:58 GMT+0530 (India Standard Time)) [warn] [35m[Appium][39m DeprecationWarning: 'automationName' capability was not provided. Future versions of Appium will require 'automationName' capability to be set for iOS sessions. [info] [35m[Appium][39m Requested iOS support with version >= 10, using 'XCUITest' driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up. [info] [35m[Appium][39m Appium v1.17.0 creating new XCUITestDriver (v3.17.0) session [debug] [35m[BaseDriver][39m Creating session with MJSONWP desired capabilities: { [debug] [35m[BaseDriver][39m "app": "com.discovery.mobile.enterprise.tlc", [debug] [35m[BaseDriver][39m "deviceName": "iPhone", [debug] [35m[BaseDriver][39m "platformName": "iOS", [debug] [35m[BaseDriver][39m "platformVersion": "12.4.1", [debug] [35m[BaseDriver][39m "showIOSLog": true, [debug] [35m[BaseDriver][39m "showXcodeLog": true, [debug] [35m[BaseDriver][39m "udid": "5d50b7a22771f9af43e1dde31cb54ea4ab21794e", [debug] [35m[BaseDriver][39m "newCommandTimeout": 0, [debug] [35m[BaseDriver][39m "connectHardwareKeyboard": true [debug] [35m[BaseDriver][39m } [info] [35m[BaseDriver][39m Session created with session id: 4ffde226-76e7-45d7-831f-f38b5949903a[debug] [35m[XCUITest][39m Current user: 'vivektiwari' [debug] [35m[XCUITest][39m Available devices: 5d50b7a22771f9af43e1dde31cb54ea4ab21794e [debug] [35m[XCUITest][39m Creating iDevice object with udid '5d50b7a22771f9af43e1dde31cb54ea4ab21794e' [info] [35m[XCUITest][39m Determining device to run tests on: udid: '5d50b7a22771f9af43e1dde31cb54ea4ab21794e', real device: true [info] [35m[XCUITest][39m Normalized platformVersion capability value '12.4.1' to '12.4' [debug] [35m[BaseDriver][39m Event 'xcodeDetailsRetrieved' logged at 1587835918891 (23:01:58 GMT+0530 (India Standard Time)) [debug] [35m[XCUITest][39m App is an iOS bundle, will attempt to run as pre-existing [debug] [35m[BaseDriver][39m Event 'appConfigured' logged at 1587835918892 (23:01:58 GMT+0530 (India Standard Time)) [debug] [35m[BaseDriver][39m Event 'resetStarted' logged at 1587835918892 (23:01:58 GMT+0530 (India Standard Time)) [debug] [35m[XCUITest][39m Reset: running ios real device reset flow [debug] [35m[BaseDriver][39m Event 'resetComplete' logged at 1587835918893 (23:01:58 GMT+0530 (India Standard Time)) [info] [35m[IOSDeviceLog][39m Apr 25 23:01:59 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_get_value: [debug] [35m[XCUITest][39m Crash reports root '/Users/vivektiwari/Library/Logs/CrashReporter/MobileDevice/Discovery’s iPhone (2)' does not exist. Got nothing to gather. [debug] [35m[BaseDriver][39m Event 'logCaptureStarted' logged at 1587835919130 (23:01:59 GMT+0530 (India Standard Time)) [info] [35m[XCUITest][39m Setting up real device [info] [35m[IOSDeviceLog][39m Apr 25 23:01:59 Discoverys-iPhone-2 trustd[103] <Notice>: cert[0]: MissingIntermediate =(leaf)[force]> 0 [info] [35m[IOSDeviceLog][39m Apr 25 23:01:59 Discoverys-iPhone-2 trustd[103] <Notice>: cert[0]: NonEmptySubject =(path)[]> 0 [info] [35m[IOSDeviceLog][39m Apr 25 23:01:59 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_start_service: [info] [35m[IOSDeviceLog][39m Apr 25 23:01:59 Discoverys-iPhone-2 lockdownd[68] <Notice>: MAEGate_GetBrickState: [info] [35m[IOSDeviceLog][39m Apr 25 23:01:59 Discoverys-iPhone-2 lockdownd[68] <Notice>: spawn_xpc_service: [info] [35m[IOSDeviceLog][39m Apr 25 23:01:59 Discoverys-iPhone-2 lockdownd[68] <Notice>: spawn_xpc_service_block_invoke: [info] [35m[IOSDeviceLog][39m Apr 25 23:01:59 Discoverys-iPhone-2 lockdownd[68] <Notice>: spawn_xpc_service_block_invoke: [info] [35m[WebDriverAgent][39m Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent' [info] [35m[WebDriverAgent][39m Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj' [debug] [35m[WebDriverAgent][39m Error: Command 'lsof -ti tcp:8100' exited with code 1 [debug] [35m[WebDriverAgent][39m at ChildProcess. (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/teen_process/lib/exec.js:113:19) [debug] [35m[WebDriverAgent][39m at ChildProcess.emit (events.js:203:13) [debug] [35m[WebDriverAgent][39m at maybeClose (internal/child_process.js:1021:16) [debug] [35m[WebDriverAgent][39m at Socket. (internal/child_process.js:430:11) [debug] [35m[WebDriverAgent][39m at Socket.emit (events.js:203:13) [debug] [35m[WebDriverAgent][39m at Pipe. (net.js:588:12) [debug] [35m[WebDriverAgent][39m No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [info] [35m[DevCon Factory][39m Requesting connection for device 5d50b7a22771f9af43e1dde31cb54ea4ab21794e on local port 8100, device port 8100 [debug] [35m[DevCon Factory][39m Cached connections count: 0 [info] [35m[DevCon Factory][39m Successfully requested the connection for 5d50b7a22771f9af43e1dde31cb54ea4ab21794e:8100[info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_get_value: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_get_value: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 trustd[103] <Notice>: cert[0]: MissingIntermediate =(leaf)[force]> 0 [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 trustd[103] <Notice>: cert[0]: NonEmptySubject =(path)[]> 0 [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_get_value: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_get_value: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: mglog: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd(libMobileGestalt.dylib)[68] <Notice>: statfs(/mnt4): No such file or directory [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_get_value: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: mglog: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd(libMobileGestalt.dylib)[68] <Notice>: statfs(/mnt4): No such file or directory [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_get_value: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_get_value: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 trustd[103] <Notice>: cert[0]: MissingIntermediate =(leaf)[force]> 0 [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 trustd[103] <Notice>: cert[0]: NonEmptySubject =(path)[]> 0 [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_get_value: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_get_value: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: set_response_error: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_get_value: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_get_value: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 trustd[103] <Notice>: cert[0]: MissingIntermediate =(leaf)[force]> 0 [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 trustd[103] <Notice>: cert[0]: NonEmptySubject =(path)[]> 0 [info] [35m[IOSDeviceLog][39m Apr 25 23:02:00 Discoverys-iPhone-2 lockdownd[68] <Notice>: handle_get_value: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 symptomsd(SymptomEvaluator)[1262] <Notice>: L2 Metrics on ifname en0: rssi: -70 (txFrames/txReTx/txFail) 0/0/0 -> (was/is) 0/0 [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: :APSNetworkMonitor decaying cost (0 - 1) = 0 for 5.111940 seconds [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: wifi is historically cheap? NO awakePercentage = 0.000000, wifiGrowAttemptDelta 114 wifiKeepAliveInterval 600.000000 [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd(CommonUtilities)[95] <Notice>: is WiFi associated? YES [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: we're allowed to piggyback - we will not associate to wifi ourselves. [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: _toggleWiFiAutoAssociateIfNecessary disabling wifi auto association highEnoughPushCost NO wifiHistoricallyOK NO serverLoadIsOK YES criticalReliability NO serverSupportsDualMode YES _dualMode 0 enableDualMode YES disableCostDrivenDualMode NO isPiggybacking YES isWoWEnabled NO [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: : Received delegate call: shouldUseDualMode is set to YES [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: resetting consecutive failures because we have at least one connection [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: : handleDualModeState isDualChannelAllowed YES [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: APSCourier adjusting connection. Connected on 1 interfaces. Current link quality: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: canUseProxy? NO deviceConfiguration NO isNearby NO [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: calling _connectStream with interface preference None [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: _connectStream has None preference and dual channel is enabled. [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: _connectStream - kicking WWAN for dual channel [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: attempting to _connectStream. currently onInterface NonCellular consecutiveFailures 0 preference WWAN shouldUseDualChannel YES. Connected on 1 interfaces. [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: _getClientIdentity: already had identity: [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd(PersistentConnection)[95] <Notice>: <PCInterfaceUsabilityMonitor: 0x157d2c9d0> WWAN: isInterfaceUsable? NO reachable YES linkQuality -2 isNetworkCaptive? NO [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd(CommonUtilities)[95] <Notice>: Found cached network: 0x157e35260 [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd(PersistentConnection)[95] <Notice>: <PCInterfaceUsabilityMonitor: 0x157f0a530> NonCellular: isInterfaceUsable? YES reachable YES linkQuality 100 isNetworkCaptive? NO [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 apsd[95] <Notice>: _connectStream - dual channel with 1 connected interfaces. isWWANUsable NO, isWiFiUsable YES. Not attempting to connect.[info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 notification_proxy(MobileSystemServices)[239] <Notice>: 0x16efcb000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error! [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 companion_proxy(IDS)[253] <Notice>: IDSQuickSwitchAcknowledgementTracker -[IDSQuickSwitchAcknowledgementTracker identifierForServiceDelegate:] (serviceDelegate: ) [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 companion_proxy(IDS)[253] <Notice>: IDSQuickSwitchAcknowledgementTracker -[IDSQuickSwitchAcknowledgementTracker stopAwaitingAcknowledgementFromServiceDelegateWithIdentifier:] (delegateIdentifier: ) [debug] [35m[WebDriverAgent][39m Parsed BUILD_DIR configuration value: '/Users/vivektiwari/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products' [debug] [35m[WebDriverAgent][39m Got derived data root: '/Users/vivektiwari/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp' [debug] [35m[XCUITest][39m Starting WebDriverAgent initialization with the synchronization key '/Users/vivektiwari/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp' [debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [info] [35m[IOSDeviceLog][39m Apr 25 23:02:01 Discoverys-iPhone-2 backboardd(CoreBrightness)[59] <Notice>: ALS: Set minimum restriction 1.200000 for E=37.000000[info] [35m[IOSDeviceLog][39m Apr 25 23:02:02 Discoverys-iPhone-2 CommCenter(libATCommandStudioDynamic.dylib)[79] <Notice>: QMI: Svc=0xe2(BSP) Ind MsgId=0xe021 Bin=[][info] [35m[IOSDeviceLog][39m Apr 25 23:02:02 Discoverys-iPhone-2 UserEventAgent(IOAccessoryManager)[24] <Notice>: ![info] [35m[IOSDeviceLog][39m Apr 25 23:02:03 Discoverys-iPhone-2 wifid[45] <Notice>: WiFi:[609528723.598188]: __WiFiDeviceManagerLQMEventCallback: null snrNumRef [info] [35m[IOSDeviceLog][39m Apr 25 23:02:03 Discoverys-iPhone-2 symptomsd(SymptomEvaluator)[1262] <Notice>: L2 Metrics on ifname en0: rssi: -70 (txFrames/txReTx/txFail) 0/0/0 -> (was/is) 0/0[info] [35m[IOSDeviceLog][39m Apr 25 23:02:04 Discoverys-iPhone-2 symptomsd(SymptomEvaluator)[1262] <Notice>: L2 Metrics on ifname en0: rssi: -69 (txFrames/txReTx/txFail) 0/0/0 -> (was/is) 0/0[info] [35m[IOSDeviceLog][39m Apr 25 23:02:04 Discoverys-iPhone-2 atc(AirTrafficDevice)[38] <Notice>: <ATLegacyMessageLink: 0x100b66810, wifi=0> ---> [Ping Request. id=9018, Session=0, params=(null)] [info] [35m[WD Proxy][39m Got response with unknown status: {"code":"ESOCKETTIMEDOUT","connect":false} [debug] [35m[WebDriverAgent][39m WDA is not listening at 'http://127.0.0.1:8100/' [debug] [35m[WebDriverAgent][39m WDA is currently not running. There is nothing to cache [debug] [35m[XCUITest][39m Trying to start WebDriverAgent 1 times with 10000ms interval [debug] [35m[XCUITest][39m These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities [debug] [35m[BaseDriver][39m Event 'wdaStartAttempted' logged at 1587835924664 (23:02:04 GMT+0530 (India Standard Time)) [info] [35m[WebDriverAgent][39m Launching WebDriverAgent on the device [info] [35m[WebDriverAgent][39m Fetching dependencies [info] [35m[WebDriverAgent][39m Dependencies up-to-date [debug] [35m[WebDriverAgent][39m Killing running processes 'xcodebuild.*5d50b7a22771f9af43e1dde31cb54ea4ab21794e' for the device 5d50b7a22771f9af43e1dde31cb54ea4ab21794e... [info] [35m[IOSDeviceLog][39m Apr 25 23:02:04 Discoverys-iPhone-2 SpringBoard[55] <Notice>: Application process state changed for com.poltutapuone.WebDriverAgentRunner.xctrunner: <SBApplicationProcessState: 0x28108d160; pid: 2620; taskState: Running; visibility: Background> [info] [35m[IOSDeviceLog][39m Apr 25 23:02:04 Discoverys-iPhone-2 SpringBoard[55] <Notice>: SBIdleTimerGlobalCoordinator - updateIdleTimerForReason:"IdleTimerReset"] [info] [35m[IOSDeviceLog][39m Apr 25 23:02:04 Discoverys-iPhone-2 SpringBoard[55] <Notice>: 0x28363ec10 reconfigured sample delay: 84 [info] [35m[IOSDeviceLog][39m Apr 25 23:02:04 Discoverys-iPhone-2 SpringBoard[55] <Notice>: 0x28363ec10 reconfigured attention timeouts:{ [info] [35m[IOSDeviceLog][39m 102 = "SBAttentionAwareIdleTimerTimeoutContext - expectation: quickWarn"; [info] [35m[IOSDeviceLog][39m 100 = "SBAttentionAwareIdleTimerTimeoutContext - expectation: warn"; [info] [35m[IOSDeviceLog][39m 120 = "SBAttentionAwareIdleTimerTimeoutContext - expectation: expiration"; [info] [35m[IOSDeviceLog][39m }, configuration generation: 4291 [info] [35m[IOSDeviceLog][39m Apr 25 23:02:04 Discoverys-iPhone-2 SpringBoard[55] <Notice>: setting configuration:<AWAttentionAwarenessConfiguration: 0x28353c230> (identifier: com.apple.springboard.GlobalBacklightIdleTimer samplingInterval: 4.00000 samplingDelay: 84.00000 attentionLostTimeouts: 102.00000, 100.00000, 120.00000 mask Button|Keyboard|Digitizer|GameController|FaceDetect|MesaTouch|GenericGesture tagIndex 4291 (tag 4291)) [info] [35m[IOSDeviceLog][39m Apr 25 23:02:04 Discoverys-iPhone-2 backboardd(AttentionAwareness)[59] <Notice>: RemoteClient.m:292 : 226647.31240: Info: reset attention lost timeout for com.apple.springboard.GlobalBacklightIdleTimer at 226647.31237 [info] [35m[IOSDeviceLog][39m Apr 25 23:02:04 Discoverys-iPhone-2 backboardd(AttentionAwareness)[59] <Notice>: RemoteClient.m:178 : 226647.31267: Info: updated config <AWRemoteClient: 0x12b061650> (identifier: com.apple.springboard.GlobalBacklightIdleTimer samplingInterval: 4.00000 samplingDelay: 84.00000 attentionL

LaxminarayanJena avatar Apr 25 '20 15:04 LaxminarayanJena

do you get any popup error in the desktop and the path of the app is not correct i guess if possible can you paste the desired capabilities here

rahul-8901 avatar May 05 '20 18:05 rahul-8901

@rahul-8901 { "platformName": "iOS", "platformVersion": "12.4.1", "deviceName": "iPhone", "app": "com.discovery.mobile.enterprise.tlc", "udid": "5d50b7a22771f9af43e1dde31cb54ea4ab21794e", "showIOSLog": true, "showXcodeLog": true, "automationName": "XCUITest" }

LaxminarayanJena avatar May 05 '20 18:05 LaxminarayanJena

"platformName": "iOS", "platformVersion": "13.3", "udid": "dccbe4da7a*******7c23591", "AUTOMATION_NAME": "XCUITest", "xcodeOrgId": "abcdefg", "xcodeSigningId": "iPhone Developer", "updatedWDABundleId": "com.team.tablets", "app": "/Users/tests/Downloads/app.ipa", "deviceName": "angel", "instrumented": true

keep the path of the application in the app and your bundle id in the updatedWDABundleId

rahul-8901 avatar May 05 '20 18:05 rahul-8901

dont have ipa files as its is installed directly from testflight

LaxminarayanJena avatar May 05 '20 18:05 LaxminarayanJena

is WDA getting installed on the device through appium desktop

rahul-8901 avatar May 05 '20 19:05 rahul-8901

@rahul-8901 yes it is working.already mentioned in issue description.please read properly

laxminarayanjena-gl avatar May 06 '20 04:05 laxminarayanjena-gl

How did it work? I am still seeing the same issue.

tanyamalhotra30 avatar May 17 '20 06:05 tanyamalhotra30

Am facing the same issue with below desired capabilities while trying to inspect on real iOS device

{
  "bundleId": "com.XXXX",
  "platformName": "iOS",
  "deviceName": "iPhone 8",
  "platformVersion": "12.0.1",
  "automationName": "XCUITest",
  "xcodeOrgId": "9XXXXXX9",
  "udid": "7aXXXXXXfb",
  "shouldWaitForQuiescence": false,
  "xcodeSigningId": "iPhone Developer"
}

Appium raw logs

[debug] [35m[WebDriverAgent][39m WebDriverAgent information:
[debug] [35m[WebDriverAgent][39m {
[debug] [35m[WebDriverAgent][39m   "message": "WebDriverAgent is ready to accept commands",
[debug] [35m[WebDriverAgent][39m   "state": "success",
[debug] [35m[WebDriverAgent][39m   "os": {
[debug] [35m[WebDriverAgent][39m     "name": "iOS",
[debug] [35m[WebDriverAgent][39m     "version": "12.0.1",
[debug] [35m[WebDriverAgent][39m     "sdkVersion": "13.0"
[debug] [35m[WebDriverAgent][39m   },
[debug] [35m[WebDriverAgent][39m   "ios": {
[debug] [35m[WebDriverAgent][39m     "simulatorVersion": "12.0.1",
[debug] [35m[WebDriverAgent][39m     "ip": "192.168.0.125"
[debug] [35m[WebDriverAgent][39m   },
[debug] [35m[WebDriverAgent][39m   "ready": true,
[debug] [35m[WebDriverAgent][39m   "build": {
[debug] [35m[WebDriverAgent][39m     "upgradedAt": "1595003729922",
[debug] [35m[WebDriverAgent][39m     "time": "Jul 18 2020 00:35:38",
[debug] [35m[WebDriverAgent][39m     "productBundleIdentifier": "com.facebook.WebDriverAgentRunner"
[debug] [35m[WebDriverAgent][39m   }
[debug] [35m[WebDriverAgent][39m }
[debug] [35m[WebDriverAgent][39m WebDriverAgent successfully started after 8349ms
[debug] [35m[BaseDriver][39m Event 'wdaSessionAttempted' logged at 1595091218179 (00:53:38 GMT+0800 (Malaysia Time))
[debug] [35m[XCUITest][39m Sending createSession command to WDA
[debug] [35m[WD Proxy][39m Matched '/session' to command name 'createSession'
[debug] [35m[WD Proxy][39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"XXX","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}

karkeng-chan-dev avatar Jul 18 '20 16:07 karkeng-chan-dev

Am facing the same issue with below desired capabilities while trying to inspect on real iOS device

{
  "bundleId": "com.XXXX",
  "platformName": "iOS",
  "deviceName": "iPhone 8",
  "platformVersion": "12.0.1",
  "automationName": "XCUITest",
  "xcodeOrgId": "9XXXXXX9",
  "udid": "7aXXXXXXfb",
  "shouldWaitForQuiescence": false,
  "xcodeSigningId": "iPhone Developer"
}

Appium raw logs

[debug] �[35m[WebDriverAgent]�[39m WebDriverAgent information:
[debug] �[35m[WebDriverAgent]�[39m {
[debug] �[35m[WebDriverAgent]�[39m   "message": "WebDriverAgent is ready to accept commands",
[debug] �[35m[WebDriverAgent]�[39m   "state": "success",
[debug] �[35m[WebDriverAgent]�[39m   "os": {
[debug] �[35m[WebDriverAgent]�[39m     "name": "iOS",
[debug] �[35m[WebDriverAgent]�[39m     "version": "12.0.1",
[debug] �[35m[WebDriverAgent]�[39m     "sdkVersion": "13.0"
[debug] �[35m[WebDriverAgent]�[39m   },
[debug] �[35m[WebDriverAgent]�[39m   "ios": {
[debug] �[35m[WebDriverAgent]�[39m     "simulatorVersion": "12.0.1",
[debug] �[35m[WebDriverAgent]�[39m     "ip": "192.168.0.125"
[debug] �[35m[WebDriverAgent]�[39m   },
[debug] �[35m[WebDriverAgent]�[39m   "ready": true,
[debug] �[35m[WebDriverAgent]�[39m   "build": {
[debug] �[35m[WebDriverAgent]�[39m     "upgradedAt": "1595003729922",
[debug] �[35m[WebDriverAgent]�[39m     "time": "Jul 18 2020 00:35:38",
[debug] �[35m[WebDriverAgent]�[39m     "productBundleIdentifier": "com.facebook.WebDriverAgentRunner"
[debug] �[35m[WebDriverAgent]�[39m   }
[debug] �[35m[WebDriverAgent]�[39m }
[debug] �[35m[WebDriverAgent]�[39m WebDriverAgent successfully started after 8349ms
[debug] �[35m[BaseDriver]�[39m Event 'wdaSessionAttempted' logged at 1595091218179 (00:53:38 GMT+0800 (Malaysia Time))
[debug] �[35m[XCUITest]�[39m Sending createSession command to WDA
[debug] �[35m[WD Proxy]�[39m Matched '/session' to command name 'createSession'
[debug] �[35m[WD Proxy]�[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"XXX","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}

Finally I managed to get the inspector working as expected via below desired capability:

{
  "bundleId": "com.XXX",
  "platformName": "iOS",
  "deviceName": "iPhone 8",
  "platformVersion": "12.0.1",
  "automationName": "XCUITest",
  "xcodeOrgId": "9XXXX9",
  "udid": "7XXXXb",
  "waitForQuiescence": false,
  "waitForQuietness": false,
  "wdaEventloopIdleDelay": 7,
  "eventLoopIdleDelaySec": 4,
  "startIWDP": true
}

karkeng-chan-dev avatar Jul 18 '20 18:07 karkeng-chan-dev