Xcode:签名说“没有找到帐户”,但帐户说它存在
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/41812700/
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
Xcode: Signing says "No accounts found", but Accounts says it exists
提问by Alexander
I am a Windows user trying to sign an iOS app - first for testing, later on I will have to sign for release into the app store. As always, I am stuck somewhere.
我是一名 Windows 用户,尝试签署 iOS 应用程序 - 首先进行测试,稍后我将不得不签署发布到应用程序商店。和往常一样,我被困在某个地方。
What I try: I open the *.xcodeproj file in Xcode, go to General -> Signing, and it tells me
我的尝试:我在 Xcode 中打开 *.xcodeproj 文件,转到 General -> Signing,它告诉我
No accounts found
Add a developer account to sign your app
[ Add account... ]
未找到帐户
添加开发者帐户以签署您的应用
[ 添加帐户... ]
So I click on the button, and it opens the "Accounts" window, and opens the dialog
所以我点击按钮,它打开“帐户”窗口,并打开对话框
Sign in to Xcode with your Apple ID
Sign in to Xcode with your Apple ID. Don't have an Apple ID? You can create one for free.
Apple ID Password (forgot Password)
[______] [______]
[ Create Apple ID ] [ Cancel ] [ Sign In ]
使用您的 Apple ID
登录Xcode 使用您的 Apple ID登录 Xcode。没有 Apple ID?您可以免费创建一个。
Apple ID 密码(忘记密码)
[______] [______]
[ 创建 Apple ID ] [ 取消 ] [ 登录 ]
In the window behind it, an Apple ID is already visible. My Apple ID.
在它后面的窗口中,已经可以看到一个 Apple ID。我的苹果ID。
But of course I can enter it again. Or not, ouch:
但是我当然可以再次输入它。或者不,哎哟:
Account already exists.
This account has already been added
[ OK ]
用户名已经被注册。
此帐号已添加
[确定]
Also, I cannot drag the account from the accounts window into the signing window, let alone use the context menu.
此外,我无法将帐户从帐户窗口拖到签名窗口中,更不用说使用上下文菜单了。
How can I get that already added account into "Signing"?
如何将已添加的帐户添加到“签名”中?
回答by BartBiczBo?y
I had the same issue. These steps helped for me:
我遇到过同样的问题。这些步骤对我有帮助:
- On https://developer.apple.com/accountchoose "Certificates, Identifiers & Profiles"
- In Identifiers group on left side choose "App IDs"
- Add App ID with bundle ID matching the one from project's Bundle Identifier
- 在https://developer.apple.com/account 上选择“证书、标识符和配置文件”
- 在左侧的标识符组中选择“应用程序 ID”
- 添加应用程序 ID,捆绑 ID 与项目的捆绑标识符匹配
After that I also restarted Xcode. Now I can choose the team as it should be.
之后我也重新启动了Xcode。现在我可以按原样选择球队了。
回答by Craig Brown
I also had this issue, and the fix was simply to restart Xcode.
我也遇到了这个问题,解决方法只是重新启动 Xcode。
回答by ScottyBlades
If you are getting: "there are no accounts registered with xcode. add your developer account" then you you can go to you can go to Xcode -> preferences -> Accounts
then add your account with the +
sign.
如果您收到:“没有使用 xcode 注册的帐户。添加您的开发者帐户”,那么您可以转到您可以转到Xcode -> preferences -> Accounts
然后添加带有+
标志的帐户。