Hello. It’s time to write post, cause after 2 days of struggling with this error, I’m going mad.
I have problem with launch Appium on:
- OS X 10.9.4
- Appium 1.3.6 (GUI, not tried from console yet)
- Simulator with version: 7.0 or 8.1
- application: .app (builded by me in XCode) or .ipa (builded by developer who has certs to build it)
Error is always the same:
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
Appium can close my Simulator, but can’t run it.
If you have any suggestions, I’ll be very glad.
My log:
Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --command-timeout “7200” --pre-launch --platform-version “8.1” --platform-name “iOS” --app “my.application” --udid “BF0CF896-400A-4CF8-8501-C4EC41D451BA” --show-ios-log --device-name “iPhone 6 (8DB01BD3-E974-4BA6-AB40-50182BFD8800)”
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 16ba937f-5f55-4b88-a5d8-051949721ea4
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.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] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/my.application/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/my.application/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Creating instruments
info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/kusia/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/kusia/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js
info: [debug] Reusing dynamic bootstrap: /Users/kusia/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPhone 6 (8DB01BD3-E974-4BA6-AB40-50182BFD8800)”,“platformVersion”:“8.1”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 6 (8DB01BD3-E974-4BA6-AB40-50182BFD8800) (8.1 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
Also my Appium iOS Settings:
App Path: path to my .app or .ipa
BundleId: my bundle id
Force device: my simulator, on iOS 7 or iOS 8.1
Platform Version: 7.0 or 8.1
UDID: id of simulator
Show simulator log
General settings:
Prelaunch Application
Other settings are default or not checked.
When I disable prelaunch, server started, but when I click Inspector error is:
Could Not Launch Appium Inspector
Could not start a new session
Be sure the Appium server is running with an application opened by using the “App Path” parameter in Appium.app (along with package and activity for Android) or by connecting with selenium client and supplying this in the desired capabilities object.
in console:
error: Log capture did not start in a reasonable amount of time
error: Failed to start an Appium session, err was: Error: Log capture did not start in a reasonable amount of time
error: Could not initialize ideviceinstaller; make sure it is installed and works on your system.
in log always is something like:
“info: [debug] Not checking whether simulator is available since we’re on a real device”
“info: [debug] Final device string is: ‘iPhone 5 iOS 7 (some id) (7.0 Simulator)’
info: [debug] Not setting device type since we’re on a real device”
so I don’t know, is Appium trying to run my ap on real device (I haven’t real device) or simulator.