Unable to Remove Old Apple ID Agent from Xcode

I have a problem adding an Apple ID to Xcode. So far I have used the Apple ID Apple as my Xcode Apple ID. Now they invited me to join the developer. therefore, using my own Apple ID, I can access the profiles and training applications in my old account. And now I want to add my own Apple ID in xcode and delete the old Apple Office ID. But I cannot remove the old apple id from xcode. When I archive the project and when I try to save the .ipa file, it says that it cannot access the account. This means that they changed the password of the old account.

I have already added my own apple identifier in Xcode, but it displays as Admin. The old Apple ID appears as an agent. How can I archive my project using my new Apple ID. Please help me

+1
source share
2 answers

If it is still loaded after you removed it from your keychain (which might not happen anymore if Apple fixed this problem), then there is one (last?) Resort that you could try before calling Apple I would try to request a certificate using the certificate helper in Keychain Access app. If you are not familiar, the certificate assistant is located in the "Keychain Access" menu. The steps are pretty straight forward.

As another approach, you can also try using the xcodebuild command on the command line. Sometimes this works when xCode fails, in cases where you have problems managing your identifiers or adding accounts to xCode.

You need the following information:

  • full path to the project file
  • The schema name for the schema that you use for archiving, as shown in xCode. If you do not have a scheme configured for archiving, you need to do this for this purpose.

Then you can create an archive:
xcodebuild archive -project [full path in quotation marks] -schema [schema name in quotation marks]

Now that it is archived, you need to export it. For this step, you need the following information:

  • The full path to the archive you just created. The place for xCode archives is located in the xCode settings on the "Locations" tab.
  • Full path and file name of the IPA result file
  • The name of the grant profile, as shown in xCode, for example. the name that you specified when setting up the developer portal.

Then you can export:
xcodebuild -exportArchive -archivePath [full path in quotes] -exportPath [full path in quotes without file extension] -exportFormat [usually ipa, no need for quotes] -exportProvisioningProfile [profile name as it appears in xCode, in quotes]

Let me know if this helps!

+2
source
  • Go to keychain
  • Set all objects
  • Find your ID
  • Delete it
  • Go to xcode -> preference -> account
  • Now you can delete it
+1
source

All Articles