Getting error: Sdk '10.2.1(14D27)' was not in list of simctl sdks - after iPad and xcode upgrade

I have upgraded iPad and Xcode
iPad - 10.2.1(14D27)
xcode - 8.2.1
Now I am getting error as

An unknown server-side error occurred while processing the command. Original error: Sdk ‘10.2.1(14D27)’ was not in list of simctl sdks (WARNING: The server did not provide any stacktrace information)

I am stuck at this error

I am getting the same error when trying to connect to real device…

xCode is 8.3.2
real device iPhone 6+ or iPhone 7 (both have iOS 10.2.1)

desired capabilities are …

{
“app”: “/a/a/a/xxxxx.ipa”,
“platformName”: “iOS”,
“deviceName”: “iPhoneName7”,
“automationName”: “XCUITest”,
“xcodeOrgId”: “XXYYZZAABB”,
“xcodeSigningId”: “iPhone Developer”,
“UDID”: “x1xxxxxxxxxxxxxxxx1x”,
“platformVersion”: “10.2.1”,
“noReset”: true
}

UPDATE:
After I changed UDID to udid, I stopped getting this error.