# WriteToFile(string)

> Writes the scheme contents to the specified file.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.iOS.Xcode](/engine/6000.7/script-reference/unityeditor/ios/xcode.md)
* **Assembly:** UnityEditor.iOS.Extensions.Xcode

```csharp
public void WriteToFile(string path)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Path to write the project contents to.

### Remarks

Set the path to the Unity project build folder containing your Xcode project using a post-process build callback function. XcScheme files are stored within the Xcode project package under the `xcshareddata` folder.

Additional Resources: [PostProcessBuildAttribute](/engine/6000.7/script-reference/unityeditor/callbacks/postprocessbuildattribute.md).
