我现在已经用开发证书将 app 装到了手机上,且运行没有问题;
当我启 appium 服务时用的:
appium -U a9fff175c8746c64907612c7329bc33a95ff97e8 --app umeng.SocialDemo
log 显示:Non-default server args: {"app":"umeng.SocialDemo","udid":"a9fff175c8746c64907612c7329bc33a95ff97e8"} 不知道这个是正确的提示么
我的部分代码是:
desired_caps['deviceName'] = 'iPhone Simulator'
desired_caps['platform'] = 'Mac'
desired_caps['platformVersion'] = 'ios'
desired_caps['bundleId'] = 'umeng.SocialDemo'
desired_caps['app'] = 'umeng.SocialDemo'
desired_caps['udid'] = 'a9fff175c8746c64907612c7329bc33a95ff97e8'
self.driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)
这里的 deviceName 是不应该是 iphone 5 啊,还有就是 app 是 bundleid 还是 ipa 的位置呢
失败的 log 是:
debug: Request received with params: {"desiredCapabilities":{"udid":"a9fff175c8746c64907612c7329bc33a95ff97e8","deviceName":"iPhone Simulator","app":"umeng.SocialDemo"}}
error: Could not determine your device from Appium arguments or desired capabilities. Please make sure to specify the 'deviceName' capability
哪位大侠能帮忙看看么,谢谢啦!