what is correct format of bundle identifier in iOS?

最后都变了- 提交于 2019-11-27 03:55:29

问题


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.


回答1:


All the formats which you have mentioned are correct. But the standard format as expected by apple is com.company.appname.




回答2:


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




回答3:


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

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



来源:https://stackoverflow.com/questions/28979874/what-is-correct-format-of-bundle-identifier-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!