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

# NIError.Code.invalidARConfiguration

An error that indicates the framework can’t begin Camera Assistance.

```
case invalidARConfiguration
```

## Discussion

The framework invalidates a Nearby Interaction session when the app requests Camera Assistance ([`isCameraAssistanceEnabled`](/documentation/NearbyInteraction/NINearbyPeerConfiguration/isCameraAssistanceEnabled)) and either of the following are true:

- The device doesn’t support Camera Assistance.
- The app’s AR session doesn’t meet the required criteria as defined in [`setARSession(_:)`](/documentation/NearbyInteraction/NISession/setARSession(_:)).

---

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)