Hi,
App under test recently added support for iOS 11. App now builds using Xcode 9 and I’ve updated Appium to 1.7.1. When running the test against a simulator, for some reason it takes much longer to run now. From looking at the server log, it appears that POST /session takes over 5 minutes long. Here’s a portion of the server log:
[debug] [XCUITest] WebDriverAgent running on ip '192.168.29.140'
[debug] [XCUITest] WebDriverAgent successfully started after 18043ms
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1506813380923 (16:16:20 GMT-0700 (PDT))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.acorns.AcornsSTG","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"8247C4CB-20CE-4797-8644-B08B7B55436C","capabilities":{"device":"iphone","browserName":null,"sdkVersion":"10.3.1","CFBundleIdentifier":null}},"sessionId":"8247C4CB-20CE-4797-8644-B08B7B55436C","status":0}
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1506813702439 (16:21:42 GMT-0700 (PDT))
Looking more closely at the server logs, the next line is: [debug] [XCUITest] Cannot find a match for DerivedData folder path from lsof. Trying to access logs
Apparently it’s been reported here: https://github.com/appium/appium/issues/9273. I’ve tried following the solutions suggested but still have the problem. Mauricio, perhaps you or someone else can try.
Ken, I’ve never tried on a real device locally, although running the test against a real device on TestObject seemed fine.