Hello all,
I am working on:
- Mac Mini with OS version 10.10.
- Xcode 6.0
- Appium Version 1.3.4
whenever I launch my script through eclipse simulator will be launched and application will installed but once launch the aplication launched applications is getting crashed or Instruments is getting crashed(im not able to proceede further) simulator will closed and reopened
Application used to work fine with In the previous versions of appium but now its not working as expected
My DesiredCapabilities are as follows
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(âappium-versionâ,â1.3.4â);
capabilities.setCapability(âplatformNameâ, âiOSâ);
capabilities.setCapability(âplatformVersionâ, â8.0â);
capabilities.setCapability(âdeviceNameâ, âiPhone 5â);
capabilities.setCapability(âappâ, â/Users/***/Desktop/.appâ);
Below is logs attached from eclipse Junit console(Im running script as Junit script)
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Instruments crashed on startup) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 92.79 seconds
Build info: version: â2.43.0â, revision: âaccb3003b9fb8f7cae30f9669b4c594a065396a6â, time: â2014-09-09 22:22:51â
System info: host: âsncradms-Mac-mini-5.localâ, ip: â10.16.16.163â, os.name: âMac OS Xâ, os.arch: âx86_64â, os.version: â10.10â, java.version: â1.8.0_25â
Driver info: io.appium.java_client.ios.IOSDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:180)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:240)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:126)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:153)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:109)
at io.appium.java_client.ios.IOSDriver.(IOSDriver.java:23)
at com.sncr.auto.pages.WLSyncDriveLogin.preRequisites(WLSyncDriveLogin.java:29)
at com.sncr.auto.tests.provFlow.setUp(provFlow.java:37)
at junit.framework.TestCase.runBare(TestCase.java:139)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:129)
at junit.framework.TestSuite.runTest(TestSuite.java:255)
at junit.framework.TestSuite.run(TestSuite.java:250)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
logs from Terminal
[debug] Responding to client with success: {âstatusâ:0,âvalueâ:{âbuildâ:{âversionâ:â1.3.4â,ârevisionâ:âc8c79a85fbd6870cd6fc3d66d038a115ebe22efeâ}}}
info: <-- GET /wd/hub/status 200 4.692 ms - 104 {âstatusâ:0,âvalueâ:{âbuildâ:{âversionâ:â1.3.4â,ârevisionâ:âc8c79a85fbd6870cd6fc3d66d038a115ebe22efeâ}}}
info: --> POST /wd/hub/session {âdesiredCapabilitiesâ:{âappâ:"/Users//Desktop/SyncDrive.app",âappium-versionâ:â1.3.4â,âplatformVersionâ:â8.0â,âplatformNameâ:âiOSâ,âdeviceNameâ:âiPhone 5â}}
info: Client User-Agent string: Apache-HttpClient/4.3.4 (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] Using local app from desired caps: /Users//Desktop/SyncDrive.app
info: [debug] Creating new appium session 2473f4fd-412e-4091-9db7-474ccb9aa193
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.0
info: [debug] Checking whether instruments supports our device string
info: [debug] Getting list of devices instruments supports
info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
info: [debug] Getting device string from opts: {âforceIphoneâ:false,âforceIpadâ:false,âxcodeVersionâ:â6.0â,âiOSSDKVersionâ:â8.0â,âdeviceNameâ:âiPhone 5â,âplatformVersionâ:â8.0â}
info: [debug] fixDevice is on
info: [debug] Final device string is: âiPhone 5 (8.0 Simulator)â
info: [debug] iOS sim UDID is E251EB92-FFF4-4A75-A0BD-E48F849AE78D
info: [debug] Detecting automation tracetemplate
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Parsed app Localizable.strings
info: [debug] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
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//Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {ânodePathâ:"/usr/local/Cellar/node/0.10.36/bin/node",âcommandProxyClientPathâ:"/usr/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",âinstrumentsSockâ:"/tmp/instruments_sock",âinterKeyDelayâ:null,âjustLoopInfinitelyâ:false,âautoAcceptAlertsâ:false,âsendKeyStrategyâ:âoneByOneâ}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. DâŚot manually modify!
info: [debug] Dynamic bootstrap path: /Users//Library/Application Support/appium/bootstrap/bootstrap-1fb90a0f7e596c1d.js
info: [debug] Reusing dynamic bootstrap: /Users//Library/Application Support/appium/bootstrap/bootstrap-1fb90a0f7e596c1d.js
info: [debug] Getting device string from opts: {âforceIphoneâ:false,âforceIpadâ:false,âxcodeVersionâ:â6.0â,âiOSSDKVersionâ:â8.0â,âdeviceNameâ:âiPhone 5â,âplatformVersionâ:â8.0â}
info: [debug] fixDevice is on
info: [debug] Final device string is: âiPhone 5 (8.0 Simulator)â
info: [debug] Weâre on iOS7.1+ so forcing defaultDevice on
info: [debug] Getting device string from opts: {âforceIphoneâ:false,âforceIpadâ:false,âxcodeVersionâ:â6.0â,âiOSSDKVersionâ:â8.0â,âdeviceNameâ:âiPhone 5â,âplatformVersionâ:â8.0â}
info: [debug] fixDevice is on
info: [debug] Final device string is: âiPhone 5 (8.0 Simulator)â
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Wrote new app Info.plist with device type
info: [debug] Checking whether we need to set app preferences
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] Cleaning sim data files
info: [debug] Executing: xcrun simctl erase E251EB92-FFF4-4A75-A0BD-E48F849AE78D
info: [debug] Cleaning app data files
warn: Applications directory /Users//Library/Developer/CoreSimulator/Devices/E251EB92-FFF4-4A75-A0BD-E48F849AE78D/data/Containers/Data/Application doesnât exist. Have you run this simulator before?
warn: Applications directory /Users//Library/Developer/CoreSimulator/Devices/E251EB92-FFF4-4A75-A0BD-E48F849AE78D/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] Not setting locale
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS 8. simulator log capture
info: [debug] Not pre-launching simulator
info: [debug] No device id or app, not installing to real device.
info: [debug] Starting command proxy.
info: [debug] Instruments socket server started at /tmp/instruments_sock
info: [debug] Starting instruments
info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
info: Launching instruments
info: [debug] Attempting to run app on iPhone 5 (8.0 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 5 (8.0 Simulator)â /Users//Desktop/SyncDrive.app -e UIASCRIPT "/Users//Library/Application Support/appium/bootstrap/bootstrap-1fb90a0f7e596c1d.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {âDYLD_INSERT_LIBRARIESâ:"/usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd6/InstrumentsShim.dylib",âLIB_PATHâ:"/usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd6"}
info: [debug] And launch timeouts (in ms): {âglobalâ:90000}
info: [debug] [INST] Waiting for device to bootâŚ
info: [debug] [INST] 2015-02-10 12:00:04 +0000 Fail: Could not start script, target application is not frontmost.
info: [debug] [INST] Instruments Trace Complete (Duration : 35.328396s; Output : /tmp/appium-instruments/instrumentscli0.trace)
info: [debug] [INSTSERVER] Instruments exited with code 0
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] Attempting to retry launching instruments, this is retry #1
info: [debug] Killall iOS Simulator
info: Launching instruments
info: [debug] Attempting to run app on iPhone 5 (8.0 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 5 (8.0 Simulator)â /Users//Desktop/SyncDrive.app -e UIASCRIPT "/Users//Library/Application Support/appium/bootstrap/bootstrap-1fb90a0f7e596c1d.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {âDYLD_INSERT_LIBRARIESâ:"/usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd6/InstrumentsShim.dylib",âLIB_PATHâ:"/usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd6"}
info: [debug] And launch timeouts (in ms): {âglobalâ:90000}
info: [debug] [INST] Waiting for device to bootâŚ
info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldnât be completed. (FBSOpenApplicationErrorDomain error 8.) : Failed to launch process with bundle identifier âcom.synchronoss.cloudtestâ
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 #2
info: [debug] Got the FBSOpenApplicationError, not killing the sim but leaving it open so the app will launch
info: Launching instruments
info: [debug] Attempting to run app on iPhone 5 (8.0 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 5 (8.0 Simulator)â /Users//Desktop/SyncDrive.app -e UIASCRIPT "/Users//Library/Application Support/appium/bootstrap/bootstrap-1fb90a0f7e596c1d.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {âDYLD_INSERT_LIBRARIESâ:"/usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd6/InstrumentsShim.dylib",âLIB_PATHâ:"/usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd6"}
info: [debug] And launch timeouts (in ms): {âglobalâ:90000}
info: [debug] [INST] 2015-02-10 12:00:46 +0000 Fail: Could not start script, target application is not frontmost.
info: [debug] [INST] Instruments Trace Complete (Duration : 33.130211s; Output : /tmp/appium-instruments/instrumentscli0.trace)
info: [debug] [INSTSERVER] Instruments exited with code 0
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: Launching instruments
info: [debug] Attempting to run app on iPhone 5 (8.0 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 5 (8.0 Simulator)â /Users//Desktop/SyncDrive.app -e UIASCRIPT "/Users//Library/Application Support/appium/bootstrap/bootstrap-1fb90a0f7e596c1d.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {âDYLD_INSERT_LIBRARIESâ:"/usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd6/InstrumentsShim.dylib",âLIB_PATHâ:"/usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd6"}
info: [debug] And launch timeouts (in ms): {âglobalâ:90000}
info: [debug] [INST] Waiting for device to bootâŚ
info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldnât be completed. (FBSOpenApplicationErrorDomain error 8.) : Failed to launch process with bundle identifier âcom.synchronoss.cloudtestâ
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] Killall iOS Simulator
info: [debug] Killing any other simulator daemons
info: [debug] Cleaning sim data files
info: [debug] Executing: xcrun simctl erase E251EB92-FFF4-4A75-A0BD-E48F849AE78D
info: [debug] Executing: xcrun simctl erase E251EB92-FFF4-4A75-A0BD-E48F849AE78D
info: [debug] Cleaning app data files
warn: Applications directory /Users//Library/Developer/CoreSimulator/Devices/E251EB92-FFF4-4A75-A0BD-E48F849AE78D/data/Containers/Data/Application doesnât exist. Have you run this simulator before?
warn: Applications directory /Users/*******/Library/Developer/CoreSimulator/Devices/E251EB92-FFF4-4A75-A0BD-E48F849AE78D/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
error: Failed to start an Appium session, err was: Error: Instruments crashed on startup
info: [debug] Error: Instruments crashed on startup
at Instruments.onInstrumentsExit (/usr/local/lib/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:387:31)
at null. (/usr/local/lib/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:308:12)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:820: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}
info: <-- POST /wd/hub/session 500 92645.957 ms - 182
Can anyone Please help me to get rid of this ??Any help will appreciated!!