Can't delete the old agent Apple ID from Xcode

我是研究僧i 提交于 2019-12-06 16:46:54

If it is still downloaded after you delete it from your keychain (which might not be happening anymore if Apple has fixed that issue), then there is one (last?) resort you could try, before calling Apple. I would try to request a certificate, using the Certificate Assistant in your Keychain Access application. In case you aren't familiar, the Certificate Assistant is under the Keychain Access menu. The steps are pretty straight forward.

As a different approach you could also try using the xcodebuild command on the command line. This sometimes works where xCode fails, in cases where you are having trouble with managing your IDs or adding accounts within xCode.

You need the following information:

  1. the full path to the project file
  2. the Scheme name for the Scheme that you use for archiving, as it appears in xCode. If you don't have a scheme set up for archiving, you need to do so for this purpose.

Then you can generate the archive:
xcodebuild archive -project [full path in quotes] -scheme [name of scheme in quotes]

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

  1. The full path to the archive you just generated. The location for xCode Archives is in xCode preferences, under the Locations tab.
  2. The full path and file name of the resulting IPA file
  3. The name of the provisioning profile, as it appears in xCode, e.g. the name you gave it when you set it up in the Developer Portal.

Then you can do the export:
xcodebuild -exportArchive -archivePath [full path in quotes] -exportPath [full path in quotes, without the 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!

Vic_Tor
  1. Go to keychain
  2. Set all objects
  3. Find your ID
  4. Remove it
  5. Go to xcode -> preference -> account
  6. Now you can remove it
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!