<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macOS: 11.3.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderManager/run(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "File Provider",
      "FileProvider"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFileProviderManager(im)runTestingOperations:error:"
  },
  "title" : "run(_:)"
}
-->

# run(_:)

Asks the system to schedule and execute the specified operations.

```
func run(_ operations: [any NSFileProviderTestingOperation]) throws -> [AnyHashable : any Error]
```

## Parameters

`operations`

An array of operations. Populate this array with one or more operations returned by the [`listAvailableTestingOperations()`](/documentation/FileProvider/NSFileProviderManager/listAvailableTestingOperations()) method.

## Discussion

> Important:
> Before calling this method, you must set the domain’s ``doc://com.apple.fileprovider/documentation/FileProvider/NSFileProviderDomain/testingModes-swift.property`` property to include the ``doc://com.apple.fileprovider/documentation/FileProvider/NSFileProviderDomain/TestingModes-swift.struct/interactive`` value.

The system waits until all of the specified operations complete and reports an error for any operations that fail.

---

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)