Could not launch Appium Inspector with Xcode 8

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

Thanks! :slight_smile:

1 Like

@milky Appium 1.5.3 cannot be used on Xcode 8 please get the appium 1.6 beta from github

1 Like

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

Please share the capabilities

I suggest you to use https://github.com/mykola-mokhnach/Appium-iOS-Inspector

I found it very useful

@BeforeClass
public void setUp() throws Exception
{
DesiredCapabilities caps = new DesiredCapabilities();
String apkpath="/Users/Logic/Desktop/Notifii Connect 1.0.ipa";
File app=new File(apkpath);
caps.setCapability(“app”, app.getAbsolutePath());
caps.setCapability(“deviceName”, “iPhone”);
caps.setCapability(“platformName”, “iOS”);
caps.setCapability(“platformVersion”,“9.3.5”);
//caps.setCapability(“platformVersion”, versionString);
//caps.setCapability(“udid”,“eb899297682490caa808f8e00bbed947ed11b45c”);
caps.setCapability(“udid”,“83587558adeb43b0818ed170f4446f7c4159469d”);
caps.setCapability(“bundleId”, “xxxxxxx”);
caps.setCapability(“automationName”, “XCUITest”);

	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);
}

You can also use the built in Facebook WebDriveAgent Inspector if your using Appium 1.6.3

Take a look at my following post, I have just edited the post with my migration and it has instructions on how to setup the inspector.