---
title: AVError.Code.incorrectlyConfigured
framework: AVFoundation
role: symbol
role_heading: Case
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+, visionOS 1.0+, watchOS 7.0+]
path: avfoundation/averror-swift.struct/code/incorrectlyconfigured
---

# AVError.Code.incorrectlyConfigured

The system is incorrectly configured for the requested operation.

## Declaration

```swift
case incorrectlyConfigured
```

## Discussion

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 to generate a fragmented MPEG-4 asset for streaming, adding more that one video and audio AVAssetWriterInput to the asset writer generates an error when you start writing.

## See Also

### Error codes

- [AVError.Code.airPlayControllerRequiresInternet](avfoundation/averror-swift.struct/code/airplaycontrollerrequiresinternet.md)
- [AVError.Code.airPlayReceiverRequiresInternet](avfoundation/averror-swift.struct/code/airplayreceiverrequiresinternet.md)
- [AVError.Code.airPlayReceiverTemporarilyUnavailable](avfoundation/averror-swift.struct/code/airplayreceivertemporarilyunavailable.md)
- [AVError.Code.applicationIsNotAuthorized](avfoundation/averror-swift.struct/code/applicationisnotauthorized.md)
- [AVError.Code.applicationIsNotAuthorizedToUseDevice](avfoundation/averror-swift.struct/code/applicationisnotauthorizedtousedevice.md)
- [AVError.Code.autoWhiteBalanceNotLocked](avfoundation/averror-swift.struct/code/autowhitebalancenotlocked.md)
- [AVError.Code.compositionTrackSegmentsNotContiguous](avfoundation/averror-swift.struct/code/compositiontracksegmentsnotcontiguous.md)
- [AVError.Code.contentIsNotAuthorized](avfoundation/averror-swift.struct/code/contentisnotauthorized.md)
- [AVError.Code.contentIsProtected](avfoundation/averror-swift.struct/code/contentisprotected.md)
- [AVError.Code.contentIsUnavailable](avfoundation/averror-swift.struct/code/contentisunavailable.md)
- [AVError.Code.contentKeyRequestCancelled](avfoundation/averror-swift.struct/code/contentkeyrequestcancelled.md)
- [AVError.Code.contentNotUpdated](avfoundation/averror-swift.struct/code/contentnotupdated.md)
- [AVError.Code.createContentKeyRequestFailed](avfoundation/averror-swift.struct/code/createcontentkeyrequestfailed.md)
- [AVError.Code.decodeFailed](avfoundation/averror-swift.struct/code/decodefailed.md)
- [AVError.Code.decoderNotFound](avfoundation/averror-swift.struct/code/decodernotfound.md)
