20

Is there a way to get the Bundle ID from Info.plist at runtime? Something like [[UIApplication sharedApplication] bundleIdentifier] would be great.

brian
  • 3,344
  • 2
  • 26
  • 35

2 Answers2

34
[[NSBundle mainBundle] bundleIdentifier]
TheAmateurProgrammer
  • 9,252
  • 8
  • 52
  • 71
brian
  • 3,344
  • 2
  • 26
  • 35
1

Swift 3

Bundle.main.bundleIdentifier
christopher.online
  • 2,614
  • 3
  • 28
  • 52