An App ID with Identifier 'com.companyname.appname' is not available. Please enter a different string

孤街醉人 提交于 2019-12-11 06:40:41

问题


I am trying to upload my IOS app to TestFlight for beta testing. On XCode, my application's bundle ID is com.companyname.appname. When i try to create a distribution provisioning profile, i am told to create an app ID.

When i try to register an IOS App ID on the developer portal, i enter appname under App ID Description and com.companyname.appname under Bundle ID. I get the error message

There were errors in the data supplied. Please correct and re-submit.
An App ID with Identifier 'com.companyname.appname' is not available. 
Please enter a different string.

I currently have no other app with bundle ID com.companyname.appname. When i change the bundle ID to some other string like com.companyname.io, it works.

Why doesn't the bundle name com.companyname.appname work?

Should i go ahead and use a different bundle id from what is on XCode?

Am i even going about this right?


回答1:


Are you using com.companyname.appname in your question as a placeholder for the real string you've entered in the portal, or that's really what you're using?

Bundle ID's need to be globally unique. Not just unique to you. So someone else is likely using the same com.companyname.appname as you've used.

You should be using a Bundle ID that's based on your domain name (in reverse order). For example, if your domain name is someguyfortune.com, and your app is called MyAwesomeApp, then you should use a Bundle ID of com.someguyfortune.MyAwesomeApp. Case matters. I personally prefer using all lower case letters, but Xcode will use uppercase letters by default and they work fine.

Using this reverse domain name style improves the odds that no one else will be using the same Bundle ID.




回答2:


It most likely means there is already a bundle identifier with the same value. Bundle identifiers must be unique.



来源:https://stackoverflow.com/questions/48350984/an-app-id-with-identifier-com-companyname-appname-is-not-available-please-ent

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