I recently got a new iPhone7 for automated testing, and got it working with our on my macbook perfectly fine. I then moved the iPhone 7 to a mac mini (for CI) that has the same appium server version, and xcode version. I tried using AppiumDesktop with the same capabilities to no avail. I’ve exported the certs and mobileprovision setup from xcode9.2 from my laptop to the mac mini (the signing appears good), but just cannot get WebDriverAgent running on the phone correctly (also tried raw appium 1.7.2 server with npm and the java-client I had working with the phone and my laptop.
Environment:
Appium Desktop 1.4.1 (server 1.7.2)
XCode 9.2
IOS 11.2.6 (iPhone 7)
capabilities:
{
"platformName": "IOS",
"platformVersion": "11.2.6",
"deviceName": "HL's iPhone",
"noReset": true,
"app": "/Users/jenkins/Downloads/company-artifact-1.0.0b.ipa",
"automationName": "XCuiTest",
"udid": "578cf34a0da3baf526826e632faea2b4678bb486",
"showXcodeLog": true,
"showIOSLog": false,
"xcodeOrgId": "XXXXXXXXXX",
"xcodeSigningId": "iPhone Developer",
"updatedWDABundleId": "com.test.bundleId.WebDriverAgentRunner",
"useNewWDA": false
}
Lines before the error:
[Xcode] 15:09:04.029 xcodebuild[44904:635805] Uploading test configuration to app container.
[Xcode] 15:09:05.766 xcodebuild[44904:635805] Updating test process environment variables.
[Xcode] 15:09:05.767 xcodebuild[44904:635805] Updated testing environment variables {
[Xcode] "DYLD_FRAMEWORK_PATH" = "/private/var/containers/Bundle/Application/06650CDC-4ACB-4DE3-A1F7-82B49F87AB5C/WebDriverAgentRunner-Runner.app/Frameworks:/Users/jenkins/Library/Developer/Xcode/DerivedData/WebDriverAgent-hlaluljvfxayrsckuptlltxvitpl/Build/Products/Debug-iphoneos:__PLATFORMS__/iPhoneOS.platform/Developer/Library/Frameworks:/Developer/Library/PrivateFrameworks";
[Xcode] "DYLD_INSERT_LIBRARIES" = "/Developer/usr/lib/libMainThreadChecker.dylib";
[Xcode] "DYLD_LIBRARY_PATH" = "/private/var/containers/Bundle/Application/06650CDC-4ACB-4DE3-A1F7-82B49F87AB5C/WebDriverAgentRunner-Runner.app/Frameworks:/Users/jenkins/Library/Developer/Xcode/DerivedData/WebDriverAgent-hlaluljvfxayrsckuptlltxvitpl/Build/Products/Debug-iphoneos:__PLATFORMS__/iPhoneOS.platform/Developer/Library/Frameworks:/Developer/Library/PrivateFrameworks";
[Xcode] "MTC_CRASH_ON_REPORT" = 1;
[Xcode] "XCODE_DBG_XPC_EXCLUSIONS" = "com.apple.dt.xctestSymbolicator";
[Xcode] XCTestConfigurationFilePath = "/private/var/mobile/Containers/Data/Application/D6DACDD9-1ECE-40FC-BCD3-ABB2DF2A1AA4/tmp/WebDriverAgentRunner-903637F7-62CF-4D35-8320-1AE67A3C89FA.xctestconfiguration";
[Xcode] }
[Xcode] 15:09:05.994 xcodebuild[44904:635584] Adding console adaptor 34 stderr: (null) 0> for test session 903637F7-62CF-4D35-8320-1AE67A3C89FA.
[Xcode] 15:09:06.298 xcodebuild[44904:635584] Test process runnable PID is 392.
[Xcode] 15:09:06.341 xcodebuild[44904:635584] ############## DID EXECUTE #################
[Xcode] 15:09:06.342 xcodebuild[44904:635584] : parseConsoleOutputFromOriginalOutput: called, 912 bytes written out to StandardOutputAndStandardError
[Xcode] 15:09:06.343 xcodebuild[44904:635584] finished receiving data from
[Xcode] 15:09:06.343 xcodebuild[44904:635584] : _considerFlushingDelegateBlockQueue - nothing to flush
[Xcode] 15:09:06.344 xcodebuild[44904:635584] Test operation failure: Launch session expired before checking in.
[Xcode] 15:09:06.344 xcodebuild[44904:635584] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Launch session expired before checking in." UserInfo={NSLocalizedDescription=Launch session expired before checking in.}
[Xcode]
[BaseDriver] Event 'wdaStartFailed' logged at 1522091346402 (15:09:06 GMT-0400 (EDT))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
created
Mar '18
last reply
Mar '18
- 10
replies
- 1.4k
views
- 2
users
- 2
links