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

Hi everyone

I am unable to run the app on the device.

I am using Xcode 5.1.1 and appium 1.3.7.

When I try to even open the setting on the device I get the
error: Log capture did not start in a reasonable amount of time

Here is the appium logs:

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “127.0.0.1” --port “4725” --command-timeout “7200” --platform-version “8.1.1” --platform-name “iOS” --udid “A1C6955F6C90BA613C0451365C915566604984E0” --show-ios-log --device-name “iPhone 4s”

info: Welcome to Appium v1.3.7 (REV 72fbfaa116d3d9f6a862600ee99cf02f6d0e2182)

info: Appium REST http interface listener started on 127.0.0.1:4725

info: [debug] Non-default server args: {“udid”:“A1C6955F6C90BA613C0451365C915566604984E0”,“address”:“127.0.0.1”,“port”:4725,“deviceName”:“iPhone 4s”,“platformName”:“iOS”,“platformVersion”:“8.1.1”,“showIOSLog”:true,“defaultCommandTimeout”:7200}

info: Console LogLevel: debug

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

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: <-- GET /wd/hub/status 200 11.133 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

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

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: <-- GET /wd/hub/status 200 7.740 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:“settings”,“platformName”:“iOS”,“deviceName”:“iPhone 4s”,“appium-version”:“1.3.7”}}

info: Client User-Agent string: Apache-HttpClient/4.3.6 (java 1.5)

info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : appium-version

info: [debug] We’re on iOS8+ so not copying preferences app

info: [debug] Creating new appium session bed24372-b796-45f0-beea-5de8b5368a3a

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 7.1

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] Localizable.strings is not currently supported when using real devices.

info: [debug] Creating instruments

info: [debug] Preparing uiauto bootstrap

info: [debug] Dynamic bootstrap dir: /Users/iostrainee/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/iostrainee/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js

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

info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“5.1.1”,“iOSSDKVersion”:“7.1”,“deviceName”:“iPhone 4s”,“platformVersion”:“8.1.1”}

info: [debug] fixDevice is on

info: [debug] Final device string is: ‘iPhone - Simulator - iOS 8.1.1’

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 iPhoneSimulator

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

info: [debug] Error: Log capture did not start in a reasonable amount of time

at null._onTimeout (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios-log.js:137:10)

at Timer.listOnTimeout (timers.js:110:15)

info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Log capture did not start in a reasonable amount of time)”,“origValue”:“Log capture did not start in a reasonable amount of time”},“sessionId”:null}

info: <-- POST /wd/hub/session 500 11100.506 ms - 234

error: Failed to start an Appium session, err was: Error: Log capture did not start in a reasonable amount of time

info: [debug] Not pre-launching simulator

info: [debug] Creating iDevice object with udid A1C6955F6C90BA613C0451365C915566604984E0

error: Could not initialize ideviceinstaller; make sure it is installed and works on your system

info: [debug] Couldn’t find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller

This is the actual error. I think first you should try this (on the command line):

brew install ideviceinstaller

If you don’t have homebrew installed then take a look here for instructions:

Thank you .
That helped