ios 代码符号想要使用密钥签名 - 不允许或始终允许但拒绝工作
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/35592377/
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
code sign wants to sign using key - Doesn't allow or always allow but deny works
提问by iReddy
I'm trying to build and archive the application. After compiling, an alert window appears requesting the "codesign wants to sign using key "my account Name" in your keychain
" and the buttons Always Allow
, Deny
and Allow
, when i press Always allow
or allow
, nothing happens, only deny
works.
我正在尝试构建和归档应用程序。编译后,一个警告窗口出现,要求的“ codesign wants to sign using key "my account Name" in your keychain
”和按钮Always Allow
,Deny
并且Allow
,当我按下Always allow
或者allow
,什么都不会发生,只有deny
工作。
I enabled the "Allow all applications to access this item
" in private key info but it didn't worked for me.
我Allow all applications to access this item
在私钥信息中启用了“ ”,但它对我不起作用。
I'm using VNC remote Mac (El Capitan) and Xcode 7.2 .I'm not using any third party utilities and i did not install any mouse related apps.
我使用的是 VNC 远程 Mac (El Capitan) 和 Xcode 7.2。我没有使用任何第三方实用程序,也没有安装任何与鼠标相关的应用程序。
I have tried below links
我试过下面的链接
Having issue with allowing codesign to use my keychain
https://forums.developer.apple.com/thread/25092
https://forums.developer.apple.com/thread/25092
I'd like know reason behind this issue and how can i resolve it ?
我想知道这个问题背后的原因,我该如何解决?
回答by gilm
Had the same problem, tried many things and it felt like total voodoo. One of these two eventually solved the problem for me:
遇到了同样的问题,尝试了很多东西,感觉就像完全巫毒教一样。这两个中的一个最终为我解决了这个问题:
- Got rid of all expired/revoked certificates in my Keychain Access.
- Locked my
login
keychain in Keychain Access (it then prompted me for password for unlocking.)
- 在我的钥匙串访问中删除了所有过期/吊销的证书。
login
在钥匙串访问中锁定了我的钥匙串(然后提示我输入解锁密码。)
Hope this helps anybody!
希望这可以帮助任何人!
回答by laxman khanal
Enter your mac user password and hit Always Allow.
输入您的 mac 用户密码并点击Always Allow。
回答by Divesh singh
Please don't press "Allow" press "Always allow" only
请不要按“允许”只按“始终允许”
回答by Code Tree
You need to do it on the machine itself, closing all the vnc connections. Mac determines the click originates from the connected devices nor from any remote controlled device.
您需要在机器本身上执行此操作,关闭所有 vnc 连接。Mac 确定点击来自连接的设备或任何远程控制的设备。
回答by mah927
I logged in as root (go to your terminal su -). It allowed me to select "Always Allow". This in return enabled me to archive and upload my build to the app store.
我以 root 身份登录(转到您的终端 su -)。它允许我选择“始终允许”。作为回报,这使我能够存档并将我的构建上传到应用程序商店。
回答by akroy
Restarting Xcode and trying again fixed it for me. :/
重新启动 Xcode 并再次尝试为我修复它。:/