简体   繁体   English

无法从Xcode中删除旧代理Apple ID

[英]Can't delete the old agent Apple ID from Xcode

I have a problem regarding to adding Apple ID to Xcode. 我有关于将Apple ID添加到Xcode的问题。 So far I have been using an office Apple ID as my Xcode Apple ID. 到目前为止,我一直使用办公室Apple ID作为我的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. 所以使用我自己的Apple ID,我可以访问旧帐户中的配置文件和应用程序。 And now I want to add my own apple id to the xcode and delete that old office Apple id. 现在我想将自己的苹果ID添加到xcode并删除旧办公室的Apple ID。 But I cant delete the old apple id from the xcode. 但是我无法从xcode中删除旧的apple id。 When I archive the project and when try to save the .ipa file, it says cant access the account. 当我存档项目并尝试保存.ipa文件时,它说无法访问该帐户。 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. 我已将我的私有苹果ID添加到Xcode,但它显示为Admin。 The old Apple id shows as Agent. 旧的Apple ID显示为Agent。 How can I archive my project using my new Apple ID. 如何使用我的新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. 如果在你从钥匙串中删除它后仍然下载(如果Apple修复了这个问题,可能不会再发生这种情况),那么在调用Apple之前,你可以尝试一个(最后?)度假村。 I would try to request a certificate, using the Certificate Assistant in your Keychain Access application. 我会尝试使用您的Keychain Access应用程序中的Certificate Assistant来申请证书。 In case you aren't familiar, the Certificate Assistant is under the Keychain Access menu. 如果您不熟悉,证书助理位于Keychain Access菜单下。 The steps are pretty straight forward. 这些步骤非常简单。

As a different approach you could also try using the xcodebuild command on the command line. 作为一种不同的方法,您还可以尝试在命令行上使用xcodebuild命令。 This sometimes works where xCode fails, in cases where you are having trouble with managing your IDs or adding accounts within xCode. 如果您在管理ID或在xCode中添加帐户时遇到问题,这有时适用于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. 您用于存档的Scheme的Scheme名称,因为它出现在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] xcodebuild archive -project [引号中的完整路径] -scheme [引号中的scheme的名称]

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. xCode Archives的位置位于xCode首选项的“位置”选项卡下。
  2. The full path and file name of the resulting IPA file 生成的IPA文件的完整路径和文件名
  3. The name of the provisioning profile, as it appears in xCode, eg the name you gave it when you set it up in the Developer Portal. 配置文件的名称,如xCode中所示,例如您在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] xcodebuild -exportArchive -archivePath [引号中的完整路径] -exportPath [引号中的完整路径,没有文件扩展名] -exportFormat [通常是ipa,不需要引号] -exportProvisioningProfile [配置文件名称,因为它出现在xCode中,引号中]

Let me know if this helps! 如果这有帮助,请告诉我!

  1. Go to keychain 去钥匙串
  2. Set all objects 设置所有对象
  3. Find your ID 找到您的ID
  4. Remove it 去掉它
  5. Go to xcode -> preference -> account 转到xcode -> preference -> account
  6. Now you can remove it 现在你可以删除它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM