Appium:尝试在IOS设备上安装应用程序时出错

时间:2020-01-22 12:55:13

标签: java ios xcode appium appium-ios

XCode:11.3

Appium 1.15

IOS设备:12.4.4

我试图在ios真实设备上运行,当appium尝试在设备上安装应用程序时,出现此错误:

[XCUITest] Error was thrown during the installation process
[XCUITest] Error: Unexpected data: {"Error":"ApplicationVerificationFailed","ErrorDetail":-1,"ErrorDescription":"**Failed to verify code signature of** /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.1LHDV5/extracted/ClickMobile.app : 0xe8008015 (**A valid provisioning profile for this executable was not found**.)"}
[XCUITest]     at InstallationProxyService._isFinished (/usr/local/lib/node_modules/appium/node_modules/appium-ios-device/lib/installation-proxy/index.js:132:13)
[XCUITest]     at InstallationProxyService._isFinished [as _waitMessageCompletion] (/usr/local/lib/node_modules/appium/node_modules/appium-ios-device/lib/installation-proxy/index.js:124:16)
[XCUITest] Error: Could not install app: 'Unexpected data: {"Error":"ApplicationVerificationFailed","ErrorDetail":-1,"ErrorDescription":"Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.1LHDV5/extracted/ClickMobile.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)"}'
[XCUITest]     at IOSDeploy.install (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:41:13)
[DevCon Factory] Releasing connections for d79ae1e8deb1bd977fbe807523a2cb9250948278 device on any port number
[DevCon Factory] No cached connections have been found
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1579697247615 (14:47:27 GMT+0200 (Israel Standard Time))
[debug] [W3C] Encountered internal error running command: Error: Could not install app: 'Unexpected data: {"Error":"ApplicationVerificationFailed","ErrorDetail":-1,"ErrorDescription":"Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.1LHDV5/extracted/ClickMobile.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)"}'
[debug] [W3C]     at IOSDeploy.install (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:41:13)
[HTTP] <-- POST /wd/hub/session 500 70594 ms - 1205

在Xcode中,我将Signin团队设置为我们的开发团队,并且Provisioning配置文件是Xcode托管配置文件。 在Xcode中编译WebDriverAgent项目时,仅在尝试启动appium驱动程序时一切都看起来不错,但有错误。

1 个答案:

答案 0 :(得分:0)

首先重置设备,然后在Xcode中运行WebDriverAgentRunner。它可能会起作用。