MAC启动IOS真机报错。启动模拟器正常
来源:9-2 【补充】 Appium_ios代码中启动慕课网

慕丝6735754
2019-05-10
报错详细信息desired_caps is:
{u’deviceName’: u’1’, ‘unicodeKeyboard’: True, u’udid’: u’d2c791dba0d50c66eb336af1c8503d5082dc2383’, ‘autoAcceptAlerts’: True, u’automationName’: u’XCUITest’, ‘autoDismissAlerts’: True, ‘recreateChromeDriverSessions’: True, ‘resetKeyboard’: True, u’platformVersion’: u’10.3.3’, u’platformName’: u’iOS’, ‘app’: ‘/Users/pengrr/GitLab/tuyaAppium/app/feit.ipa’, u’bundleId’: ‘com.feit.smart.Hoc’}
[XCUITest] Error: Could not install app: ‘Command ‘ios-deploy --id d2c791dba0d50c66eb336af1c8503d5082dc2383 --bundle /var/folders/yy/h_yhw5kj2kzf6plffxs1fqnw0000gn/T/2019410-1795-v3ymla.11mn/Payload/feit.app’ exited with code 253’
[XCUITest] at IOSDeploy.install (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:40:13)
Process Process-1:
Traceback (most recent call last):
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py”, line 258, in _bootstrap
self.run()
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py”, line 114, in run
self._target(*self._args, **self._kwargs)
File “run_automation.py”, line 90, in run_test_case
driver = prepare_data(platform, port, line, page)
File “/Users/pengrr/GitLab/tuyaAppium/utils_parser/sys_fun.py”, line 409, in prepare_data
driver = connect_server_port(platform_config_path, platform, port)
File “/Users/pengrr/GitLab/tuyaAppium/utils_parser/sys_fun.py”, line 87, in connect_server_port
driver = webdriver.Remote(server_url, desired_caps)
File “/Library/Python/2.7/site-packages/appium/webdriver/webdriver.py”, line 129, in init
proxy
File “/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py”, line 157, in init
self.start_session(capabilities, browser_profile)
File “/Library/Python/2.7/site-packages/appium/webdriver/webdriver.py”, line 204, in start_session
response = self.execute(RemoteCommand.NEW_SESSION, parameters)
File “/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py”, line 321, in execute
self.error_handler.check_response(response)
File “/Library/Python/2.7/site-packages/selenium/webdriver/remote/errorhandler.py”, line 242, in check_response
raise exception_class(message, screen, stacktrace)
WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not install app: ‘Command ‘ios-deploy --id d2c791dba0d50c66eb336af1c8503d5082dc2383 --bundle /var/folders/yy/h_yhw5kj2kzf6plffxs1fqnw0000gn/T/2019410-1795-v3ymla.11mn/Payload/feit.app’ exited with code 253’
1回答
-
Mushishi
2019-05-11
安装真机不能用.app得包。需要。ipa的包。
00
相似问题