• appium.app Inspector 启动方法 at 2015年04月16日

    @chenhengjie123 非常感谢,我这边终于能启动啦!

  • appium.app Inspector 启动方法 at 2015年04月16日

    @chenhengjie123 ,udid 改成小写出现了新的错误,日志如下

    补充:/Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller 我查过这个文件是存在的

    Launching Appium with command: '/Applications/Appium.app/Contents/Resources/node/bin/node' lib/server/main.js --command-timeout "7200" --pre-launch --platform-version "8.2" --platform-name "iOS" --app "com.newgrand.i6" --udid "4508f7a0d193925cbe0441686496409ff000a39a" --show-ios-log --device-name "iPhone 5s" --native-instruments-lib
    
    info: [debug] Starting Appium in pre-launch mode
    
    info: Pre-launching app
    
    info: [debug] App is an iOS bundle, will attempt to run as pre-existing
    
    info: [debug] Creating new appium session efdb8784-d024-41c8-a9cb-6c55e36768c4
    
    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] Getting sdk version from xcrun with a timeout
    
    info: [debug] iOS SDK Version set to 8.2
    info: [debug] Not checking whether simulator is available since we're on a real device
    info: [debug] Detecting automation tracetemplate
    
    info: [debug] Not auto-detecting udid, running on sim
    
    info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.newgrand.i6/en.lproj/Localizable.strings
    info: Will try to parse the plist file as XML
    info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.newgrand.i6/en.lproj/Localizable.strings
    warn: Could not parse app Localizable.strings assuming it doesn't exist
    
    info: [debug] Creating instruments
    
    info: [debug] Preparing uiauto bootstrap
    
    info: [debug] Dynamic bootstrap dir: /Users/lee/Library/Application Support/appium/bootstrap
    info: [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,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}
    
    info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
    ...
    
    info: [debug] Dynamic bootstrap path: /Users/lee/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js
    
    info: [debug] Reusing dynamic bootstrap: /Users/lee/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js
    info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"6.2","iOSSDKVersion":"8.2","deviceName":"iPhone 5s","platformVersion":"8.2"}
    info: [debug] fixDevice is on
    info: [debug] Final device string is: 'iPhone 5s (8.2 Simulator)'
    
    info: [debug] Not setting device type since we're on a real device
    info: [debug] Checking whether we need to set app preferences
    info: [debug] Not setting iOS and app preferences since we're on a real device
    info: [debug] Running ios sim reset flow
    info: [debug] Killing the simulator process
    info: [debug] Killall iOS Simulator
    
    info: [debug] Killing any other simulator daemons
    
    info: [debug] On a real device; cannot clean device state
    
    info: [debug] Not setting locale because we're using a real device
    info: [debug] No iOS / app preferences to set
    
    info: [debug] Starting iOS device log capture via deviceconsole
    
    info: [IOS_SYSLOG_ROW ] Apr 16 10:20:19 iPhone locationd[56] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
    
    info: [IOS_SYSLOG_ROW ] Apr 16 10:20:19 iPhone locationd[56] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
    
    info: [debug] Not pre-launching simulator
    
    info: [debug] Creating iDevice object with udid 4508f7a0d193925cbe0441686496409ff000a39a
    
    info: [debug] Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
    
    error: Could not initialize ideviceinstaller; make sure it is installed and works on your system
    
    info: [debug] Cleaning up appium session
    
    error: Could not pre-launch appium: Error: Could not initialize ideviceinstaller; make sure it is installed and works on your system```
    
    
    
    
    
    
  • appium.app Inspector 启动方法 at 2015年04月16日

    @chenhengjie123 ,您好,按你说的设置,Launch 失败,能帮我看下是什么问题吗?
    日志如下:Launching Appium with command: '/Applications/Appium.app/Contents/Resources/node/bin/node' lib/server/main.js --command-timeout "7200" --pre-launch --platform-version "8.2" --platform-name "iOS" --app "com.newgrand.i6" --udid "4508F7A0D193925CBE0441686496409FF000A39A" --show-ios-log --device-name "iPhone 5s" --native-instruments-lib

    info: [debug] Starting Appium in pre-launch mode

    info: Pre-launching app
    info: [debug] App is an iOS bundle, will attempt to run as pre-existing

    info: [debug] Creating new appium session 9eef2f0c-89ef-4b8d-8267-99ed029564cd

    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] Getting sdk version from xcrun with a timeout

    info: [debug] iOS SDK Version set to 8.2

    info: [debug] Not checking whether simulator is available since we're on a real device

    info: [debug] Detecting automation tracetemplate

    info: [debug] Not auto-detecting udid, running on sim

    info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.newgrand.i6/en.lproj/Localizable.strings

    info: Will try to parse the plist file as XML

    info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.newgrand.i6/en.lproj/Localizable.strings
    warn: Could not parse app Localizable.strings assuming it doesn't exist
    info: [debug] Creating instruments
    info: [debug] Preparing uiauto bootstrap
    info: [debug] Dynamic bootstrap dir: /Users/lee/Library/Application Support/appium/bootstrap
    info: [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,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}

    info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
    ...
    info: [debug] Dynamic bootstrap path: /Users/lee/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js

    info: [debug] Reusing dynamic bootstrap: /Users/lee/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js

    info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"6.2","iOSSDKVersion":"8.2","deviceName":"iPhone 5s","platformVersion":"8.2"}
    info: [debug] fixDevice is on
    info: [debug] Final device string is: 'iPhone 5s (8.2 Simulator)'
    info: [debug] Not setting device type since we're on a real device
    info: [debug] Checking whether we need to set app preferences
    info: [debug] Not setting iOS and app preferences since we're on a real device
    info: [debug] Running ios sim reset flow
    info: [debug] Killing the simulator process
    info: [debug] Killall iOS Simulator

    info: [debug] Killing any other simulator daemons

    info: [debug] On a real device; cannot clean device state

    info: [debug] Not setting locale because we're using a real device
    info: [debug] No iOS / app preferences to set

    info: [debug] Starting iOS device log capture via deviceconsole

    info: [debug] Cleaning up appium session

    error: Log capture did not start in a reasonable amount of time

    error: Could not pre-launch appium: Error: Log capture did not start in a reasonable amount of time

  • @nailgogogogo ,开发证书是要怎么安装到真机上的呢?