# tuist migration settings-to-xcconfig

It extracts the build settings from a project or a target into an xcconfig file.

## Arguments

### xcodeproj-path

**Environment variable** `TUIST_MIGRATION_SETTINGS_TO_XCCONFIG_XCODEPROJ_PATH`

The path to the Xcode project

```bash
tuist migration settings-to-xcconfig -p [xcodeproj-path]
tuist migration settings-to-xcconfig --xcodeproj-path [xcodeproj-path]
```

### xcconfig-path

**Environment variable** `TUIST_MIGRATION_SETTINGS_TO_XCCONFIG_XCCONFIG_PATH`

The path to the .xcconfig file where build settings will be extracted.

```bash
tuist migration settings-to-xcconfig -x [xcconfig-path]
tuist migration settings-to-xcconfig --xcconfig-path [xcconfig-path]
```

### target `Optional`

**Environment variable** `TUIST_MIGRATION_SETTINGS_TO_XCCONFIG_TARGET`

The name of the target whose build settings will be extracted. When not passed, it extracts the build settings of the project.

```bash
tuist migration settings-to-xcconfig --target [target]
tuist migration settings-to-xcconfig -t [target]
```
