Hi guys! I’ve encountered this error when trying to launch Appium Inspector. I’m currently using Xcode 8. Everything was working fine before I upgraded to Xcode 8.
[Xcode] Could not find Automation.tracetemplate in any of the followinglocations /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate,/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
debug] [iOS] IosDriver version: 1.13.0
[BaseDriver] Session created with session id: ec5bf5e3-9f9a-47cc-ae29-0f22ce5f3aa4
[debug] [iOS] Xcode version set to 8.1
[iOS] SessionNotCreatedError: A new session could not be created. Details: Appium’s IosDriver does not support xcode version 8.1. Apple has deprecated UIAutomation. Use the “XCUITest” automationName capability instead.
at IosDriver.createSession$ (…/…/lib/driver.js:130:28)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
{ SessionNotCreatedError: A new session could not be created. Details: Appium’s IosDriver does not support xcode version 8.1. Apple has deprecated UIAutomation. Use the “XCUITest” automationName capability instead.
at IosDriver.createSession$ (…/…/lib/driver.js:130:28)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37) jsonwpCode: 33 }
[HTTP] <-- POST /wd/hub/session 500 366 ms - 243
caps.setCapability("realDeviceLogger", "/usr/local/lib/node_modules/deviceconsole/deviceconsole");
d = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), caps);
d.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS);
}