How to find info.plist file in Xcode 13 and Newer in SwiftUI project

I generally don’t write tutorials other than coding. But this is an issue that must be talked about.

In this tutorial, I am going to show you how to find the info.plist file in Xcode 13 as well as newer versions like 14.

In previous versions, once we were creating a new project, Xcode was creating all the files automatically.

Now in the newer versions, Xcode is doing the same, but the difference is that a few files are missing now. For example SceneDelegate.swift and info.plist.

You can get these files in UIKit project but not in SwiftUI project.

How to locate or find the info.plist in Xcode

Just follow these steps:

  1. Open your project in Xcode.
  2. In the project navigator click on the App name (Root App name)
  3. Click on Targets.
  4. Now click on the info from the options available in the top bar.
  5. Now add a new row by clicking on any + symbol.
  6. It will add the info.plist file in your project files section.

Now I know it’s quite difficult to follow these steps with text so I have took screenshots of each step as well as a video for you.

First step:

Click on App name.

locate info.plist in Xcode 13 and Xcode 14

 

Second step:

Click on Targets.

info.plist targets

 

Third step:

Click on Info.

info.plist SwiftUI

Final step:

Make any kind of changes or add a new row in that info dictionary properties.

I have added a new row as you can see below: (You don’t have to choose from the given dropdown list, you can write anything as per your requirement)

info.plist dictionary add row SwiftUI
You can also check the full video of I did this from here:

 

Now you see I get the info.plist here:

info.plist added in SwiftUI project

You can just right-click on it and open this file as a source code also in Xcode.

Leave a Reply

Your email address will not be published. Required fields are marked *