刚刚 Appium 提示我有更新,然后我就小手一抖点了更新,完了之后再执行之前写的脚本,
就报下面的错了,各位大神有木有遇到过?Appium 1.2.2
虽然报错,但是后面 App 还是正常安装并启动起来了 o(╯□╰) o
info: [debug] Creating new appium session a567014d-2467-4a23-9b48-6fc905c87746
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder
info: [debug] Setting Xcode version
info: [debug] Setting iOS SDK Version
info: [debug] iOS SDK Version set to 7.1
info: [debug] Detecting automation tracetemplate
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Parsed app Info.plist (as binary)
error: iOS log capture failed: spawn ENOENT
info: [debug] Parsed app Localizable.strings
info: [debug] Not setting locale because we're using a real device
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] Fixing device was changed from:"
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 458.278 ms - 197
error: Failed to start an Appium session, err was: Error: spawn ENOENT
脚本不做任何修改,Appium 版本回退到 1.2.1 就没有报错了,不知道是不是我的配置有啥问题⊙﹏⊙b
debug: Creating new appium session 49030493-be77-4791-963c-72bdcb21d65f
debug: Removing any remaining instruments sockets
debug: Cleaned up instruments socket /tmp/instruments_sock
debug: Setting Xcode folder
debug: Setting Xcode version
debug: Setting iOS SDK Version
debug: iOS SDK Version set to 7.1
debug: Detecting automation tracetemplate
debug: Not auto-detecting udid, running on sim
debug: Parsed app Info.plist (as binary)
debug: Parsed app Localizable.strings
debug: Not setting locale because we're using a real device
debug: Creating instruments
debug: Preparing uiauto bootstrap
debug: Dynamic bootstrap dir: /Users/Link/Library/Application Support/appium/bootstrap
debug: Dynamic env: {"nodePath":"/Applications/Appium.app/Contents/Resources/node/bin/node","commandProxyClientPath":"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null}
debug: Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
#import "/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/uiauto/bootstrap.js";
bootstrap({
nodePath: "/Applications/Appium.app/Contents/Resources/node/bin/node",
commandProxyClientPath: "/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",
instrumentsSock: "/tmp/instruments_sock",
interKeyDelay: null,
});
debug: Dynamic bootstrap path: /Users/Link/Library/Application Support/appium/bootstrap/bootstrap-3fd3829137e4c5d0.js
debug: Reusing dynamic bootstrap: /Users/Link/Library/Application Support/appium/bootstrap/bootstrap-3fd3829137e4c5d0.js
debug: Not setting iOS and app preferences since we're on a real device
debug: Starting iOS device log capture via idevicesyslog
debug: Not setting device type since we're connected to a device
debug: Getting bundle ID from app
debug: Parsed app Info.plist (as binary)