I am trying to add a new APP ID to prepare for App Store submission and got the following error under the bundle ID I provided.
An App ID with Identifier
'com.domainName.AppName'
is not available. Please enter a different string.
What does this mean? I am trying to add a brand new App ID, of course it does not exist.
What am I missing? I do not remember experience the problem last time I create an App ID.
This question is related to
ios
xcode
app-store
provisioning-profile
app-id
For me, I was trying to create an app ID for an Enterprise app. The app ID had "xxx.ios.yyy" in it and it did not like the .ios. bit in the middle. As soon as I removed the ".ios" part I was able to successfully register it. This happened to me twice with two different app IDs of different length, and in each case, removing the ".ios" segment fixed the problem.
In my case it wasn't letting me because I set bundle id in xcode project BEFORE creating online, so I changed temporarily in xcode, created online then changed back to normal in xcode.
When I experienced the "An app with identifier XXX is not available" error in trying to switch on iCloud support in Xcode's Capabilities tab, I found that I had to:
Give my app an explicit custom bundle id,
Register my app manually at the Member Center, explicitly requesting iCloud support entitlements there.
After that, switching on iCloud support in Xcode worked. So, I suggest trying the same thing. Sometimes, things work better when you do them at the Member Center.
Purge or Fix all of the invalid and expired provisioning profiles. Even though they appeared to be unrelated.
We encountered this when we attempted to recompile an app that was previously working fine. Nothing worked until we cleaned up the provisioning profiles.
Then click on "Download All" under the "Provisioning Profiles" area of the Apple Id account for the appropriate team.
Possibly related to XCode 7.3
This may only apply to the latest version of Xcode (7.3 D175), recently release:
Press the
Try Again
Button
After several hours of fiddling with Xcode build settings and starting the Certificate/App ID/Provisioning Profile dance from scratch, I ended up at the same place, same error message, App ID not available.
In frustration, I pressed the Try Again
button thinking it was futile. But it worked.
None of the above answers helped me, but I just found the solution.
For those who couldn't benefit from any of the above answers;
The issue was that I tried to build project with another Team.
I have 2 different teams as you see
I noticed that I did debug before with second team and xCode automatically created an App ID in second team's developer account.
I opened https://developer.apple.com/ for second account and removed auto-created APP ID
Then worked fine
For me the solution was to change the bundle identifier by replacing the period separator to dashes. I changed com.mycompany.appname
to com-mycompany-appname
.
I realize this couldn't have been the cause of the original problem, because Xcode 6 wasn't available then, but I'll leave the answer anyway in case it helps someone.
Xcode 6 now registers your bundle ID for you automatically, so you don't have to. It'll be somewhere in the list on a line starting with "Xcode iOS App ID".
With Xcode 7.3 I started seeing that issue.
Eugene Dubinin's solution did work, however it was causing issues with the same error if you're using App Groups.
It seems Xcode doesn't like at all you create the App IDs manually. I succeeded at fixing the issue by first deleting the manually created App ID on the developer portal. Then I let Xcode 'Fix the issue' by itself. The App ID got created successfully and the problem was solved.
I got solution for this kind of problem by selecting this option at the time of build export.
Regularly I select second option for build export process but after installing Xcode 7.3 when I try to export build at that time I receive above error. After some sort of forum discussion, I conclude that I need to select last option now to export build.
I hope this information become helpful to other members of forum as well.
If you've updated your profiles, and none of the other good answers are working for you, try selecting "Use local signing assets" when it asks you to "select a Development Team to use for provisioning:". I'd made sure everything else was in order, but it still wasn't working. Using local signing assets worked perfectly.
Edit: It looks like Xcode 7.3.1 fixes this issue. "- Fixed an issue that could prevent the export of an ad-hoc build from an archive"
I was having the same issue after the Xcode 7.3 update and nothing worked. The fix is really simple, please follow the answer here, it worked for me: https://stackoverflow.com/a/34346556
I had the exact same issue. My problem stemmed from beginning app development under a free developer account and then switching app development to subscription (paid) developer account. The original free developer account already had registered the bundle identifier that your paid developer account is trying to use.
You can verify that this is the problem by going to Xcode -> Preferences -> Accounts -> and then look under Team. If you see both your free (personal) team and your new paid team both listed then your probably having the same issue I had. The two teams are interfering with each other and you need to remove the free (personal) team now that you want to use your paid developer account.
Unfortunately, the only solution is to call apple development support at 1-800-633-2152 (US & Canada) and have them deactivate the free (personal) account from the app so that your paid developer account can register the bundle identifier.
For me, the problem happened because I first created a new AppID and then created a new app with the bundle identifier of the AppID in iTunes Connect, and then tried to connect my development app with the AppID from within Xcode.
In this case, Xcode assumed that the AppID has already been registered by someone.
To resolve the issue, you first change the bundle identifier in your app (in iTunes Connect's MyApp section) to some temporary values (or if you don't have any, create a dummy AppID such as com.yourcompany.testapp
), delete the AppID in Certificates, Identifiers & Profiles page, and try connecting it from within Xcode, not from within Certificates, Identifiers & Profiles, by pushing the fixing issue button in Xcode.
If nothing else works, which was the case for me, try making a new app id that is longer, more unique, and possibly add some numbers.
Worked for me.
If you encountered this error while making an ad hoc deployment, this is now fixed in the XCode 7.3.1 release (May 3th, 2016) : https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12
Changelog 7.3.1 :
- Git updated to version 2.7.4 to improve security
- Fixed an issue where turning off a capability in the Xcode editor could leave the entitlement enabled in the app bundle
- Fixed an issue that could prevent the export of an ad-hoc build from an archive
- Fixed a crash when importing localizations
I had this problem, too. It turns out that the problem and solution are quite simple. When an Xcode user runs an app on a device using their free personal account, the Bundle ID is registered to the personal account. Then, when the user upgrades to a paid Apple Dev account and tries to create an App ID using that Bundle ID - the backend system thinks that Bundle ID has been taken.
Fill out the form here at this website: https://developer.apple.com/contact/submit/ under the "Certificates, Identifiers, Profilescategory”. I did this and the problem was solved in less than 12 hours. This was Apple’s emailed response: "When you install an app on a device from Xcode using your Personal Team, the Bundle ID is registered to that account. I have deleted the Bundle ID "com.AppVolks.Random-Ruby” so it can now be registered on your paid membership.”
Hope that helps!
In my case, the problem was, that the identifier had too few dots.
com.example.foo
wasn't accepted
com.example.foo.bar
works
This seems to be a bit of a generic message. I'm sure many of the answers are correct. For me it was a mismatch between the entitlements and settings for the app in the member portal. My solution was this:
As of Xcode 8, iOS Team Provision Profile Managed by Xcode are now updated by Xcode automatically and correctly. They are not even listed at the Developer Portal, but generated on-the-flight.
However, the solution proposed below will still work. I've switched to using the automatic provisioning profiles.
Remove INVALID iOS Team Provision Profile Managed by Xcode from Developer Portal and manually create iOS Developer Provision Profile. Download it via Xcode and you should be good to go.
I started to experience this after Xcode 7.3 (7D175).
What I did before the issue:
Tapping "Fix Issue" (the only way, I know to make provision profiles managed by Xcode valid), given the error An App ID with Identifier '<app id>' is not available
.
I have:
Now, I am able to Build & Run app to my devices.
Downgrade to xcode 7.2.1 - it worked for me.
I had a similar issue. I check all settings in Xcode all were proper. When I tried to upload app using Archive it was giving an error
"An App ID with Identifier 'com.myappname.yyy' is not available. Please enter a different string".
Then after I tried to upload app via "Application Loader" and got success!
for me, i had to make sure an app with that bundle id was already created in the itunesconnect portal : /
Nothing wrong with App Id in my case, but fix certificate and provisioning file first, then update to Xcode 7.3.1, clean, archive and submit, it works for me.
com.domainName.AppName
this is the bundle identifier. based on this identifier only once can send push notifications and inapt purchases. so app made this as an unique id for app. So try with a new name as "com.domainName.YourName"
I had Distribution Provisioning for my Apple ID for the App Store only and still gave me that error: An App ID with Identifier '' is not available. Please enter a different string
I recently updated to Xcode 7.3 and probably that caused the issue. So what I did was creating iOS Development Provisioning by selecting all devices that I want to test in iOS Dev. Center (Member Center). Then Opened Xcode -> Preferences and under my account downloaded the newly created Development Provisioning for that App ID. When did that, the error disappeared.
I had the same problem since XCode 7.3. For my case, there was a _ in my AppId name and it didn't work even if the AppID was correct : com.mycompany.appname.
I had to edit the AppId in itunes member center to get this warning.
To resolve this bug, I renamed the AppId, generate a new certificate and new provisionning profiles.
I had same problem and the quick fix is:
Clean and run. That's it.
TL;DR Xcode is very particular about the name you give your App ID in the member center. Having the correct bundle identifier is not enough. You must use the specific format shown below for Xcode to "see" your App ID.
Update: According to @isaacselement in the comments below, this issue has been resolved in Xcode 7.3.1.
@romrom's solution of deleting the App ID and having Xcode create a new one was a clue. Unfortunately it was a nonstarter for me since my App ID was used by a Store app and therefore could not be deleted.
However, I discovered through some experimentation that I could solve the problem by manually editing the exiting App ID. It turns out that Xcode is really picky about the name of the ID, and not just the bundle ID.
For a typical bundle ID such as com.mycompany.appname, the App ID name must be in this format:
XC com mycompany appname
a name in any other format won't be seen by Xcode.
How to check if you're affected / How to Fix
P.S. There are some related problems if you're using Xcode 7.3 in which it won't automatically create proper distribution profiles for you, even if you fix the name as I mentioned above. The solution is to downgrade to 7.2.1 or 7.3 Beta or use a tool like fastlane/sigh.
I had this same issue in Xcode 7.3. To solve it I performed the following:
This is for those who bump into the odd case I did, you CANNOT use the keyword test
in the bundle id.
We were needing to test sharing data through the app group feature and the companion app wasn't developed yet so we simply changed the bundle identifier to test.APP_NAME instead of company.APP_NAME. We set up everything in iTunes Connect and nothing worked right. We then swapped the name to beta.APP_NAME and Xcode was able to manage the app id correctly again.
Normally to fix this issue, verify your provisioning profiles and App Id's have the correct settings, and if your still having trouble to to Xcode -> Preferences -> Accounts -> View Details -> Download All and you should be good.
Hope that helps.
Me also got the same issue.
In my case i already registerd with my free account. We can't delete that app bundle id from our free account.
So i changed bundle id not app name and again i tried it's working.
I just had this problem. This is my configuration:
I've got an iPhone Developer Certificate in a developer account (Apple Store) and an Enterprise account. These 2 certificates have the same name in my keychain: iPhone Developer : firstName lastName
I assume Xcode doesn't know which one to take and pick the wrong one.
I fix it by selecting the good one in Xcode > Build Settings > Code Signing. It was previously set to iOS Developer.
You may have no app with that same ID, but someone else may. The IDs must be unique globally, and not only within your own apps.
Solution for Xcode 7.3
.
Go to
Member Center -> Certificates, Identifiers & Profiles -> Provisioning Profiles -> All
Member Center: https://developer.apple.com/membercenter
Find certificate for your App ID
, it should be invalid, Edit, Select your iOS
Distribution certificate, Generate. Go to:
Xcode -> Preferences -> Accounts -> View Details -> Download all
I had generated the developer profile but not the distribution profile. I did that via the Apple Developer Member Center -> Certificates, Identifiers & Profiles -> Provisioning Profiles.
Next I downloaded these in Xcode via the Preferences->Accounts.
Same issue happened with me, it might be that Xcode automatically selected another team name, its solved by choosing my correct team name. Good luck !
I faced the same problem when i upgraded my Xcode to 7.3 and it showed me the same error in every project. The simplest solution that i found was to just the remove the apple account from Xcode and add it again.
To remove just go to Xcode > Preferences > Select the account and click on - sign.
and to add click on + sign and add the apple ID corresponding to your app.
After you add the account your problem would be solved.. If in case this still doesn't work . Then perform a next step of regenerating the profile (just click edit and then generate ) and then downloading your provisioning profile again and run it. I bet that would work .
Hope this helps. All the best
If not the AppId's business,just try to change the Team in TARGETS/identity to your company's team.
Update to Xcode 7.3.1, they have fixed this bug.
I had the same issue and solved by following steps below:
Go to Xcode Preferences
> Accounts
> Choose your Apple ID account
Tap on View Details
Tap on Download all
and then Done
However it was working fine earlier but I don't know the reason why it stopped suddenly. I have gone through the steps above and found it working properly.
Source: Stackoverflow.com