• ios 模拟器运行问题,求解决!求帮助
    appium 版本:1.4.3
    Xcode 版本:6.4
    mac 系统:10.11

    log 如下:
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.Maps
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.coretelephony
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.TextInput.kbd
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.VoiceOverTouch
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.cmfsyncagent
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.mobilesafari
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.accessibility.heard
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.CoreSuggestions
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.Maps(com.apple.Maps.recents)
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.Maps(com.apple.MapsSupport.history)
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.Maps(com.apple.MapsSupport.bookmarks)
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.cloudrecents.CloudRecentsAgent(com.apple.cloudrecents.phone)
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.mobilesafari(com.apple.Safari.WebFeedSubscriptions)
    info: [IOS_SYSLOG_ROW ] May 22 04:04:26 localhost syncdefaultsd[2658]: (Note ) Found new store com.apple.mobilesafari(com.apple.Safari.UserRequests)

    info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Failed looking up pid of launched process
    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 #3
    info: [debug] Killall iOS Simulator
    info: [IOS_SYSLOG_ROW ] May 22 04:04:27 localhost DTMobileIS[2629]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
    info: [IOS_SYSLOG_ROW ] May 22 04:04:27 localhost DTMobileIS[2629]: Could not create service named com.apple.instruments.server.services.launchdaemon
    info: [IOS_SYSLOG_ROW ] May 22 04:04:27 localhost SpringBoard[2620]: Lost connection to sharingd

    info: Launching instruments
    info: [debug] Attempting to run app on iPhone 6 (8.4 Simulator)
    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.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w "iPhone 6 (8.4 Simulator)" /Users/zly7032/test/FPDS.app -e UIASCRIPT "/Users/zly7032/Library/Application Support/appium/bootstrap/bootstrap-f062718992d59810.js" -e UIARESULTSPATH /tmp/appium-instruments
    info: [debug] And extra without-delay env: {}
    info: [debug] And launch timeouts (in ms): {"global":180000}

    info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Unable to install app with path: /Users/zly7032/test/FPDS.app: "Invalid device state"

    info: [debug] [INSTSERVER] Instruments exited with code 253
    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] Running ios sim reset flow
    info: [debug] Killing the simulator process
    info: [debug] Killing any other simulator daemons
    info: [debug] Killall iOS Simulator
    info: [debug] Cleaning sim data files
    info: node-simctl: Executing: xcrun with args: simctl erase 4EC3FA76-6361-4D82-B32A-0D9BF38A1D90 and timeout: 2000

    info: node-simctl: Executing: xcrun with args: simctl erase 4EC3FA76-6361-4D82-B32A-0D9BF38A1D90 and timeout: 2000

    info: node-simctl: Executing: xcrun with args: simctl erase 4EC3FA76-6361-4D82-B32A-0D9BF38A1D90 and timeout: 2000

    info: node-simctl: Executing: xcrun with args: simctl erase 4EC3FA76-6361-4D82-B32A-0D9BF38A1D90 and timeout: 2000

    info: <-- POST /wd/hub/session - - ms - -

    info: [debug] Cleaning app data files

    error: Failed to start an Appium session, err was: Error: Instruments crashed on startup

    warn: Applications directory /Users/zly7032/Library/Developer/CoreSimulator/Devices/4EC3FA76-6361-4D82-B32A-0D9BF38A1D90/data/Containers/Data/Application doesn't exist. Have you run this simulator before?
    warn: Applications directory /Users/zly7032/Library/Developer/CoreSimulator/Devices/4EC3FA76-6361-4D82-B32A-0D9BF38A1D90/data/Containers/Bundle/Application doesn't exist. Have you run this simulator before?
    info: Couldn't find app directories to delete. Probably it's not installed
    info: [debug] Cleaning up appium session
    info: [debug] Error: Instruments crashed on startup
    at [object Object].Instruments.onInstrumentsExit (/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/lib/instruments.js:440:31)
    at [object Object]. (/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/lib/instruments.js:353:12)
    at ChildProcess.emit (events.js:110:17)
    at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
    info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Instruments crashed on startup)","origValue":"Instruments crashed on startup"},"sessionId":null}

    undefined