API compatibility issues

DCDevice * DeviceCheckDevice = [DCDevice currentDevice] can only be called after iOS11, but the generated code does not do compatibility processing, which causes many 11 system devices to crash