Step by step instructions to getting appium 1.6.0beta3 working with Xcode 8

We have iOS automation scripts using java, appium 1.4.13 and Xcode 7 up and running.
However our app development IDE recently started using XCode 8, which means that out automation also has to.
I did the following but end up getting an error each time (AS below) with the webdriveragent launching but not opening the app. I’m testing on a simulator. Please advise.

Here are the steps I followed so far:

  1. Upgrade to XCode 8 store version.
  2. From command line downloaded appium
    npm install -g [email protected]
    npm install wd (returned [email protected])
  3. Set desired caps in code as
    // Set capabilities
    capabilities.setCapability(“deviceName”, DEVICE_NAME);
    capabilities.setCapability(“platformName”, “iOS”);
    capabilities.setCapability(“platformVersion”, PLATFORM_VERSION);
    //capabilities.setCapability(“interKeyDelay”, 0); //Should input text faster
    capabilities.setCapability(“bundleId”, BUNDLE_ID);
    capabilities.setCapability(“automationName”, “XCUITest”);
    //capabilities.setCapability(“wdaLocalPort”, “8100”);
    capabilities.setCapability(“app”, IPA_NAME);
    On execution the app installs on the simulator, but does not launch - isntaed the webdriveragent launches and then the simulator closes. Got the following error: