如何使用新的 Apple ID 更新 Xcode?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11655116/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 04:30:32  来源:igfitidea点击:

How to update Xcode with a new Apple ID?

xcodeapple-id

提问by aneuryzm

I've recently changed apple ID and I've downloaded xCode on mac with another apple ID.

我最近更改了 Apple ID,并且我在 mac 上使用了另一个 Apple ID 下载了 xCode。

Not the mac store informs me there is a new version for xCode but I need to insert password of the older Apple ID, and I can't just use the new one. It seems the app is associated with the old apple ID.

不是 mac 商店通知我 xCode 有新版本,但我需要插入旧 Apple ID 的密码,我不能只使用新的。该应用程序似乎与旧的 Apple ID 相关联。

I can't even download a new xCode using the new apple id, because it only gives me the option to update it with the old Apple ID.

我什至无法使用新的 Apple ID 下载新的 xCode,因为它只能让我选择使用旧的 Apple ID 更新它。

采纳答案by Nitin Alabur

Assuming you have the issue where you are getting the error

假设您遇到出现错误的问题

To update this application, sign in to the account you used to purchase it.

要更新此应用程序,请登录您用于购买它的帐户。

on the App Store app, go to Store --> Sign Out

在 App Store 应用程序上,转到商店 --> 注销

and then do the stuff suggested here

然后做这里建议的事情

check this fix from Beartech at https://discussions.apple.com/thread/2794280?start=15&tstart=0

https://discussions.apple.com/thread/2794280?start=15&tstart=0从 Beartech 查看此修复程序

The App Store used Spotlight in some way. My fix was to add the entire HD to the "Privacy" tab in the Spotlight System prefs pane, close the prefs and wait 30 seconds, re-open and remove your HD from the Privacy tab. Spolight begins reindexing. Re-opened the App Store and problem was fixed! Posting this here for others who might search later on. Also filed a bug report with Apple.

App Store 以某种方式使用了 Spotlight。我的解决方法是将整个 HD 添加到 Spotlight System 首选项窗格中的“隐私”选项卡,关闭首选项并等待 30 秒,重新打开并从“隐私”选项卡中删除您的 HD。Spolight 开始重新索引。重新打开 App Store,问题已解决!将其发布在这里供以后可能搜索的其他人使用。还向 Apple 提交了错误报告。

hope this fixes the issue for you!

希望这可以为您解决问题!

edit: I think this is a different issue compared to what I had. Your only option is probbaly to delete xcode, and download with your new Apple ID

编辑:我认为与我所遇到的问题相比,这是一个不同的问题。您唯一的选择可能是删除 xcode,然后使用您的新 Apple ID 下载

回答by jimbo

To make the AppStore forget the old credentials with which the app was downloaded, you must remove the _MASReceiptdirectory in the app itself.

要让 AppStore 忘记下载应用程序时使用的旧凭据,您必须删除_MASReceipt应用程序本身中的目录。

To do this:

去做这个:

  1. Open Finder and navigate to Applications,
  2. Ctrl+Click XCode and choose "Show Package Contents",
  3. Expand the Contents directory and click _MASReceipt to select it,
  4. Type Command+Delete to delete the directory permanently---you will be prompted for your credentials since this is a protected file.
  1. 打开 Finder 并导航到应用程序,
  2. Ctrl+单击 XCode 并选择“显示包内容”,
  3. 展开 Contents 目录并单击 _MASReceipt 以选择它,
  4. 键入 Command+Delete 以永久删除该目录——系统将提示您输入凭据,因为这是一个受保护的文件。

Quit and restart AppStore, then find XCode. The button should now say "Free" or "Install" instead of "Update". Clicking it will update your XCode to the latest version as the currently logged-in Apple user.

退出并重启AppStore,然后找到XCode。该按钮现在应该显示“免费”或“安装”而不是“更新”。单击它会将您的 XCode 更新为当前登录的 Apple 用户的最新版本。

回答by fulberto100

open a folder Finder-> Go -> Applications then find Xcode in the folder. Right click on the Xcode. -> Get Info at the bottom, there is Sharing & Permissions, open it, click on the lock icon on the right corner. make Read & Write for everyone in the list.

打开一个文件夹 Finder-> Go -> Applications 然后在文件夹中找到 Xcode。右键单击 Xcode。-> 底部获取信息,有共享和权限,打开它,点击右上角的锁图标。为列表中的每个人进行读写。

then wait 5-10 seconds. just try update Xcode again. it will start to updating...

然后等待 5-10 秒。只需尝试再次更新Xcode。它将开始更新...

回答by Aamir

To add an Apple ID account

添加 Apple ID 帐户

  1. Choose Xcode > Preferences.
  2. At the top of the window, click Accounts.
  3. In the lower-left corner, click the Add button (+) .
  4. Choose Add Apple ID from the pop-up menu.
    enter image description here

  5. In the dialog that appears, enter your Apple ID and password, and click Sign In.
    enter image description here

  1. 选择 Xcode > 首选项。
  2. 在窗口顶部,单击帐户。
  3. 在左下角,单击添加按钮 (+) 。
  4. 从弹出菜单中选取“添加 Apple ID”。
    在此处输入图片说明

  5. 在出现的对话框中,输入您的 Apple ID 和密码,然后点按“登录”。
    在此处输入图片说明

To remove an Apple ID account

删除 Apple ID 帐户

  1. Choose Xcode > Preferences.
  2. Click Accounts at the top of the window.
  3. Select the Apple ID account you want to delete in the left column.
  4. Click the Delete button (–) in the lower-left corner.
  1. 选择 Xcode > 首选项。
  2. 单击窗口顶部的帐户。
  3. 在左栏中选择要删除的 Apple ID 帐户。
  4. 点按左下角的“删除”按钮 (–)。

Follow link for source and detailed information.
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ManagingAccounts/ManagingAccounts.html

按照链接获取来源和详细信息。
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ManagingAccounts/ManagingAccounts.html

回答by Victor Zamanian

As NSPostWhenIdle said: "Delete Xcode, and reinstall it using the new Apple ID."

正如 NSPostWhenIdle 所说:“删除 Xcode,然后使用新的 Apple ID 重新安装它。”

回答by absessive

For XCode 5

对于 XCode 5

  1. Xcode menu > Preferences > Accounts
  2. At the bottom left, click the +
  3. Click on Add Apple ID.
  1. Xcode 菜单 > 首选项 > 帐户
  2. 点击左下角的 +
  3. 单击添加 Apple ID。

回答by Anna Billstrom

I had a somewhat similar issue. My AppleId was changed- the username - from "ab***" to "ab***@gmail.com". The new format requires an email address, and my AppleId dates back many years. I suddenly couldn't export anything from Xcode. How I fixed it:

我有一个类似的问题。我的 AppleId 已更改 - 用户名 - 从“ab***”更改为“ab***@gmail.com”。新格式需要一个电子邮件地址,而我的 AppleId 可以追溯到很多年前。我突然无法从 Xcode 导出任何内容。我是如何修复它的:

  1. Preferences/Accounts
  2. Delete old AppleId
  3. Add new AppleId.
  1. 首选项/帐户
  2. 删除旧的 AppleId
  3. 添加新的 AppleId。

Apple seemed to sort itself out on the backend and the only issue was Xcode hanging around to old references to defunct and/or bad usernames (to the same keyed account. Go figure.)

Apple 似乎在后端解决了问题,唯一的问题是 Xcode 徘徊在对已失效和/或错误用户名的旧引用(到同一个键控帐户。去图。)

回答by blueprint

If you restore your device to 13.3.0 will fix your problem, it worked for me

如果您将设备恢复到 13.3.0 将解决您的问题,它对我有用