Appium ios 模拟器跑 appium 报错

smeil · 2021年04月08日 · 最后由 Awesome 回复于 2021年04月14日 · 1611 次阅读

appium 之前就跑过真机,没跑过模拟器,
** TEST EXECUTE FAILED **
[XCUITest] Testing started".
[XCUITest] Quitting and uninstalling WebDriverAgent
[XCUITest] Shutting down sub-processes
[XCUITest] Removing WDA application from device
[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65
[XCUITest] xcodebuild error message:
[XCUITest]
[XCUITest] 2021-04-08 16:38:17.020 xcodebuild[6983:358839] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 "The folder “WebDriverAgentRunner_iphonesimulator14.4-x86_64.xctestrun” doesn’t exist." UserInfo={NSFilePath=/Users/caoyichen/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/WebDriverAgentRunner_iphonesimulator14.4-x86_64.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7ff0c46d0690 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
这个是报错,貌似又是证书问题,之前真机也遇到过,不过真机可以让研发在上面打包,那模拟器怎么处理,他打完包发我安装,另在确认下是证书导致的吗
我的 descapability{
"platformName": "iOS",
"platformVersion": "14.4",
"deviceName": "iPhone 8",
"app": "/Users/XXXXX/Downloads/italki.app",
"automationName": "XCUITest",
"udid": "FC761B60-0F05-433C-B8D8-3BEC94C8AEFD",
"xcodeOrgId": "CJ9GLCFHHY",
"xcodeSigningId": "iPhone Developer"
}

共收到 1 条回复 时间 点赞

是签名问题,模拟器不稳定,最好还是在真机调试

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册