xcode Codesign想要访问您钥匙串中的“访问”密钥,我输入了我的登录密码但一直问我
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/46774005/
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
Codesign wants to access key "access" in your keychain, I put in my login password but keeps asking me
提问by Tim Kruger
I'm trying to learn to load apps on my iPhone from Xcode. When I do I keep getting "Codesign wants to access key "access" in your keychain, I put I my login password but it keeps popping up over and over. I've tried my computer login so many times, apple account password, and many others.
我正在尝试学习从 Xcode 在我的 iPhone 上加载应用程序。当我这样做时,我不断收到“Codesign 想要访问您钥匙串中的密钥”访问权限,我输入了我的登录密码,但它一遍又一遍地弹出。我已经尝试了很多次我的计算机登录,苹果帐户密码,以及很多其他的。
回答by Anton Eregin
Had the same issue. It was fixed after I entered my mac user password and hit Always Allow.
有同样的问题。在我输入我的 mac 用户密码并点击Always Allow后,它被修复了。
回答by Bharathi Devarasu
Solve this problem by doing this.
通过这样做来解决这个问题。
Enter your Mac Login Password and Choose "Always Allow"
One or More dialogs opened and positioned in the same dialog, repeat step 1until all dialogs closed. (So you thought your password wrong but repeat "Always Allow" with your Mac login password tricky part :) )
输入您的Mac 登录密码并选择“始终允许”
一个或多个对话框打开并定位在同一个对话框中,重复步骤 1,直到所有对话框关闭。(所以您认为您的密码错误,但使用 Mac 登录密码的棘手部分重复“始终允许”:))
Hope it will work.
希望它会起作用。
回答by magohamoth
I pressed Denyby mistake and I was stuck, no way to code sign any Pods.
我错误地按下了拒绝,我被卡住了,无法对任何 Pod 进行代码签名。
This is how I solved the problem:
我是这样解决问题的:
- Open the keychain
- look for the key
com.apple.gs.xcode.auth.com.apple.account.AppleIDAuthentication.token
- open it
- click on the Access Controltab
- at the bottom there's Always allow access for these applications:-> add Xcode in the list
- Don't forget to press
Save Changes
- 打开钥匙扣
- 找钥匙
com.apple.gs.xcode.auth.com.apple.account.AppleIDAuthentication.token
- 打开它
- 单击访问控制选项卡
- 在底部总是允许访问这些应用程序:-> 在列表中添加 Xcode
- 不要忘记按
Save Changes
回答by Ari
I encountered this running a brand new project. Neither the Allow or Always Allow button seemed to work, however it wasn't giving me the 'incorrect password' shaking feedback. What was happening was that there were multiple dialog boxes all in the same position, so as I entered a password and clicked Allow nothing changed visually. I ended up having at least 3 dialogs all stacked up on each other, which I only discovered when I tried dragging the dialog. Entering passwords into each of them let my project finish building.
我在运行一个全新的项目时遇到了这个问题。Allow 或 Always Allow 按钮似乎都不起作用,但是它没有给我“密码不正确”的震动反馈。发生的事情是在同一位置有多个对话框,因此当我输入密码并单击“允许没有任何视觉变化”时。我最终至少有 3 个对话框相互堆叠,这是我在尝试拖动对话框时才发现的。输入密码让我的项目完成构建。
回答by Alona Moiseyenko
I clicked the "Deny" button, and the keychain was off.
我点击了“拒绝”按钮,钥匙串就关闭了。
I locked the keychain:
我锁了钥匙串:
And then I entered the login keychain again.
然后我再次输入登录钥匙串。
回答by Kristian
2019: I had to enter the password like 40 times... must be a bug... but it worked
2019 年:我不得不输入 40 次密码……一定是个错误……但它奏效了
回答by Regis_AG
Enter the password you use to open you Mac session and click on "Always allow" until all alerts are closed. The other buttons do not work...
输入用于打开 Mac 会话的密码,然后单击“始终允许”,直到关闭所有警报。其他按钮不起作用...
回答by Fato
Following worked for me!
以下对我来说有效!
- open keychain-management on your Mac
- select "login" on the left pane
- look for the key which is causing this issue. Mine was iOS Developer...
- double-click the key and select "Allow access to all programs" in the access column
- 在 Mac 上打开钥匙串管理
- 在左侧窗格中选择“登录”
- 寻找导致此问题的关键。我的是iOS开发人员...
- 双击该键并在访问列中选择“允许访问所有程序”
Restart Xcode and try to build again. It will ask you again but with the additional option to "Always allow. Enter your macOS user password as password and press "Always allow".
重新启动 Xcode 并尝试再次构建。它会再次询问您,但带有“始终允许”的附加选项。输入您的 macOS 用户密码作为密码,然后按“始终允许”。
Let me know if it worked for you.
让我知道它是否对你有用。
回答by user462990
The same dialog asking for the KeyChain password has 3 buttons. Most likely the wanted password is that for logging in to your Mac. If you press "Allow" it only works for some tiny aspect and will ask again, which is very puzzling. You need to press "Always Allow". The verification team at Apple is very weak, they need some 'normal' developers in the design team for the chain of events to get an app in the app store. Normal developers have very sketchy ideas about KeyChains and Certificates and Profiles.
询问 KeyChain 密码的同一个对话框有 3 个按钮。最有可能的密码是用于登录 Mac 的密码。如果按“允许”,它只适用于一些微小的方面,并且会再次询问,这非常令人费解。您需要按“始终允许”。Apple 的验证团队非常薄弱,他们需要设计团队中的一些“正常”开发人员才能在应用商店中获取应用程序的事件链。普通开发人员对 KeyChains、Certificates 和 Profiles 有非常粗略的想法。