【问题标题】:Appium on real iOS devices真实 iOS 设备上的 Appium
【发布时间】:2016-02-04 22:49:24
【问题描述】:

我在 Appium 和 iPad 2 中使用以下所需功能

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("udid", "ea56e8ae8e5f5235c16d5315f4cb34d81be55917");
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("deviceName", "iPad 2");
capabilities.setCapability("platformVersion", "8.3");
capabilities.setCapability("app", "/Users/Aress-QA/Desktop/PSt-forQA.ipa");
capabilities.setCapability("platformName", "iOS");
wd = new IOSDriver(new URL("http://0.0.0.0:4723/wd/hub"),capabilities);
wd.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);

应用程序启动后立即崩溃,Appium 控制台显示以下错误,

info: [debug] [INST STDERR] 2015-11-04 14:51:55.082 instruments[9690:170378] WebKit Threading Violation - initial use of WebKit from a secondary thread.
info: [debug] [INST STDERR] 2015-11-04 14:51:55.984 instruments[9690:170400] Attempting to change event horizon while disengage
info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Permission to debug com.esct.PIt was denied. The app must be signed with a development identity (e.g. iOS Developer).

有人可以帮忙吗?

【问题讨论】:

    标签: ios xcode automation appium


    【解决方案1】:

    您的应用未使用您的 Apple Developer ID 签名。您必须在 XCode 中执行此操作。

    示例:https://discuss.appium.io/t/the-app-must-be-signed-with-a-development-identity/2653

    【讨论】:

    • 你说的“那行不通”是什么意思?我认为现在你得到了不同的错误,因为我知道这个问题的解决方案。我经历过它,它也在建议的帖子中。错误真的一样吗?
    • 是的,错误确实是一样的。我们尝试了其他方法,它奏效了。我们使用开发身份签署了应用程序,并在有效的设备中启用了 UIAutomation。非常感谢您的帮助。这个在 iOS 上的 appium 设置有点棘手。
    猜你喜欢
    • 2014-10-07
    • 1970-01-01
    • 1970-01-01
    • 2018-09-28
    • 2017-03-23
    • 1970-01-01
    • 2013-11-04
    • 2020-04-24
    • 2014-06-02
    相关资源
    最近更新 更多