what is correct format of bundle identifier in iOS?
Asked Answered
B

4

33

I have four bundle identifier

  1. com.company.appname
  2. com.appname
  3. appname
  4. com.company-name.app-name

Please help me to find out correct bundle identifier,
Please tell me which is correct.

Boaster answered 11/3, 2015 at 6:20 Comment(3)
As per my view 3rd is wrong.. others are proper... I prefer first one..Syconium
all other are incorrect format?Boaster
Nope. I said dear... others are proper. I prefer fitst one and first one is standard format.. you can use '-' but is not standard way.Syconium
T
46

All the formats which you have mentioned are correct and can be used as bundle identifier. But the standard format followed is com.company.appname (reverse domain name).

Tuberculin answered 11/3, 2015 at 6:58 Comment(4)
Can we use org as a prefix instead of comKeverne
Yes, you could.Tuberculin
And then Apple comes along and just adds "iCloud" (iCloud.com.company.appname), and completely destroys this beautiful all lower case identifier. (when adding CloudKit, default container name) 🙈Winstead
@Winstead Yeah. Now I'm not sure whether to go lowercase or CamelCase for my app name.Eschew
S
6

The First type is the correct one.It is a standard to use the reverse domain name as the bundle identifier along with app name. For example com.google.gmail,com.fb.messanger

Shem answered 11/3, 2015 at 6:26 Comment(0)
A
4

The Bundle ID can only contain alphanumeric characters, hyphens, and periods. It can't end on a period.

enter image description here

This regexp should be correct: .[\w\.-]+[\w-]

Acrefoot answered 11/4, 2019 at 1:5 Comment(0)
R
0

all you need is device registered at Apple development program, if you have no device registered simply connect your iphone and register it through xcode.

Ratchet answered 17/12, 2020 at 8:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.