appium 启动ios,报错 No "iOS Development" signing certificate matching team ID "xxxxx" with a private key was found

An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message: 2021-04-07 20:00:17.852 xcodebuild[30856:784580] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 "The folder “WebDriverAgentRunner_iphoneos14.4-arm64.xctestrun” doesn’t exist." UserInfo={NSFilePath=/Users/dcc/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/WebDriverAgentRunner_iphoneos14.4-arm64.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7f8eb9c8ea20 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} ** TEST BUILD FAILED ** 2021-04-07 20:00:17.865 xcodebuild[30856:784580] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /Users/dcc/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.04.07_20-00-17-+0800.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-A0171733-57F6-4921-A7DA-23D237E58C5A/WebDriverAgentRunner-EE3EBFAC-E68E-497A-A489-0493176A535F/Session-WebDriverAgentRunner-2021-04-07_200017-t0DCYn.log 2021-04-07 20:00:17.866 xcodebuild[30856:784514] [MT] IDETestOperationsObserverDebug: (31E5AC29-5A43-421A-94A6-DCB69854CA18) Beginning test session WebDriverAgentRunner-31E5AC29-5A43-421A-94A6-DCB69854CA18 at 2021-04-07 20:00:17.866 with Xcode 12D4e on target 📱<DVTiOSDevice (0x7f8eba4f2070), 杜崇崇的iPhone, iPhone, 14.3 (18C66), 00008101-00194C9E3C80001E> { deviceSerialNumber: F18F4NHH0DYQ identifier: 00008101-00194C9E3C80001E deviceClass: iPhone deviceName: 杜崇崇的iPhone deviceIdentifier: 00008101-00194C9E3C80001E productVersion: 14.3 buildVersion: 18C66 deviceSoftwareVersion: 14.3 (18C66) deviceArchitecture: arm64e deviceTotalCapacity: 120620744704 deviceAvailableCapacity: 80285327360 deviceIsTransient: NO ignored: NO deviceIsBusy: NO deviceIsPaired: YES deviceIsActivated: YES deviceActivationState: Activated isPasscodeLocked: NO deviceType: <DVTDeviceType:0x7f8eb20d0660 Xcode.DeviceType.iPhone> supportedDeviceFamilies: ( 1 ) applications: (null) provisioningProfiles: (null) hasInternalSupport: NO hasWritableSystem: NO isSupportedOS: YES bootArgs: (null) nextBootArgs: (null) connected: YES isWirelessEnabled: NO connectionType: direct hostname: (null) bonjourServiceName: 54:09:10:7e:ee:86@fe80::5609:10ff:fe7e:ee86._apple-mobdev2._tcp.local. activeProxiedDevice: (null) } (14.3 (18C66)) 2021-04-07 20:00:17.958 xcodebuild[30856:784514] [MT] IDETestOperationsObserverDebug: (31E5AC29-5A43-421A-94A6-DCB69854CA18) Finished requesting crash reports. Continuing with testing. *** If you believe this error represents a bug, please attach the result bundle at /Users/dcc/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.04.07_20-00-17-+0800.xcresult 2021-04-07 20:00:17.970 xcodebuild[30856:784514] [MT] IDETestOperationsObserverDebug: 0.111 elapsed -- Testing started completed. 2021-04-07 20:00:17.970 xcodebuild[30856:784514] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start 2021-04-07 20:00:17.970 xcodebuild[30856:784514] [MT] IDETestOperationsObserverDebug: 0.111 sec, +0.111 sec -- end Test session results, code coverage, and logs: /Users/dcc/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.04.07_20-00-17-+0800.xcresult Testing failed: No profiles for 'com.julive.WebDriverAgentRunner.dcc.xctrunner' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.julive.WebDriverAgentRunner.dcc.xctrunner'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "8xxxxx" with a private key was found. WebDriverAgentRunner: WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/dcc/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.04.07_20-00-17-+0800.xcresult. (Underlying Error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying Error: The operation couldn’t be completed. No such file or directory))) ** TEST EXECUTE FAILED ** Testing started. 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.

 当初看到这串报错很头疼,也研究了很久,起初没细看报错内容,后来再看到其他的appium环境安装视频找到了答案。

原因:teamID不对,对应是appium启动配置中的orgID,这个字段对应的teamID,之前拿的是账号ID,正常情况下,这个字段用的应该是组织者ID。其实官方已经说了,只是我们没注意看而已

 

 

 

 
 
posted @ 2021-04-09 14:17  绝世老中医  阅读(2087)  评论(0编辑  收藏  举报