What does this.iOSSDKVersion refer to?

I’ve asked this question on stack overflow and just got a tumbleweed for my trouble:

Does this.iOSSDKVersion refer to the SDK version of the phone or of xcode? The phone I’m using is SDK 7.1, but xcrun reports the version as 8.1. There are lots of places in the code that switch on sdk version and we’re going to get incorrect results if Appium is not using the right one.