---
title: NSPrincipalClass
framework: bundleresources
role: symbol
role_heading: Property List Key
path: bundleresources/information-property-list/nsprincipalclass
---

# NSPrincipalClass

The name of the bundle’s main executable class.

## Discussion

Discussion The system uses the class identified by this key to set the principalClass property of a bundle when it’s loaded. Xcode sets the default value of this key to NSApplication for macOS apps, and to UIApplication for iOS and tvOS apps. For other types of bundles, you must set this key in The Info.plist File.

## See Also

### Launch

- [CLKComplicationPrincipalClass](bundleresources/information-property-list/clkcomplicationprincipalclass.md)
- [CFBundleExecutable](bundleresources/information-property-list/cfbundleexecutable.md)
- [LSEnvironment](bundleresources/information-property-list/lsenvironment.md)
- [UIApplicationShortcutItems](bundleresources/information-property-list/uiapplicationshortcutitems.md)
