Использование Appium Inspector на iOS показывает ошибку: ошибка xcodebuild с кодом 70IOS

Программируем под IOS
Ответить
Anonymous
 Использование Appium Inspector на iOS показывает ошибку: ошибка xcodebuild с кодом 70

Сообщение Anonymous »

Я пытаюсь подключить свое настоящее устройство к инспектору Appium, возможности указаны ниже:

Код: Выделить всё

{
"platformName": "iOS",
"appium:automationName": "XCUITest",
"appium:deviceName": "iPadmini",
"appium:udid": "00008110-XXXXXXXXXXX",
"appium:xcodeOrgId": "XXXXXXXXXX",
"appium:xcodeSigningId": "iPhone Developer",
"appium:platformVersion": "18.5",
"appium:app": "/Users/path/TestApp.ipa",
"appium:useNewWDA": true,
"appium:showXcodeLog": true
}
но при создании сеанса в инспекторе Appium возникает ошибка:

Код: Выделить всё

Failed to create session. An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent. Original error: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider checking the WebDriverAgent configuration guide for real iOS devices at https://appium.github.io/appium-xcuitest-driver/latest/preparation/real-device-config/.. Make sure you follow the tutorial at https://appium.github.io/appium-xcuitest-driver/latest/preparation/real-device-config/
ошибка на терминале Appium:

Код: Выделить всё

[f8334372][XCUITestDriver@f87b] connect ECONNREFUSED 127.0.0.1:8100
[f8334372][XCUITestDriver@f87b] Matched '/status' to command name 'getStatus'
[f8334372][XCUITestDriver@f87b] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f8334372][XCUITestDriver@f87b] connect ECONNREFUSED 127.0.0.1:8100
[f8334372][XCUITestDriver@f87b] Error: Unable to connect to running WebDriverAgent: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100
at /Users/user/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/xcodebuild.js:436:17
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at wrapped (/Users/user/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13)
at retry (/Users/user/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13)
at retryInterval (/Users/user/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10)
at XcodeBuild.waitForStart (/Users/user/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/xcodebuild.js:420:7)
at /Users/user/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/xcodebuild.js:398:74
[f8334372][XCUITestDriver@f87b] Unable to start WebDriverAgent: Error: We were not able to retrieve the /status response from the WebDriverAgent server after 60000ms timeout.Try to increase the value of 'appium:wdaLaunchTimeout' capability as a possible workaround.
Я пытался выполнить следующие шаги, но все равно не получилось:
  • При успешной сборке из Xcode создается приложение WebDriverAgentRunner, но когда я собираю его с реального устройства, приложение WDAR исчезает. Однако приложение, которое я хочу протестировать, установлено успешно и его можно открыть.
  • Проверьте версии каждого инструмента:
    Xcode v16.4,
    Appium v2.18.0,
    Node v22.16.0,
    IPadmini6 v18.5
Я застрял на этом целый день, я просмотрел много ресурсов, но так и не смог решить. Я не уверен, что еще попробовать... есть ли помощь? Спасибо.

Подробнее здесь: https://stackoverflow.com/questions/796 ... th-code-70
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «IOS»