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) - 好的
我.在 Xcode 中,确保 Build Settings->Code Signing 中的 Debug Code Signing Identity 设置为 Developer 配置文件.
i. In Xcode, make sure the Debug Code Signing Identity in Build Settings->Code Signing is set to Developer provisioning profile.
二.从 Xcode 直接在真实设备上构建和运行 (⌘R) 应用程序.之后停止运行.
ii. Build and run (⌘R) the app directly to the real device from Xcode. After that stop the running.
三.构建应用程序 (⌘B),以便生成 .app 文件.
iii. Build the app (⌘B) so it will generate the .app file.
四.在 Appium->iOS Settings 中,将 App Path 指向位于 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 中,点击 Launch,然后点击 Inspector.
v. In Appium, click Launch and then Inspector.
对于装有 iOS 8 及更高版本的 iPhone - 可以
我.在您的 iPhone 设备中,转到设置 -> 开发人员,启用UI 自动化.
i. In your iPhone device, Go to Settings -> Developer, Enable the UI Automation.
二.与 iPhone 5 (iOS 7.0.4) 从 i 到 v 的步骤相同.
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-> Developer Settings,勾选Custom Server Flags并插入--native-instruments-lib.
For testing by using simulator, in Appium-> Developer Settings, check Custom Server Flags and insert --native-instruments-lib.
这篇关于appium 检查器不在 Mac 上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!