Appium - Приложение не открывается в симуляторе

uiautomator
logs
ios
appium
Теги: #<Tag:0x00007fedb7abe3a0> #<Tag:0x00007fedb7abe260> #<Tag:0x00007fedb7abe0d0> #<Tag:0x00007fedb7abdf40>

(Владислава) #1

Первый раз запускаю Аппиум, симулятор появился, приложение поставилось, но при нажатии не иконку оно не открывается.

The server is stopped
Close Logs
[Appium] Welcome to Appium v1.6.4
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa",“automationName”:“xcuitest”,“deviceName”:“iPhone 6 Plus”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa",“automationName”:“xcuitest”,“deviceName”:“iPhone 6 Plus”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1493796739208 (10:32:19 GMT+0300 (MSK))
[Appium] Creating new XCUITestDriver (v2.27.2) session
[Appium] Capabilities:
[Appium] app: ‘/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa’
[Appium] automationName: ‘xcuitest’
[Appium] deviceName: ‘iPhone 6 Plus’
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘10.3’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] Session created with session id: 9d7794df-24a7-4c7b-9a0c-cdf10d354833
[XCUITest] Xcode version set to ‘8.3.1’ (tools v8.3.2.0.1.1492020469)
[XCUITest] iOS SDK Version set to ‘10.3’
[BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1493796739621 (10:32:19 GMT+0300 (MSK))
[iOSSim] Constructing iOS simulator for Xcode version 8.3.1 with udid ‘F8A48DFD-8FB6-4C45-A3D0-EC3429C0B306’
[XCUITest] Determining device to run tests on: udid: ‘F8A48DFD-8FB6-4C45-A3D0-EC3429C0B306’, real device: false
[BaseDriver] Using local app ‘/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa’
[BaseDriver] Copying local zip to tmp dir
[BaseDriver] Unzipping /var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/201743-25499-1oc733w.zn2pwopqfr/appium-app.zip
[BaseDriver] Testing zip archive: /var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/201743-25499-1oc733w.zn2pwopqfr/appium-app.zip
[BaseDriver] Unzipped local app to ‘/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/201743-25499-1oc733w.zn2pwopqfr/Payload/walletkeeper.app’
[BaseDriver] Event ‘appConfigured’ logged at 1493796742566 (10:32:22 GMT+0300 (MSK))
[XCUITest] Checking whether app ‘/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/201743-25499-1oc733w.zn2pwopqfr/Payload/walletkeeper.app’ is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app ‘/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/201743-25499-1oc733w.zn2pwopqfr/Payload/walletkeeper.app’: ‘hk.walletkeeper.app’
[XCUITest] Setting ‘connectHardwareKeyboard’ Simulator option to ‘on’
[BaseDriver] Event ‘resetStarted’ logged at 1493796742632 (10:32:22 GMT+0300 (MSK))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[BaseDriver] Event ‘resetComplete’ logged at 1493796742914 (10:32:22 GMT+0300 (MSK))
[iOSLog] Starting iOS 10.3 simulator log capture
[iOSLog] System log path: /Users/Vladislava/Library/Logs/CoreSimulator/F8A48DFD-8FB6-4C45-A3D0-EC3429C0B306/system.log
[BaseDriver] Event ‘logCaptureStarted’ logged at 1493796743229 (10:32:23 GMT+0300 (MSK))
[XCUITest] Setting up simulator
[iOS] No reason to set locale
[iOS] No iOS / app preferences to set
[XCUITest] Simulator with udid ‘F8A48DFD-8FB6-4C45-A3D0-EC3429C0B306’ not booted. Booting up now
[iOSSim] Killing all iOS Simulators
[iOSSim] Simulator is not running. Continuing…
[iOSSim] Starting simulator with command: open -Fn /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID F8A48DFD-8FB6-4C45-A3D0-EC3429C0B306
[XCUITest] Installing /var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/201743-25499-1oc733w.zn2pwopqfr/Payload/walletkeeper.app on Simulator with UUID ‘F8A48DFD-8FB6-4C45-A3D0-EC3429C0B306’…
[iOSSim] Simulator booted in 79290ms
[BaseDriver] Event ‘simStarted’ logged at 1493796823092 (10:33:43 GMT+0300 (MSK))
[XCUITest] The app has been installed successfully.
[BaseDriver] Event ‘appInstalled’ logged at 1493796829008 (10:33:49 GMT+0300 (MSK))
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1493796829011 (10:33:49 GMT+0300 (MSK))
[XCUITest] Using WDA path: ‘/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[XCUITest] Running WebDriverAgent bootstrap script to install dependencies
[XCUITest] Fetching dependencies
[XCUITest] *** Please update to the latest Carthage version: 0.22.0. You currently are on 0.20.1
[XCUITest] *** Downloading RoutingHTTPServer.framework binary at “v1.0.1”
[XCUITest] *** Skipped installing RoutingHTTPServer.framework binary due to the error:
[XCUITest] “Failed to write to /private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Build/iOS: Error Domain=NSCocoaErrorDomain Code=642 “You can’t save the file “iOS” because the volume is read only.” UserInfo={NSFilePath=/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Build/iOS, NSUnderlyingError=0x7fd9efc87fb0 {Error Domain=NSPOSIXErrorDomain Code=30 “Read-only file system”}}”
[XCUITest] *** Checking out RoutingHTTPServer at “v1.0.1”
[XCUITest] Failed to check out repository into /private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Checkouts/RoutingHTTPServer: Could not create working directory (Error Domain=NSCocoaErrorDomain Code=642 “You can’t save the file “RoutingHTTPServer” because the volume is read only.” UserInfo={NSFilePath=/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Checkouts/RoutingHTTPServer, NSUnderlyingError=0x7fd9efd3bfb0 {Error Domain=NSPOSIXErrorDomain Code=30 “Read-only file system”}})
[BaseDriver] Event ‘wdaStartFailed’ logged at 1493796830795 (10:33:50 GMT+0300 (MSK))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘Scripts/bootstrap.sh -d’ exited with code 1
[XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Removing WDA application from device
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1493796841123 (10:34:01 GMT+0300 (MSK))
[XCUITest] Using WDA path: ‘/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[XCUITest] Running WebDriverAgent bootstrap script to install dependencies
[XCUITest] Fetching dependencies
[XCUITest] *** Please update to the latest Carthage version: 0.22.0. You currently are on 0.20.1
[XCUITest] *** Downloading RoutingHTTPServer.framework binary at “v1.0.1”
[XCUITest] *** Skipped installing RoutingHTTPServer.framework binary due to the error:
[XCUITest] “Failed to write to /private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Build/iOS: Error Domain=NSCocoaErrorDomain Code=642 “You can’t save the file “iOS” because the volume is read only.” UserInfo={NSFilePath=/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Build/iOS, NSUnderlyingError=0x7fb601d76760 {Error Domain=NSPOSIXErrorDomain Code=30 “Read-only file system”}}”
[XCUITest] *** Checking out RoutingHTTPServer at “v1.0.1”
[XCUITest] Failed to check out repository into /private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Checkouts/RoutingHTTPServer: Could not create working directory (Error Domain=NSCocoaErrorDomain Code=642 “You can’t save the file “RoutingHTTPServer” because the volume is read only.” UserInfo={NSFilePath=/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Checkouts/RoutingHTTPServer, NSUnderlyingError=0x7fb601f521b0 {Error Domain=NSPOSIXErrorDomain Code=30 “Read-only file system”}})
[BaseDriver] Event ‘wdaStartFailed’ logged at 1493796842865 (10:34:02 GMT+0300 (MSK))
[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘Scripts/bootstrap.sh -d’ exited with code 1
[XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Removing WDA application from device
[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘Scripts/bootstrap.sh -d’ exited with code 1
at XCUITestDriver.quitAndUninstall$ (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:374:15)
at tryCatch (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘Scripts/bootstrap.sh -d’ exited with code 1
at XCUITestDriver.quitAndUninstall$ (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:374:15)
at tryCatch (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘Scripts/bootstrap.sh -d’ exited with code 1
at XCUITestDriver.quitAndUninstall$ (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:374:15)
at tryCatch (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[HTTP] <-- POST /wd/hub/session 500 113958 ms - 252
Appium server stopped successfully


(Yaroslav Pernerovskyy) #2

На какую еще иконку? Приложение должно само открыться, если все правильно сделать.
У вас есть лог файл, в котором написано достаточно много информации.

"Failed to write to /private/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/AppTranslocation/683C9A19-5AC1-4263-942D-22488E819DBA/d/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Build/iOS: Error Domain=NSCocoaErrorDomain Code=642 “You can’t save the file “iOS” because the volume is read only.”

и

Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘Scripts/bootstrap.sh -d’ exited with code 1