XCUITEST For iOS 10 and above

Can we use UIAUTOMATOR for iOS testing for iOS 10 and above?
Or We have to use XCUITEST only?
Because if i use the desired capabilities for UIAutomator It is not working in iOS 10 and above

Thanks in advance
Harsha