Есть отличная удаленная работа для php+codeception+jenkins+allure+docker спецов. 100% remote! Присоединиться к проекту

Appium server не запускается на виртуальной машине

appium
ios
Теги: #<Tag:0x00007f7b704871a8> #<Tag:0x00007f7b70487068>

(Максим Неверный) #1

Здравствуйте!
Работаю с appium не так давно. Что имею на борту: виртуальная машина OS X 10.11 El Capita, на ней установлено приложение Appium, в настройках приложения приписан путь к .ipa, чек-бокс напротив названия устройства установлен, xCode установлен, так же замечу, что реально подключенного девайсе не имею.
При нажатии на иконку лупа, вылетает такая ошибка:
Лог такой:

Launching Appium with command: '/Applications/Appium.app/Contents/Resources/node/bin/node' appium/build/lib/main.js --address "127.0.0.1" --port "8080" --debug-log-spacing --platform-version "8.1" --platform-name "iOS" --app "/Users/appium/Downloads/Мое расписание.ipa" --show-ios-log --device-name "iPhone 6"

[Appium] Welcome to Appium v1.5.3
[Appium] Non-default server args:
[Appium]  address: '127.0.0.1'
[Appium]  port: 8080
[Appium]  debugLogSpacing: true
[Appium]  platformName: 'iOS'
[Appium]  platformVersion: '8.1'
[Appium]  deviceName: 'iPhone 6'
[Appium]  app: '/Users/appium/Downloads/Мое расписание.ipa'
[Appium]  showIOSLog: true
[Appium] Deprecated server args:
[Appium]  --platform-name => --default-capabilities '{"platformName":"iOS"}'
[Appium]  --platform-version => --default-capabilities '{"platformVersion":"8.1"}'
[Appium]  --device-name => --default-capabilities '{"deviceName":"iPhone 6"}'
[Appium]  --app => --default-capabilities '{"app":"/Users/appium/Downloads/Мое расписание.ipa"}'
[Appium]  --show-ios-log => --default-capabilities '{"showIOSLog":true}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium]  platformName: 'iOS'
[Appium]  platformVersion: '8.1'
[Appium]  deviceName: 'iPhone 6'
[Appium]  app: '/Users/appium/Downloads/Мое расписание.ipa'
[Appium]  showIOSLog: true

[Appium] Appium REST http interface listener started on 127.0.0.1:8080

[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"...

[HTTP] <-- GET /wd/hub/status 200 44 ms - 83

[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"...

[HTTP] <-- GET /wd/hub/status 200 32 ms - 83

[HTTP] --> GET /wd/hub/sessions {}
[MJSONWP] Calling AppiumDriver.getSessions() with args: []
[MJSONWP] Responding to client with driver.getSessions() result: []

[HTTP] <-- GET /wd/hub/sessions 200 5 ms - 40

[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","platformVersion":"8.1","newCommandTimeout":"7200","app":"/Users/appium/Downloads/Мое расписание.ipa","automationName":"Appium","deviceName":"iPhone 6"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","pla...

[Appium] Creating new IosDriver session
[Appium] Capabilities:
[Appium]  platformName: 'iOS'
[Appium]  platformVersion: '8.1'
[Appium]  newCommandTimeout: '7200'
[Appium]  app: '/Users/appium/Downloads/Мое расписание.ipa'
[Appium]  automationName: 'Appium'
[Appium]  deviceName: 'iPhone 6'
[Appium]  showIOSLog: true
[BaseDriver] Capability 'newCommandTimeout' changed from string ('7200') to integer (7200). This may cause unexpected behavior
[BaseDriver] Session created with session id: 955f58c4-382a-4c72-9e6d-6e36a743bab1
[debug] [iOS] Not auto-detecting udid.
[BaseDriver] Using local app '/Users/appium/Downloads/Мое расписание.ipa'
[debug] [BaseDriver] Copying local zip to tmp dir

[debug] [BaseDriver] Unzipping /var/folders/sx/79tvyq6s1qn8zmvzcth7vs7c0000gn/T/20161018-385-knaq6m/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/sx/79tvyq6s1qn8zmvzcth7vs7c0000gn/T/20161018-385-knaq6m/appium-app.zip

[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[BaseDriver] Unzipped local app to '/var/folders/sx/79tvyq6s1qn8zmvzcth7vs7c0000gn/T/20161018-385-knaq6m/Payload/Расписание.app'
[debug] [iOS] Removing any remaining instruments sockets
[debug] [iOS] Cleaned up instruments socket /var/folders/sx/79tvyq6s1qn8zmvzcth7vs7c0000gn/T/instruments_sock
[debug] [iOS] Setting Xcode version

[debug] [iOS] Xcode version set to 8.1
[debug] [iOS] Setting iOS SDK Version

[debug] [iOS] iOS SDK Version set to 10.1
[debug] [iOS] Checking whether instruments supports our device string
[debug] [Instruments] Getting list of devices instruments supports

[debug] [Instruments] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

[HTTP] <-- GET /wd/hub/status - - ms - -

[debug] [Instruments] Available devices: Apple Watch - 38mm (3.1) [EDCF0D9D-3246-4C8C-A816-A841D65AEE41] (Simulator),Apple Watch - 42mm (3.1) [D6FAFC6C-8AB1-44EE-BEDF-1F65D1AB26B9] (Simulator),iPhone 7 (10.1) + Apple Watch Series 2 - 38mm (3.1) [5E02B66F-4691-4824-84F3-D5394AB78E92] (Simulator),iPhone 7 Plus (10.1) + Apple Watch Series 2 - 42mm (3.1) [D8AF9D27-BAA8-4CC0-BE2A-B8BB57164E44] (Simulator)

[MJSONWP] Encountered internal error running command: Error: Xcode version [object Object] is not yet supported
    at handleUnsupportedXcode (lib/simulator.js:15:11)
    at getDeviceString$ (lib/simulator.js:44:3)
    at tryCatch (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
    at run (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
    at flush (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

[HTTP] <-- POST /wd/hub/session 500 1758 ms - 187

[MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"...

[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"...

[HTTP] <-- GET /wd/hub/status 200 28 ms - 83

(Sergey Korol) #2

Ошибка весьма очевидна:


(Максим Неверный) #3

Спасибо! Разобрался.Буду внимательнее читать логи :slight_smile: