Where did the plist go?

If you’ve recently fired up XCode 13 and created a new SwiftUI app, you’ll soon realize that Info.plist has gone missing. For some swift veterans, that might bring up flashbacks of the missing AppDelegate that surfaced in a prior XCode release.

No wor…


This content originally appeared on DEV Community and was authored by Dan Zeitman

If you’ve recently fired up XCode 13 and created a new SwiftUI app, you’ll soon realize that Info.plist has gone missing. For some swift veterans, that might bring up flashbacks of the missing AppDelegate that surfaced in a prior XCode release.

No worries, it's a feature 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. These files are added to the project when additional fields are used.

While it's still possible to include the plist, moving forward, most Swift developers will find that it's much easier to work with. There is a new info section within the build settings; So just select the project's info tab and add the appropriate keys as you had previously had done with the plist.

Image description

The info section and plist is generally used to provision additonal capibility for your application. Most common usage is setting the privacy messages a user sees when accessing the camera or microphone for the first time. So when you're building your next Dolby.io Communications or Streaming app with Swift, you'll need remember to set the Camera and Microphone Privacy keys in the info section of the build settings, exactly the same way you've been doing it with the plist for years.

It's important to be crystal clear about your intended use of those features, and failing to do so may end up as delays or rejections of your app during Apple's review process.

Once again these changes are part of Apple's Less is More design philosophy makes the developer experince better with fewer files to manage.

With each new release of Xcode, It's easy to forget that the tools also evolve, and it's highly recommended and best practice to review the latest release notes for such nuggets of information.


This content originally appeared on DEV Community and was authored by Dan Zeitman


Print Share Comment Cite Upload Translate Updates
APA

Dan Zeitman | Sciencx (2022-07-13T19:04:47+00:00) Where did the plist go?. Retrieved from https://www.scien.cx/2022/07/13/where-did-the-plist-go/

MLA
" » Where did the plist go?." Dan Zeitman | Sciencx - Wednesday July 13, 2022, https://www.scien.cx/2022/07/13/where-did-the-plist-go/
HARVARD
Dan Zeitman | Sciencx Wednesday July 13, 2022 » Where did the plist go?., viewed ,<https://www.scien.cx/2022/07/13/where-did-the-plist-go/>
VANCOUVER
Dan Zeitman | Sciencx - » Where did the plist go?. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/07/13/where-did-the-plist-go/
CHICAGO
" » Where did the plist go?." Dan Zeitman | Sciencx - Accessed . https://www.scien.cx/2022/07/13/where-did-the-plist-go/
IEEE
" » Where did the plist go?." Dan Zeitman | Sciencx [Online]. Available: https://www.scien.cx/2022/07/13/where-did-the-plist-go/. [Accessed: ]
rf:citation
» Where did the plist go? | Dan Zeitman | Sciencx | https://www.scien.cx/2022/07/13/where-did-the-plist-go/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.