How to change the previously selected ios developer team - ios

ı use (ionic) capacitor , when i first tested on xcode i selected the team 'x' account and ran it(There is no problem).Then i buy for developer account for 'y' account , then i select team *'y' after select new team ı got 2 errors
Errors :
1 : Failed to register bundle identifier
The app identifier "com.Appname" cannot be registered to your development team because it is not available. Change your bundle identifier to a unique string to try again.
2:No profiles for 'com.Appname' were found
Xcode couldn't find any iOS App Development provisioning profiles matching 'com.Appname'.
I dont want to change Bundle Identifier.I've been searching for 2 days and couldn't find a solution.

I've faced a similar problem but I'm not sure if it's actually the same.
First thing I recommend to do is go to settings inside the XCode app and make sure you are logged into XCode with your user (or the user inside the team you want to select).
The problem you are facing says that there are no Bundles with that name, so probably you should remove the actual identifier and try to register a new one with exactly the same name.
Take a look on this topics, maybe they help you:
Xcode - Change Company Name and Username
https://developer.apple.com/documentation/appstoreconnectapi/bundle_ids

Related

The app ID cannot be registered to your development team

I am trying to deploy an iOS app to a test device with Xcode 9.1. but I get the following error:
The app ID "com.myDomain.myApp" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.
I have 2 Apple IDs registered in Xcode and I made the mistake of choosing "Automatically manage signing" with the wrong development team, the one associated to the wrong Apple Id. Now I want to change it but I don't know how.
This is what the signing section of the target looks like for the development team I chose by mistake:
This is what the signing section of the target looks like for the development team I would like to use instead:
I have gone to the Apple Developer portal and couldn't find the app under App IDs, so I don't know how I can remove it to start from scratch. I have removed the signing certificate from the local keychain but that is not enough.
Note that I still would like to use "Automatically manage signing" and I would still like to keep the bundle identifier.
I had to reuse the Bundle Identifier, because we were replacing an old app. I spent three hours trying everything I could find on the internet.
In the end I changed the bundle identifier, pressed all the buttons, then changed it back to the original bundle identifier and everything worked.
This is not the first time that I spent hours wasting in Xcode/ iOS Dev while in the end I just needed to do some voodoo ritual.
Change the app Bundle Identifier and make sure its unique.
For example: com.companyname.appname to com.companyname.appname123
Here is what worked in my case (I needed to keep the same bundle ID as the app exists on the AppStore, clearing everything and changing the bundle ID to something different, then back to original did not work).
Selecting 'Debug' in signing and capabilities for the target, and set the correct team. For some reason the selected team was the old one there even tho it was updated in 'all'
Change bundle identifier to all lowercase.

Xcode Error: "The app ID cannot be registered to your development team."

We are porting an Android app to iOS for a client. They have added our account to their iTunes Connect account and created an app entry. We developed the app using the bundle ID they specified.
But now, when the app is ready for testing, we can't create a provisioning profile in Xcode. It is set to Automatic signing and this error is shown:
Failed to create provisioning profile.
The app ID "<bundle-id>" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.
Our account is added as an App Manager in their iTunes Connect account, but still we can't take output with this ID. This error is not shown if we change the bundle ID in Xcode.
Meet same Issue on one mac, but ok on another mac.
I'm sure bundle ID is fine and unique.
I know it is provisioning profile issue, so
Try refreshing the provisioning profile on your Local computer.
Then It Works!
cd ~/Library/MobileDevice/Provisioning\ Profiles
rm *
Xcode > Preferences... > Accounts > click your Account and Team name > click Download Manual Profiles
Run app again
Go to Build Settings tab, and then change the Product Bundle Identifier to another name. It works in mine.
You have to rename Organization Identifier on Bundle Identifier on settings tab.
Only by renaming the Organization Identifier error will remove.
I had this same issue as OP and the problem was that I was invited only on appstoreconnect and not on developer.apple.com. After being invited as a member on developer.apple.com and going into the preferences in XCode, I got a new option to sign as a member of the organization. Setting signing team as member of organization in project settings fixed the issue. After that creating the provisioning profile was successful using automatic signage management.
This happened to me, even though I had already registered the Bundle Id with my account. It turns out that the capitalisation differed, so I had to change the bundle id in Xcode to lowercase, and it all worked. Hope that helps someone else :)
Changing Bundle Identifier worked for me.
Go to Signing & Capabilities tab
Change my Bundle Identifier. "MyApp" > "MyCompanyName.MyApp"
Enter and wait a seconds for generating Signing Certificate
If it still doesn't work, try again with these steps before:
Remove your Provisioning Profiles: cd /Users/my_username/Library/MobileDevice/Provisioning Profiles && rm * (in my case)
Clearn your project
...
If this persists even after clearing provisioning profile and re-downloading them, then it might be due to the bundle ID already registered in Apple's MDM push certificate.
None of the above answers worked for me, and as said in the original question I had also to keep the same bundle identifier since the app was already published in the store by the client.
The solution for me was to ask the client to change my access from App Manager to Admin, so that I had "Access to Certificates, Identifiers & Profiles.", you can check if it is the case in the App Store Connect => Users and Access => and then click on your profile (be sure to choose the right team if you belong to multiple).
Once you are admin go back to Xcode and in the signing tab select 'Automatically manage signing', then in Team dropdown you should be able to select the right team and the signature will work.
My problem was I was modifying the settings for the wrong version of my app.
I had "Debug" selected instead of "Release", so my bundle identifier was not accurate when it came time to Archive.
error message
The app identifier "my.bundle.id" cannot be registered to your development team because it is not available. Change your bundle identifier to a unique string to try again.
try this
Apple developer > Account > Certificates, Identifiers & Profiles > Identifiers
I encountered the same problem when I was trying to compile a sample project provided by Apple. In the end I figured out that apparently they pre-compiled the sample code before shipping them to developers, so the binary had their signature.
The way to solve it is simple, just delete all the built binaries and re-compile using your own bundle identifier and you should be fine.
Just go to the menu bar, click on [Product] -> [Clean Build Folder] to delete all compiled binaries
Clean Build Folder
I had the issue with different development teams. I just checked the schema signings and picked the correct development team for the schemas that I needed:
I delete the Bundle identifier in the https://developer.apple.com/account/resources/identifiers/list, then it works.
IF you are working with different build configs then check in Signing & Capabilities Tab are you using Correct Bundle Identifier.
For Xcode v12 and above
Open the .xcworkspace file using Xcode
Then go directly to the General section, you'll see Bundler Identifier
Then change the name in the bundler identifier
for example com.myapp-dev.app should be changed to com.myapp.app.
This worked for me.
I was able to get the original bundle identifier to work on my paid team membership account (after having it assigned to my personal team) by revoking the personal team signing certificate that was assigned to the same account id.
On the Apple Developer website sign in with the paid account it, go to Certificates, IDs & Profiles.
Click the personal team certificate.
Click the Revoke button.
Go back to XCode and try signing again. A new certificate will be generated that should work with the bundle id.
This won't work if you still need the certificate for other apps.
If none of the above solutions work, you may want to check your folder names. I had another folder, within a separate parent folder but sharing an ancestor directory, with the same name as my project folder. Renaming the other folder to something else resolved the issue. If I had to guess, Xcode was looking for the project in the parent directory, found the alternate folder with the same name and got confused...
Due to Security issue my client do not want to share the personal credentials. He just add my apple id in developer.apple.com
After that I create the certificate from key chain and add it into apple developer Account.
My client also add the bundle identifier and send it to me the latest certificate
Now you need to add Team account
Note: You must add team account not your apple id account
In my case i got 2 ids one of mine muhammadusman17....#gmail.com and the other one is "CHT Team" i just select the CHT Team then its working perfectly
Remove your account from xcode and sign in again:
Xcode -> Preferences -> 'Acount' Tab
Choose your account and tap '-' in the bottom left corner
Tap '+' and sign in to your account again
Archive
As per shown in the picture go to runner and then click on release set your team correctly it will solve your issue thanks
I know it sounds incredible stupid and unbelievable, but what I did to fix it - after 2 hours, was changing my bundle identifier to all lowercase and appending "123" at the end.
This really solved the issue. I don't know why, as I am not a xcode developer.
The only thing that mattered was getting it running on a physical device.
What worked for me was to simply just delete the identifier from the previous developement team on the page Certificates, Identifiers & Profiles.
Solved by Just --> bundle identifier to all lowercase
check in apple Developer & same use in Xcode project
Issue will be solved 100%
Changing the bundle identifier to all lowercase fixed the problem for me
At the center top of your XCODE screen, change your device.
For example: Apple Pie>iPad Pro (12.9-inch)(5th generation)
----------------------(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^)
^change this to your device ^

Cannot create an App ID with matching Bundle ID in Xcode project for first release using Xcode 8.0

I am trying to create an App ID for my first release. I have a new company developer account.
I get the error message 'An App ID with Identifier '' is not available. Please enter a different string' when trying to create the App ID.
This happens when:
I type the name of my app in the App ID Description field and I type the matching Bundle ID from my Xcode project (com.MyCompany.MyProductName) in the App ID Suffix field but I get the error and cannot continue.
However, If I type in, say, 'com.MyCompany.MyProductNameVersion1', which is different from the Bundle ID in my Xcode project, then I don't get the error and am able to continue??
To my knowledge, I need to enter the same Bundle ID as in my Xcode project but its not working as advised.
Been stuck on this for a few days, reading and trying all I possibly can, I cannot find a solution and cannot proceed.
Any help is appreciated
UPDATE: In the Accounts section of Xcode > Preferences, I have two entries under 'Team' : the first is my name and (Personal Team) and under 'Role' it says 'User'... the second is my company name and under 'Role' it says 'Agent'.. I also thought this screenshot may be useful. It shows the signing section of the General tab when the Team field is set to my company name:
I managed to get this sorted. #Beninho85 pointed me in the right direction but the info in this thread was the answer I needed: How to manage Personal Team info on Apple Developer website?
I had a two teams in my developer account. One was a previous Personal Team before I joined Apple Developer as a 'company'. This Personal Team had created App ID's for development provisioning profiles which were conflicting with identically named App ID's I wanted to create for distribution profiles using my company name. Identically named App ID's cannot be generated within the portal. Only Apple can delete personal Team accounts already registered with them. I had them delete the personal team and App ID's.
You have the answer in your question.
The bundleId must be unique for each application. So if you created this bundleId on another developer account, you can't use it anymore. Delete the previous one or create a new one.
If you're allowing Xcode to "Automatically" manage signing, and you don't see your App ID on the Certificates, Identifiers & Profiles web portal, try enabling any capability (i.e. the Siri capability) which will force Xcode to regenerate a provisioning profile (and register the App ID with iTC).
Verify that a new provisioning profile has been created by going to Targets > [Target Name] > General. Next to Provisioning Profile, tap the information button and verify that the Created date is today. Once you see your App ID registered in the portal, you can disable the previously enabled capability.

An App ID with identifier '--' is not available. please enter a different string

My certificate has expired, I created a new one using XCODE. Ever since that, When I tried to install my application on my development phone I see No matching provisioning profiles found error. when I hit fix issue button right below the error. It is giving me An App ID with identifier '--' is not available, please enter a different string. It looks like I am conflicting with my own name I created for this application.
would deleting my app ID from https://developer.apple.com/account/ios/identifier/bundle help? or Am I missing a simple step before I take that route? Thank you in advance.
In Xcode, open preferences (Xcode > Preferences)
Select your account
Click on view details
Delete all provision profiles for that app
Restart Xcode
Download them again and run your application
Follow theses steps and it should work for you.

Xamarin iOS free provisioning fails for existing project

I have recently been given the task of taking over an existing iOS/Android app written with Xamarin.
When I try to set up Free Provisioning as described in here in the Xamarin guides, I run into a roadblock:
I have successfully followed these steps:
Created an Apple ID
Went to XCode -> Preferences and added my account
Created the signing identity as described at step 4 of the guide
Plugged in my dev iPhone (freshly updated)
Under "General Options" I set the Bundle Identifier to the exact string that is set in the iOS project part of the Xamarin solution
Selected myself from the team dropdown
Pressed "Fix Issues" as per guide, and this is where the procedure fails
The error I get is "An App ID with identifier 'xx.xx.xxxx.xxx.xxxx.xxx.xxxxxxx' is not available. Please enter a different string.
If I try and add a anything to the identifier, it works (so it's not the format of the identifier).
The error message also makes sense to me as the identifier is, indeed, globally taken since the app has already been published.
My question here is:
How can I get my project deployed to my dev iPhone?
You can choose : "com.companyname.yourapp1" or "com.companyname.yourapp2".
Make sure this ID is same like your bundle identifier in "Info.plist" in xamarin.ios project
As I have already posted as a comment:
A possible workaround could be to change the BundleIdentifier for the time you are working on a specific task. This should work but it brings the disadvantages of changing the identifier every time and if you do not watch out to check in the false identifier by accident.

Resources