Search code examples
iosmacosapp-storemac-app-storecfbundleidentifier

Choose the bundle identifier for an iOS and Mac app


Suppose that I have an app called A.

Bundle Identifiers must be unique across all Mac and iOS apps. This means that if I have the app A on the iOS App Store with the Bundle ID com.mycompany.a, I cannot create an app on the Mac App Store with the same Bundle ID com.mycompany.a.

Ok, said that, what is the best way to distinguish the Bundle IDs?

Some examples I can think of:

  • com.mycompany.a_ios, com.mycompany.a_mac
  • com.mycompany.ios.a, com.mycompany.mac.a

Are there others that come to mind? Which you used?


Solution

  • Rather a request for an opinion than a question I'd say, but com.mycompany.application.platform is what I'd use.

    The reason would be to make it more and more granular towards the end, seeing the platform as a sub component of the actual application.