• Home
  • Troubleshoot
  • #Example
    • C
    • C++
    • Python
    • R-Programming
  • DSA
  • Quiz
  • Tutorial Videos
  • Home
  • Troubleshoot
  • #Example
    • C
    • C++
    • Python
    • R-Programming
  • DSA
  • Quiz
  • Tutorial Videos
  • #Deals
  • #News
  • #WiKi
  • #APPS
  • #Events
    • #WWDC
    • #I/O
    • #Ignite
  • #Let’s Talk

MyCodeTips mycodetips-newlogocopy1

  • Home
  • Troubleshoot
  • #Example
    • C
    • C++
    • Python
    • R-Programming
  • DSA
  • Quiz
  • Tutorial Videos
IOS, XCode

What is the Property List or plist in IOS .

For me and Every IOS App developer like me, info.plist or property list is a well-known file for them. it’s not just a file but a bundle of instructions wrapped in a file.

What is plist file

Property List file is a structured text file that contains essential configuration information for a bundled executable. The file itself is typically encoded and the contents are structured using XML. The root XML node is a dictionary, whose contents are a set of keys and values describing different aspects of the bundle. The system uses these keys and values to obtain information about your app and how it is configured. As a result, all bundled executables (plug-ins, frameworks, and apps) are expected to have an information property list file.

root-plist

Creating or Edit an Information Property List File

When we create a new project on Xcode this file is bundled with the project ( means this file is automatically generated with other basic files )

The simplest way to create an information property list file is to let Xcode create it for you. Each new bundle-based project that you create in Xcode comes with a file named –Info.plist, where is the name of the project. At build time, this file is used to generate the Info.plist file that is then included in the resulting bundle.

CFBundleDevelopmentRegion : The default language and region for the bundle, as a language ID.

CFBundleExecutable : Name of the bundle’s executable file.

CFBundleIdentifier : An identifier string that specifies the app type of the bundle.

CFBundleInfoDictionaryVersion : Version information for the Info.plist format.

CFBundleName : The short name of the bundle.

CFBundlePackageType : The four-letter code identifying the bundle type.

CFBundleShortVersionString : The release-version-number string for the bundle.

CFBundleVersion : The build-version-number string for the bundle.

LSRequiresIPhoneOS : A Boolean value indicating whether the app must run in iOS.

UIApplicationSceneManifest : The information about the app's scene-based life-cycle support.

UILaunchStoryboardName : The filename of the storyboard from which to generate the app’s launch image.

UIMainStoryboardFile : The name of the app’s main storyboard file.

UIRequiredDeviceCapabilities : The device-related features that your app requires to run.

UISupportedInterfaceOrientations : The interface orientations supported by your app.

root-plist-xml

Custom Keys

IOS and macOS ignore custom keys you include in an Info.plist file. If you want to include app-specific configuration information in your Info.plist file, you can do so freely as long as your key names do not conflict with the ones Apple uses. When defining custom key names, prefix them with a unique prefix, such as your app’s bundle ID or your company’s domain name, to prevent conflicts.

Happy Coding 🙂

  • Click to share on Reddit (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
Written by Ranjan - 536 Views
Tags | IOS, IOS Features, Tips & Tricks, Xcode
AUTHOR
Ranjan

I m Ranjan and Sharing my years of experience in Software Development. Love to code in Mobile apps (IOS, Android, Power Apps, Xamarin, Flutter), Machine Learning ( Beginner ), Dot Net, Databases ( SQL Server, MySql, SQLite), WordPress, Cloud Computing ( AWS, Azure, Google, MongoDB) and many more as required on project-specific. Besides this love to travel and cook.

You Might Also Like

mycodetips-newlogo2

Tips for Converting UIColor object to NSData

March 10, 2014
iOS Logo

Tips to consume .net webservice in IOS applications

March 5, 2014
mycodetips-newlogo2

IOS -7.1 Features

March 12, 2014
Next Post
Previous Post

Subscribe for updates

Join 6,916 other subscribers

whiteboard

Whiteboard(PRO)

whiteboard

Whiteboard(lite)

alphabets

Kids Alphabet

techlynk

Techlynk

techbyte

Do2Day

techbyte

Techbyte

Latest Posts

  • YT-Featured-Algorithm
    What is Algorithm?
  • Frameworks of IOS
    Frameworks of IOS – Part ( I )
  • NSFileManager or NSPathUtilities
    NSFileManager or NSPathUtilities in Objective-C
  • Passing data between view controllers in Objective-C
    Passing data between view controllers in Objective-C
  • structures-classes-enum
    Structures and Classes in swift !
  • control-system-swift
    Control Flow in Swift
  • swift-concurrency-await
    Concurrency in Swift
  • time-complexity-dsa
    The Term Time Complexity in DSA
  • objective-c-datatypes1
    Objective-C Data Types
  • Convert-jpeg-word
    Convert JPG to Word – Tips You Should Try!

Quick Links

  • #about
  • #myapps
  • #contact
  • #privacy

Other Websites

  • #myQuestions
  • #myBhojanalaya
  • #gadgetFacts
  • #ifscCodesDB

Tag Cloud

Algorithm Android Android Studio API APP Programming Apps blogging Browser Config CSS DATABASE dsa ecommerce error Features Google IO HTML HTML5 IDE installation Interview Questions IOS iPhone javascript Mac objective-c OneDrive OS Placeholder Programming quicktips SDK SEO Settings SMO SQL swift swiftUI Teams Tips & Tricks Tools UI Web Wordpress Xcode

©mycodetips.com