---
title: testingModes
framework: fileprovider
role: symbol
role_heading: Instance Property
path: fileprovider/nsfileproviderdomain/testingmodes-swift.property
---

# testingModes

A mode that gives the File Provider extension more control over the system’s behavior during testing.

## Declaration

```swift
var testingModes: NSFileProviderDomain.TestingModes { get set }
```

## Discussion

Discussion By default, the value is [] (Swift) or 0 (Objective-C) and all testing modes are disabled. To enable a testing mode, assign its value to this property. You can combine multiple modes: myDomain.testingModes = [.alwaysEnabled, .interactive] important: You must add the com.apple.developer.fileprovider.testing-mode entitlement to your target before assigning a non-empty value to this property. You can only use this entitlement during testing and development. If you add it to your app or extension, you must remove it before you submit your app to TestFlight or the Mac App Store. The system registers the domain’s testing mode when you add the domain by calling add(_:completionHandler:). You can’t change the test mode after you add the domain.

## See Also

### Testing

- [NSFileProviderDomain.TestingModes](fileprovider/nsfileproviderdomain/testingmodes-swift.struct.md)
