How to Edit a Plist File on macOS with Xcode

You can edit a property list (.plist) file on macOS in Xcode’s structured editor. Back up the file, open it in Xcode, change only documented keys and values, then save. Avoid editing a third-party app’s installed bundle: changing a signed app can invalidate its signature or break updates. For your own app, edit the project source or build settings and rebuild.

When to edit a plist directly

Property lists hold structured data—strings, numbers, Boolean values, arrays, and dictionaries. An app’s Info.plist describes its bundle; separate plists may store preferences. Use the file and key documented by the app: inventing a key will not add support for a setting.

Before editing, identify whether the file contains app metadata or a user preference. If you want to change a feature in an app you use, start in that app’s settings or documentation. A preference file may be rewritten when the app launches or quits; an installed bundle’s Info.plist is not a general settings panel.

For an Xcode project you maintain, check the target’s Info pane and build settings first. Xcode may generate Info.plist at build time, so editing a built copy can be temporary. Apple’s editing guide covers the structured editor; its build settings reference explains generated values.

Edit a plist file with Xcode

1. Install Xcode

Get Xcode from the Mac App Store. It is currently listed as free; check the listing for requirements for the version available to your Mac. Launch Xcode once after installation.

Mac App Store search results showing Apple’s Xcode listing with a Get button.
Xcode’s Mac App Store listing with the Get button.

2. Make a working backup

Find the plist in Finder and duplicate it or copy it to a working folder before editing. Keep the original until you verify the change. Store backups outside an app’s .app bundle; adding files there can alter its signed contents.

Finder list view showing Info.plist and a separate Info copy.plist backup in a sample project folder.
Keep a separate backup before editing.

3. Find the file inside an app, if needed

To inspect an app bundle, Control-click the app in Finder and choose Show Package Contents. This reveals its internal folders. Use this to locate a file, or edit only an app you maintain and can rebuild or re-sign; don’t patch a third-party app in place.

Finder Applications view with a sample app selected and Show Package Contents highlighted in its context menu.
Finder reveals an app’s internal files.

4. Open the plist in the bundle

Open Contents, then look for Info.plist. Other plists may be elsewhere, so follow the app or project documentation. For a standalone file, use its normal Finder location.

Finder window showing a Contents folder with Info.plist selected among the app bundle files.
Info.plist inside the app’s Contents folder.

5. Open the file in Xcode

Control-click the plist and choose Open With > Xcode. If Xcode is missing, choose Other and select it from Applications. You can also open Xcode and use File > Open. A structured plist appears as key, type, and value rows.

Finder context menu for Info.plist with Open With expanded and Xcode selected.
Select Xcode from Open With.

6. Change an existing value or add a row

Click an existing value to edit it. To add a setting, Control-click in the editor and choose Add Row, or click the add control. Use the exact key documented by the app; misspelled or unsupported keys may be ignored.

Xcode property list table with Key, Type, and Value columns and the Add Row command open.
Add a documented property-list key.

7. Check the value type and save

Match the value type to the documented format: a Boolean, number, and string are not interchangeable. Arrays hold ordered items; dictionaries hold named values. Avoid guessed or duplicate keys, then press Command-S.

  • String: text, such as an identifier or label.
  • Boolean: true or false.
  • Number: an integer or real number.
  • Array or dictionary: a list or a group of named values.
Xcode editor showing a sample CFBundleName string changed to SampleApp Pro while other rows remain visible.
Example of an edited string value.

8. Reopen and verify the saved file

Close and reopen the plist to confirm the value persisted. For your own project, rebuild and test a copy. If the app ignores it, check that you edited the right source file; apps can read preferences elsewhere or replace them at launch. Restore the backup or reinstall if the app fails.

Xcode property list editor reopened with the saved SampleApp Pro string visible in the table.
Reopened file with the saved value.

Important signing and troubleshooting notes

Apple notes that modifying a signed app bundle can invalidate its signature; updates may also replace edits. For software you maintain, change the source plist or target setting, then rebuild. For ordinary preferences, use the app’s settings. Do not disable macOS protections to edit a plist.

If Xcode cannot save, work from a writable copy. If a change disappears after rebuilding, update the source or build setting. If a key is ignored, verify its spelling, type, and location in the app’s documentation.

For more detail, see Apple’s Information Property List documentation and its Technical Note on macOS code signing.

Leave a Comment

How to Screenshot on Mac: A Comprehensive Guide

How to Screenshot on Mac: A Comprehensive Guide

Learn how to screenshot on Mac with shortcuts for the full screen, an area, or a window, plus the Screenshot app, clipboard, editing, and save-location tips.

How to Add Multiple Images to a Single PDF on macOS

How to Add Multiple Images to a Single PDF on macOS

Combine multiple images into a single PDF on macOS using Finder or Preview. Control page order, avoid cropping, and fix missing pages without extra software.

How to View FPS on macOS: Steam and Apple’s Metal HUD

How to View FPS on macOS: Steam and Apple’s Metal HUD

Learn how to show FPS on a Mac with Steam’s performance overlay or Apple’s Metal Performance HUD, plus fixes when the counter does not appear.

How to Force Quit on a Mac: 5 Quick Ways to Close an App

How to Force Quit on a Mac: 5 Quick Ways to Close an App

Use Option–Command–Esc to force quit an unresponsive Mac app, or close it from the Apple menu, Dock, Activity Monitor, or Terminal.

How to Use Split Screen on Mac: Put Two Apps Side by Side

How to Use Split Screen on Mac: Put Two Apps Side by Side

Set up Split View, resize or replace a pane, use Mission Control, and learn when desktop window tiling is a better fit on your Mac.

How to Remove EXIF Data from Photos on macOS

How to Remove EXIF Data from Photos on macOS

Learn how to remove EXIF data from photos on macOS, hide location in Photos, clean exported JPEG copies with ExifTool, and verify the result.

How to Sync Two Folders on a Mac Safely

How to Sync Two Folders on a Mac Safely

Sync two folders on a Mac with SyncTwoFolders, choose a one-way or two-way update, and preview changes before files are replaced or removed.

How to Back Up a Tumblr Blog on a Mac

How to Back Up a Tumblr Blog on a Mac

Back up a Tumblr blog on your Mac with Tumblr’s web export. Download and unpack the ZIP, keep its posts and media safe, and know what the archive leaves out.

How to Use Google Maps on a Mac Desktop

How to Use Google Maps on a Mac Desktop

Use Google Maps on your Mac in Safari or Chrome, find places and routes, switch map layers, and add a Safari web app to your Dock on macOS Sonoma 14 or later.

5 Best Free WAV to MP3 Converters for Windows and macOS

5 Best Free WAV to MP3 Converters for Windows and macOS

Compare five free WAV-to-MP3 converters for Windows and macOS, including online file limits, local batch tools, and practical export settings.