Appium检查器未在Mac上运行 [英] appium inspector not running on mac
问题描述
我有带有xcode 6.2和ios 8.4.1的appium版本1.4.我运行了appium doctor,对于ios平台来说一切都很好.在运行检查器时,它将引发以下错误:
I have appium version 1.4 with xcode 6.2 and ios 8.4.1 . I run appium doctor and everything is fine for ios platform. On running inspector it throws this error:
无法启动新会话,需要应用路径
Could not start new session, app path required
我也给出了应用程序路径.
I have given app path also.
推荐答案
Mac El Capitan(Ver 10.11.1),Xcode 7.0.1(7B91b),Appium 1.4.13
iPhone 5(iOS 7.0.4)-确定
i.在Xcode中,确保将构建设置"->代码签名"中的调试代码签名身份"设置为 Developer 设置配置文件.
i. In Xcode, make sure the Debug Code Signing Identity in Build Settings->Code Signing is set to Developer provisioning profile.
ii.从Xcode直接将应用构建并运行(⌘R)到实际设备.之后,停止运行.
ii. Build and run (⌘R) the app directly to the real device from Xcode. After that stop the running.
iii.生成应用(⌘B),以便它将生成.app文件.
iii. Build the app (⌘B) so it will generate the .app file.
iv.在Appium-> iOS设置中,将应用程序路径"指向位于 Debug-iphonesimulator 中的应用程序.设置强制设备,平台版本和 UDID .
iv. In Appium->iOS Settings, point the App Path to the app located in Debug-iphonesimulator. Set the Force Device, Platform Version , and UDID.
v.在Appium中,单击启动",然后单击检查器".
v. In Appium, click Launch and then Inspector.
对于装有iOS 8及更高版本的iPhone-确定
i.在您的iPhone设备上,转到设置->开发人员,启用 UI自动化.
i. In your iPhone device, Go to Settings -> Developer, Enable the UI Automation.
ii.从i到v,与iPhone 5(iOS 7.0.4)的步骤相同.
ii. Same steps as iPhone 5 (iOS 7.0.4) starting from i to v.
iPhone 6(iOS 8.4.1)-确定
iPhone 6 Plus(iOS 9.0.2)-确定
iPhone 6(iOS 9.1)-确定
iPad Mini 2(iOS 7.1.2)-确定
iPad Air(iOS 9.0.2)-确定
对于模拟器-确定
要使用模拟器进行测试,请在 Appium->开发人员设置中,选中自定义服务器标志,然后插入-native-instruments-lib
For testing by using simulator, in Appium-> Developer Settings, check Custom Server Flags and insert --native-instruments-lib.
这篇关于Appium检查器未在Mac上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!