Syncing with Xcode

xcsync is a .NET tool that enables developers to leverage Xcode for managing Apple specific files with .NET projects. The tool generates a temporary Xcode project from a .NET project and synchronizes changes to the Xcode files back to the .NET project.

Supported file types include:

  • Asset catalog
  • Plist
  • Storyboard
  • Xib

The tool has two commands: generate and sync. Use generate to create an Xcode project from a .NET project and sync to bring changes in the Xcode project back to the .NET project.

Installation

Install .NET xcsync globally with the following command:

dotnet tool install -g dotnet-xcsync

Usage

  1. The .NET MAUI extension provides support for xcsync. Ensure you have the latest version. The xcsync commands in the .NET MAUI extension are only available when using Visual Studio Code on macOS.
  2. Open the command palette (Cmd + Shift + P) and search for the .NET MAUI: xcsync - Generate an Xcode project and .NET MAUI: xcsync - Sync from an Xcode project commands.

Troubleshooting

To see details on errors related to xcsync, navigate to the Output window (CMD + Shift + u ) and select .NET MAUI - xcsync in the dropdown. If you are facing issues, please report an issue.

Provide feedback

Please check existing Known Issues before filing a new issue or suggestion.

More information

xcsync is open-source. For more information or to file an issue, please visit https://github.com/dotnet/xcsync.