Appium's IosDriver does not support xcode version 9.0

A new session could not be created. Details: Appium’s IosDriver does not support xcode version 9.0. Apple has deprecated UIAutomation. Use the “XCUITest” automationName capability instead. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 130 milliseconds

AM facing this above problem, please help me any one. thanks in advance

like it says in the message, use XCUITest as the automationName capability.
Instruments (UIAutomation underlying mechanism) has been mothballed for a while

Can you please help me on this issue.

cap.setCapability(“ipa”, “/Users/karna/Desktop/Test/karna12.ipa”);

After adding the capabilities its displaying below error. Please help me in this.

An unknown server-side error occurred while processing the command. Original error: The desired capabilities must include either an app or a bundleId for iOS (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 141 milliseconds

you’ll need to set a bundle id e.g. setCapability(“bundleId”, “com.google.ios.youtube”)