I have a problem regarding to adding Apple ID to Xcode. So far I have been using an office Apple ID as my Xcode Apple ID. Now they invited me to join as a developer. so using my own Apple ID I can access the provisioning profiles and apps in old account. And now I want to add my own apple id to the xcode and delete that old office Apple id. But I cant delete the old apple id from the xcode. When I archive the project and when try to save the .ipa file, it says cant access the account. That means they have changed the password of old account.
I have already added my private apple id to Xcode but it shows as Admin. The old Apple id shows as Agent. How can I archive my project using my new Apple ID. Please help me
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:
- the full path to the project file
- 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:
- The full path to the archive you just generated. The location for xCode Archives is in xCode preferences, under the Locations tab.
- The full path and file name of the resulting IPA file
- 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!
- Go to keychain
- Set all objects
- Find your ID
- Remove it
- Go to
xcode -> preference -> account
- Now you can remove it
来源:https://stackoverflow.com/questions/27915960/cant-delete-the-old-agent-apple-id-from-xcode