2014-09-23 32 views
1

Appium:RIPT拋出未捕獲的JavaScript錯誤:錯誤獲取下一個命令,關閉

,當我嘗試推出與Appium 1.2.2版本的控制檯我得到下面的錯誤。

設備:iOS版7.1.2

錯誤:

信息:[調試] [INST] 2014年9月23日十五時12分32秒+0000錯誤:腳本拋出未捕獲的JavaScript錯誤:錯誤獲取下一個命令,關閉:-(在196行命令.js

info:[debug] [INST] 2014-09-23 15:12:32 +0000已停止:腳本被用戶停止

Appium版本:1.2.2

完整日誌:

error: iOS log capture failed: spawn ENOENT 

info: [debug] Creating instruments 
info: [debug] Preparing uiauto bootstrap 
info: [debug] Dynamic bootstrap dir: 
info: [debug] Dynamic env: 
info: [debug] Dynamic bootstrap code: 
info: [debug] Dynamic bootstrap path: 
info: [debug] Reusing dynamic bootstrap: 
info: [debug] Not setting iOS and app preferences since we're on a real device 
info: [debug] Starting iOS device log capture via deviceconsole 
info: [debug] Cleaning up appium session 
info: [debug] Error: spawn ENOENT 
at errnoException (child_process.js:1001:11) 
at Process.ChildProcess._handle.onexit (child_process.js:792:34) 
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: spawn ENOENT)","code":"ENOENT","errno":"ENOENT","syscall":"spawn","origValue":"spawn ENOENT"},"sessionId":null} 
info: <-- POST /wd/hub/session 500 272.799 ms - 197 
info: [debug] Not setting device type since we're connected to a device 
info: [debug] Creating iDevice object with udid 0058679bc8d12f8a56243d8de88b0d7e14dc09c0 
info: [debug] Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller 
info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 0058679bc8d12f8a56243d8de88b0d7e14dc09c0 --bundle com.sg.application.TestApp2 

error: Failed to start an Appium session, err was: Error: spawn ENOENT 

info: [debug] App is installed. 

info: [debug] fullReset not requested. No need to install. 
info: [debug] Starting command proxy. 

info: [debug] Instruments socket server started at /tmp/instruments_sock 
info: [debug] Starting instruments 
info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments 
info: Launching instruments 
info: [debug] Attempting to run app on real device with UDID 0058679bc8d12f8a56243d8de88b0d7e14dc09c0 
info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 0058679bc8d12f8a56243d8de88b0d7e14dc09c0 com.sg.application.TestApp2 -e UIASCRIPT /Users/rsangili/Library/Application Support/appium/bootstrap/bootstrap-3fd3829137e4c5d0.js -e UIARESULTSPATH /tmp/appium-instruments 
info: [debug] And extra without-delay env: {} 
info: [debug] And launch timeouts (in ms): {"global":90000} 

info: [debug] [INST STDERR] 2014-09-23 10:11:48.859 instruments[1619:507] Connection to the remote device lost while launching target. Aborting... 

info: [debug] [INST STDERR] Instruments Trace Error : Error Starting Recording 

info: [debug] [INSTSERVER] Instruments exited with code 253 

info: [debug] Killall instruments 

info: [debug] Instruments crashed on startup 
info: [debug] Attempting to retry launching instruments, this is retry #1 
info: [debug] Killall iPhoneSimulator 

info: [debug] [INSTSERVER] Instruments exited with code null 

info: [debug] Cleaning up after instruments exit 
info: [debug] Instruments exited unexpectedly 
warn: Setting initial orientation did not work! 
info: [debug] Shutting down command proxy and ignoring any errors 
info: [debug] Closing socket server. 
info: [debug] Stopping iOS log capture 
info: [debug] Killing the simulator process 
info: [debug] Instruments socket server was closed 

error: Unhandled error: TypeError: undefined is not a function 
at Server. (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/lib/command-proxy.js:198:9) 
at Server.g (events.js:180:16) 
at Server.emit (events.js:117:20) 
at net.js:1276:10 
at process._tickDomainCallback (node.js:463:13) context: [POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","platformVersion":"7.1","newCommandTimeout":"999999","automationName":"Appium","deviceName":"iPhone Retina (4-inch)"}}] 

info: [debug] [INSTSERVER] Instruments exited with code null 
info: [debug] Cleaning up after instruments exit 
info: [debug] Instruments exited unexpectedly 
info: [debug] Shutting down command proxy and ignoring any errors 
info: [debug] Destroying instruments client socket. 
info: [debug] Closing socket server. 
info: [debug] Stopping iOS log capture 
info: [debug] Killing the simulator process 
info: [debug] Instruments socket server was closed 
info: [debug] Killing any other simulator daemons 
info: [debug] Killing any other simulator daemons 

error: Unhandled error: TypeError: undefined is not a function 
at Server. (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/lib/command-proxy.js:198:9) 
at Server.g (events.js:180:16) 
at Server.emit (events.js:117:20) 
at net.js:1276:10 
at process._tickDomainCallback (node.js:463:13) context: [POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","platformVersion":"7.1","newCommandTimeout":"999999","automationName":"Appium","deviceName":"iPhone Retina (4-inch)"}}] 

info: [debug] Cleaning app state. 

info: [debug] Cleaning app state. 

info: [debug] Deleted /Users/rsangili/Library/Application Support/iPhone Simulator/7.1/Applications 

info: [debug] Deleted /Users/rsangili/Library/Application Support/iPhone Simulator/7.1/Library/TCC 

info: [debug] Deleted /Users/rsangili/Library/Application Support/iPhone Simulator/7.1/Library/Caches/locationd 

info: [debug] Deleted /Users/rsangili/Library/Application Support/iPhone Simulator/7.1/Media 
info: [debug] Deleted /Users/rsangili/Library/Application Support/iPhone Simulator/7.1/Library/Keychains 
info: [debug] Cleaning up appium session 
info: [debug] Deleted /Users/rsangili/Library/Application Support/iPhone Simulator/7.1/Applications 
info: [debug] Cleaning up appium session 

info: Launching instruments 

info: [debug] Attempting to run app on real device with UDID 0058679bc8d12f8a56243d8de88b0d7e14dc09c0 

info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 0058679bc8d12f8a56243d8de88b0d7e14dc09c0 com.sg.application.TestApp2 -e UIASCRIPT /Users/rsangili/Library/Application Support/appium/bootstrap/bootstrap-3fd3829137e4c5d0.js -e UIARESULTSPATH /tmp/appium-instruments 
info: [debug] And extra without-delay env: {} 
info: [debug] And launch timeouts (in ms): {"global":90000} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: <-- GET /wd/hub/status 200 2.619 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: <-- GET /wd/hub/status 200 28.591 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: [debug] [INST] 2014-09-23 15:12:03 +0000 Error: Script threw an uncaught JavaScript error: Error getting next command, shutting down :-(on line 196 of commands.js 

info: [debug] [INST] 2014-09-23 15:12:03 +0000 Stopped: Script was stopped by the user 

info: [debug] [INST] Instruments Trace Complete (Duration : 8.119442s; Output : /tmp/appium-instruments/instrumentscli0.trace) 

info: [debug] [INSTSERVER] Instruments exited with code 0 

info: [debug] Killall instruments 

info: [debug] Instruments crashed on startup 
info: [debug] Attempting to retry launching instruments, this is retry #2 
info: [debug] Killall iPhoneSimulator 

info: Launching instruments 

info: [debug] Attempting to run app on real device with UDID 0058679bc8d12f8a56243d8de88b0d7e14dc09c0 

info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 0058679bc8d12f8a56243d8de88b0d7e14dc09c0 com.sg.application.TestApp2 -e UIASCRIPT /Users/rsangili/Library/Application Support/appium/bootstrap/bootstrap-3fd3829137e4c5d0.js -e UIARESULTSPATH /tmp/appium-instruments 
info: [debug] And extra without-delay env: {} 
info: [debug] And launch timeouts (in ms): {"global":90000} 

info: [debug] [INST] 2014-09-23 15:12:18 +0000 Error: Script threw an uncaught JavaScript error: Error getting next command, shutting down :-(on line 196 of commands.js 

info: [debug] [INST] 2014-09-23 15:12:18 +0000 Stopped: Script was stopped by the user 

info: [debug] [INST] Instruments Trace Complete (Duration : 8.202824s; Output : /tmp/appium-instruments/instrumentscli0.trace) 

info: [debug] [INSTSERVER] Instruments exited with code 0 

info: [debug] Killall instruments 

info: [debug] Instruments crashed on startup 
info: [debug] Attempting to retry launching instruments, this is retry #3 
info: [debug] Killall iPhoneSimulator 

info: Launching instruments 

info: [debug] Attempting to run app on real device with UDID 0058679bc8d12f8a56243d8de88b0d7e14dc09c0 

info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 0058679bc8d12f8a56243d8de88b0d7e14dc09c0 com.sg.application.TestApp2 -e UIASCRIPT /Users/rsangili/Library/Application Support/appium/bootstrap/bootstrap-3fd3829137e4c5d0.js -e UIARESULTSPATH /tmp/appium-instruments 
info: [debug] And extra without-delay env: {} 
info: [debug] And launch timeouts (in ms): {"global":90000} 

info: [debug] [INST] 2014-09-23 15:12:32 +0000 Error: Script threw an uncaught JavaScript error: Error getting next command, shutting down :-(on line 196 of commands.js 

info: [debug] [INST] 2014-09-23 15:12:32 +0000 Stopped: Script was stopped by the user 

info: [debug] [INST] Instruments Trace Complete (Duration : 6.118680s; Output : /tmp/appium-instruments/instrumentscli0.trace) 

info: [debug] [INSTSERVER] Instruments exited with code 0 

info: [debug] Killall instruments 

info: [debug] Instruments crashed on startup 
info: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch 
info: [debug] Stopping iOS log capture 
info: [debug] Killing the simulator process 
info: [debug] Killing any other simulator daemons 

info: [debug] Cleaning app state. 

info: [debug] No folders found to remove 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: <-- GET /wd/hub/status 200 1.403 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: <-- GET /wd/hub/status 200 2.452 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 1.671 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: <-- GET /wd/hub/status 200 1.155 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 2.371 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 1.211 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.945 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: --> GET /wd/hub/status {} 
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.655 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.969 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: --> GET /wd/hub/status {} 
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.842 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.964 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: --> GET /wd/hub/status {} 
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.665 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 1.047 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: --> GET /wd/hub/status {} 
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.824 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: <-- GET /wd/hub/status 200 0.942 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.767 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.876 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 2.516 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.924 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: --> GET /wd/hub/status {} 
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: <-- GET /wd/hub/status 200 1.146 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.921 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: --> GET /wd/hub/status {} 
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.780 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.846 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: --> GET /wd/hub/status {} 
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 0.751 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: <-- GET /wd/hub/status 200 0.887 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: --> GET /wd/hub/status {} 
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: <-- GET /wd/hub/status 200 0.809 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

info: <-- GET /wd/hub/status 200 2.100 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: --> GET /wd/hub/status {} 

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 
info: <-- GET /wd/hub/status 200 1.009 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}} 

任何幫助非常感謝!

感謝, 拉梅什

+1

請提供您的DesiredCapabilities獲得更多幫助。試着回答我答案中的問題,看看是否有其中一件事情是問題所在。 – sheeptest 2014-09-23 16:28:01

+0

我使用iPhone 5 + 7.1的iOS模擬器在2965行上收到了與appium/bootstrap/bootstrap-dea1a1242b3bfb9b.js相同的JS投訴。 – kiminoa 2015-03-06 20:33:50

回答

0

調試真實設備自動化的iOS

這些都是你應該檢查調試你的真實設備自動化問題的事情。

  1. 是Xcode設備「開發的設置」?
  2. 設備是否已解鎖?
  3. 你給它一個.ipa安裝嗎?
    • 確保.ipa與發展證書
    • .app.xcarchive文件將不能在真正的設備上工作簽名。
  4. 你給它一個已經安裝的應用程序的包ID?
    • 是否將該應用程序部署到設備進行開發或分發?
    • Appium就無法自動通過安裝的應用程序:
      • 在App Store
      • MDM解決方案(除非TestFlight的應用與Development證書籤名)
+0

1)是2)是3)是(IPA文件與開發者資料簽署)4)否。 4a)開發 – 2014-09-23 18:47:54

+0

您需要在啓動Appium之前解鎖設備。如果您需要通過密碼解鎖,儀器將無法啓動 – sheeptest 2014-09-23 18:48:55

+0

這是爲什麼不推薦Real設備自動化iOS的許多原因之一 – sheeptest 2014-09-23 18:49:24