简体   繁体   English

在真实iOS设备上的Appium

[英]Appium on real iOS devices

I am using following desired capabilities with Appium and iPad 2 我正在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);

The application is launched and it crashes moments later, Appium console shows following error, 该应用程序启动,稍后崩溃,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).

Can anyone please help? 谁能帮忙吗?

Your app is not signed by your Apple Developer ID. 您的应用未使用Apple Developer ID签名。 You must do that in the XCode. 您必须在XCode中执行此操作。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM