<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BundleResources",
  "identifier" : "/documentation/BundleResources/Information-Property-List/NSPrincipalClass",
  "metadataVersion" : "0.1.0",
  "role" : "Property List Key",
  "symbol" : {
    "kind" : "Property List Key",
    "modules" : [
      "Bundle Resources"
    ],
    "preciseIdentifier" : "plist:Information_Property_List.NSPrincipalClass"
  },
  "title" : "NSPrincipalClass"
}
-->

# NSPrincipalClass

The name of the bundle’s main executable class.

## Discussion

The system uses the class identified by this key to set the <doc://com.apple.documentation/documentation/Foundation/Bundle/principalClass> property of a bundle when it’s loaded.

Xcode sets the default value of this key to <doc://com.apple.documentation/documentation/AppKit/NSApplication> for macOS apps, and to <doc://com.apple.documentation/documentation/UIKit/UIApplication> for iOS and tvOS apps. For other types of bundles, you must set this key in [The Info.plist File](https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/ProvidingUserAssitAppleHelp/authoring_help/authoring_help_book.html#//apple_ref/doc/uid/TP30000903-CH206-SW22).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)