我正在尝试使用 appium 和 python 在 Iphone 7 plus 上打开并登录 yelp 应用程序。这是我的代码
device_name = "iPhone 7 Plus"
udid = "XXXXXX"
driver = webdriver.Remote(
command_executor='http://127.0.0.1:4723/wd/hub',
desired_capabilities={
'bundleId': "com.yelp.yelpiphone",
'platformName': 'iOS',
'deviceName': device_name,
'udid': udid,
'automationName': 'XCUITest',
'platformVersion': '11.1'
}
)
但是应用程序没有打开,我在 Appium 服务器上收到以下错误
[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65".
Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md.
Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.