<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVError-swift.struct/Code/incorrectlyConfigured",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:@E@AVError@AVErrorIncorrectlyConfigured"
  },
  "title" : "AVError.Code.incorrectlyConfigured"
}
-->

# AVError.Code.incorrectlyConfigured

The system is incorrectly configured for the requested operation.

```
case incorrectlyConfigured
```

## Discussion

The system raises this error when you attempt to perform an incorrectly configured operation. For example, HTTP Live Streaming presents only a single video and audio track at a time. If you’re using [`AVAssetWriter`](/documentation/AVFoundation/AVAssetWriter) to generate a fragmented MPEG-4 asset for streaming, adding more that one video and audio [`AVAssetWriterInput`](/documentation/AVFoundation/AVAssetWriterInput) to the asset writer generates an error when you start writing.

---

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)