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

标签 java ios xcode appium appium-ios

X 代码: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 中,我将登录团队设置为我的开发团队,并且配置配置文件是 Xcode 管理的配置文件。 在 Xcode 中编译 WebDriverAgent 项目时,一切看起来都很好,只是在尝试初始化 appium 驱动程序时出现错误。

最佳答案

首先重置您的设备并在 Xcode 中运行 WebDriverAgentRunner。它可能会起作用。

关于java - Appium:尝试在 IOS 设备上安装应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59860252/

相关文章:

ios - Storyboard - 如何在没有动画和显示屏幕的情况下自动执行转场

iPhone sdk如何在UITableView中添加带有第一个和最后一个数组计数的UIButton?

c++ - Xcode 中 DEBUG 标识符的编译错误

iphone - 在 cocos2D 中安排具有多个参数的事件

java - 用于编码的不可映射字符

java - Jboss EAP 7.0.0 - java.lang.ClassNotFoundException : org. jboss.naming.remote.client.InitialContextFactory

java - Android 8.0.0 TV 模拟器中没有日志

ios - 如何使用callkit 框架在iOS 原生ui 调用中显示来电图像?

iphone - 我正在制作一个应用程序,涉及将数据保存到文本字段并将其加载回来。它可以在模拟器中运行,但不能在我的实际 iPhone 上运行。为什么这样?

java - 套接字连接无法通过可执行 jar 工作