<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "watchOS: 7.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NearbyInteraction",
  "identifier" : "/documentation/NearbyInteraction/NIError/Code/unsupportedPlatform",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Nearby Interaction"
    ],
    "preciseIdentifier" : "c:@E@NIErrorCode@NIErrorCodeUnsupportedPlatform"
  },
  "title" : "NIError.Code.unsupportedPlatform"
}
-->

# NIError.Code.unsupportedPlatform

An error code that indicates that the framework doesn’t support the device platform.

```
case unsupportedPlatform
```

## Discussion

Before running an interaction session, call [`isSupported`](/documentation/NearbyInteraction/NISession/isSupported) to ensure that Nearby Interaction supports the device’s platform.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)