Appium version: 1.6.3
Device: iPhone 6
Device OS version: 10.2
Xcode version: 8.2.1
I realize that several posts related to xcodebuild exited with code ‘65’ have been made, but I’ve tried almost everything I’ve read in the forums and I still can’t run tests on my iOS device.
When I attempt to run a test on a real device, the log shows two distinct failures:
First failure:
Testing failed:
No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "GVJ6SAHW84" with a private key was found.
** TEST FAILED **
Second set of failures:
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Error: xcodebuild failed with code 65
...
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
A gist of my Appium log can be found here:
My desired capabilities are as follows:
capabilities.setCapability(CapabilityType.PLATFORM, "Mac");
capabilities.setCapability("nativeWebTap", true);
capabilities.setCapability("platformName", ConfigMXPios.PLATFORM_NAME);
capabilities.setCapability("platformVersion", ConfigMXPios.IOS_VERSION);
capabilities.setCapability("device", ConfigMXPios.DEVICE);
capabilities.setCapability("deviceName", ConfigMXPios.DEVICE_NAME);
capabilities.setCapability("sendKeyStrategy", "setValue");
capabilities.setCapability("xcodeConfigFile", "/Users/cmichalowski/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig");
capabilities.setCapability("realDeviceLogger", "/Users//cmichalowski/node_modules/deviceconsole/deviceconsole");
capabilities.setCapability("keychainPath", "/Users//cmichalowski/Library/Keychains/CindyKeychain.keychain");
capabilities.setCapability("keychainPassword", "myPassword");
The following is a list of things that I have tried while trying to resolve this issue, as well as some notes about my environment setup:
- I exported the private key using the following commands as outlined in the documentation for appium-xcuitest-driver (https://www.npmjs.com/package/appium-xcuitest-driver - see Real Device Security Settings section):
security create-keychain -p [keychain_password] MyKeychain.keychain security import MyPrivateKey.p12 -t agg -k MyKeychain.keychain -P [p12_Password] -A
-
I verified that all applications have access to the .p12 file that I’m pointing to (Keychain Access -> Info -> Access Control)
-
The keychain that I’m pointing to is unlocked
-
Config.xcconfig contains the following:
DEVELOPMENT_TEAM = XXXXXXXXXX // valid development team id CODE_SIGN_IDENTITY = iPhone Developer
If I think of anything else to include in the list of things that I’ve tried, I’ll add them. The iOS developer and I worked on this exhaustively and we’re stumped. Any assistance would be greatly appreciated.
Edit: I tried passing an incorrect password just to see if it’s detecting the keychain / certificate at all. The test does terminate due to an incorrect password, so I know it’s finding the keychain and getting at least as far as authentication.