Info.plist Is Missing in Xcode 13 — Here’s How To Get It Back | by Andrew Zheng | Better Programming


AI Summary Hide AI Generated Summary

Problem: Missing Info.plist in Xcode 13

Xcode 13's new project templates no longer include the Info.plist file by default. This change, while intended as a simplification, limits direct XML code access for tasks such as resolving merge conflicts or using code templates.

Apple's Solution

Apple suggests managing project properties using the target's Info tab. Accessing the Info tab creates a new Info.plist file which has semi-synchronization with the custom settings.

Workaround: Accessing the Underlying Info.plist

This method allows users to directly access and modify the XML source code of Info.plist. The procedure involves navigating to Project → Targets → Info → Custom iOS Target Properties. This generates and gives access to the underlying XML file of Info.plist, enabling more manual control and aiding in version control tasks.

Sign in to unlock more AI features Sign in with Google

Info.plist Is Missing in Xcode 13 — Here’s How To Get It Back

It’s supposed to be a “feature”

Image by the author.

If you’ve created a new SwiftUI app using Xcode 13, you’ll notice that Info.plist is gone. It’s not a bug. According to the Xcode 13 release notes:

“Projects created from several templates no longer require configuration files such as entitlements and Info.plist files. Configure common fields in the target’s Info tab, and build settings in the project editor.”

That’s nice, but there’s a problem. All you get is a GUI, so you can’t see the underlying XML source code. This can be limiting when you’re resolving merge conflicts or when you just want to paste in some template properties.

Let’s discuss our options.

Option 1: Follow Apple’s Recommendation

First, go to:

Project → Targets → Info → Custom iOS Target Properties

…then edit the properties, just like you would’ve back in Info.plist.

The first time, Xcode will automatically generate a new Info.plist file that’s semi-synced with Custom iOS

Was this article displayed correctly? Not happy with what you see?

Tabs Reminder: Tabs piling up in your browser? Set a reminder for them, close them and get notified at the right time.

Try our Chrome extension today!


Share this article with your
friends and colleagues.
Earn points from views and
referrals who sign up.
Learn more

Facebook

Save articles to reading lists
and access them on any device


Share this article with your
friends and colleagues.
Earn points from views and
referrals who sign up.
Learn more

Facebook

Save articles to reading lists
and access them on any device