Skip to content

NSBundle: bundleIdentifier property ​

The bundleIdentifier property is the bundle identifier.

Value ​

A string or null, such as com.example.shop.

Examples ​

js
console.log(NSBundle.mainBundle.bundleIdentifier);

Result: Prints the app's bundle identifier.

Corresponding iOS API ​

NSBundle.bundleIdentifier.

See also ​