Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does bundle identifier mean in an iOS project?

Tags:

ios

When I use command line tool template it has a bundle identifier inside the wizard. What does bundle identifier mean? Is this similar to namespace?

like image 585
Adam Lee Avatar asked Jul 05 '12 15:07

Adam Lee


People also ask

What is bundle identifier used for?

The bundle identifier is the unique string that identifies your application to the system. This compares to the display name (namespaces are usually prefixes in frameworks), which is what iOS uses to show the name of your app on the springboard.

What should my bundle identifier be?

The ending should be some variant of your app's name for readability. (It can actually be whatever you want, as long as all of your apps have different ones.)

What is bundle ID in iOS Swift?

A bundle ID or bundle identifier uniquely identifies an application in Apple's ecosystem. This means that no two applications can have the same bundle identifier. To avoid conflicts, Apple encourages developers to use reverse domain name notation for choosing an application's bundle identifier.

What is the difference between app ID and bundle ID in iOS?

An App ID is a string used to identify one or more apps from a single development team. The string consists of two parts, the Team ID and the bundle ID separated by a period (.). The Team ID is supplied by Apple, while the bundle ID is supplied by the developer.


1 Answers

According to Apple docs:

A bundle identifier lets iOS and macOS recognize any updates to your app. Your bundle ID must be registered with Apple and be unique to your app. Bundle IDs are app-type specific (either iOS or macOS). The same bundle ID cannot be used for both iOS and macOS apps.

Edit

Since Xcode 11.4, you can use same bundle identifier for both iOS and macOS app if you want to support universal purchase feature.

From Release Note

Xcode 11.4 supports building and distributing macOS apps as a universal purchase. To distribute your macOS app as a universal purchase, specify the same bundle identifier as your iOS app in the Xcode template assistant when creating a new project. If you have an existing project, edit its bundle identifier in the Project Editor.

like image 132
FredericK Avatar answered Sep 23 '22 12:09

FredericK