Hi,
I have installed Xocde6.0 GM seed. I am also having Xocde5.0. I am using names of Xcodes as (Xcode.app for xocde5) and Xcode 2.app for (xcode6) under my Applications folder.
I built an ipa using xocde6 that runs on iOS7 and iOS8 both.
But, When I try to run my test using appium (v1.2.0) and the above ipa, then I am getting following error.
debug: Removing any remaining instruments sockets
debug: Cleaned up instruments socket /tmp/instruments_sock
debug: Cleaning up any tracedirs
debug: No tracedirs to clean up
debug: Setting Xcode folder
debug: Setting Xcode version
debug: Setting iOS SDK Version
debug: iOS SDK Version set to 8.0
debug: Detecting automation tracetemplate
error: Could not find Automation.tracetemplate in /Applications/Xcode 2.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
debug: Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Could not find Automation.tracetemplate in /Applications/Xcode 2.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
info: <-- POST /wd/hub/session 500 1950.375 ms - 512
debug: Error: Could not find Automation.tracetemplate in /Applications/Xcode 2.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
at null. (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:717:14)
at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/helpers.js:490:9
at ChildProcess.exithandler (child_process.js:645:7)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:755:16)
at Socket. (child_process.js:968:11)
at Socket.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
debug: Responding to client with error: {āstatusā:33,āvalueā:{āmessageā:āA new session could not be created. (Original error: Could not find Automation.tracetemplate in /Applications/Xcode 2.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate)ā,āorigValueā:āCould not find Automation.tracetemplate in /Applications/Xcode 2.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplateā},āsessionIdā:null}
Forgot to mention, I am automating the tests using real devices not simulators.
Please help me out. Itās quite urgent.
Please provide the steps if you have any other way work around to solve it.
Could not find Automation.tracetemplate in /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
so go to this PATH , from your console $ open /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/ , copy the content of AutomationInstrument.xrplugin and paste it in a folder called AutomationInstrument.bundle which you need to create in the PlugIns folder.
this should solve your first problem, but alongside you also need to modify your capabilities and settings from your device to enable UIAutomation, which is new settings in iOS 8 upgrade and should to be checked to enable UIAutomation
Settings->Developer->Enable UI Automation
Thanks for the tip @JessicaSachs. It was nice to see the simulator actually launch; however, the xcode_6.1_gm_seed_2 simulator choked on something else.
error Failed to start an Appium session, err was: Error: Instruments crashed on startup
Iām going back to give it another whirl with xcode_6
Iām just trying to run webdriver tests against mobile safari. Itās very possible Iām doing something else wrong. I havenāt spun this up in like a year, and just brushed off the cobwebs today.
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(āplatformNameā, āiOSā);
cap.setCapability(āplatformVersionā, ā8.1ā);
cap.setCapability(ādeviceNameā, āiPhone Simulatorā);
cap.setCapability(ābrowserNameā, āSafariā);
Can you please let us know the solution of this error.
And when will be the Appium 1.3 launched As we are badly stuck in this issue.
Not able to do any work.
error: Failed to start an Appium session, err was: Error: Instruments crashed on startup
info: [debug] Error: Instruments crashed on startup
at Instruments.onInstrumentsExit (/Users/sujittarun/GitHub/appium/node_modules/appium-instruments/lib/instruments.js:385:31)
at null. (/Users/sujittarun/GitHub/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:810: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}