NSURLErrorBackgroundSessionRequiresSharedContainer
The shared container identifier of the URL session configuration is needed but hasn’t been set.
Declaration
var NSURLErrorBackgroundSessionRequiresSharedContainer: Int { get }Discussion
To use a URLSession to perform background uploading or downloading in an app extension, you coordinate with the host app using a shared container. The app extension must set the sharedContainerIdentifier of the URL session’s configuration to the shared container’s identifier. See Performing Uploads and Downloads in App Extension Essentials for more information.
See Also
URL Errors
NSURLErrorAppTransportSecurityRequiresSecureConnectionNSURLErrorBackgroundSessionInUseByAnotherProcessNSURLErrorBackgroundSessionWasDisconnectedNSURLErrorBadServerResponseNSURLErrorBadURLNSURLErrorCallIsActiveNSURLErrorCancelledNSURLErrorCannotCloseFileNSURLErrorCannotConnectToHostNSURLErrorCannotCreateFileNSURLErrorCannotDecodeContentDataNSURLErrorCannotDecodeRawDataNSURLErrorCannotFindHostNSURLErrorCannotLoadFromNetworkNSURLErrorCannotMoveFile