【FAQ】xcodebuild 签名,提示User interaction is not allowed?
来源:互联网 发布:有道翻译网络连接失败 编辑:程序博客网 时间:2024/05/24 03:43
苹果因为安全原因,默认不允许ssh登陆读取keychain,所以执行的时候,首先要允许使用login.keychain
$ security unlock ~/Library/Keychains/login.keychain
执行这个命令需要输入密码,可以用expect传,也可以用-p参数:
方法1:
#!/usr/bin/expectspawn security unlock /Users/haier/Library/Keychains/login.keychainexpect ":"send "123456\r"interact
方法2:
$ security unlock-keychain -p 123456 /Users/haier/Library/Keychains/login.keychain
最后还可以修改过期时间(当然这个不要放在构建脚本儿里):
#修改过期时间
$ security
set
-keychain-settings -t 3600 -l ~
/Library/Keychains/login
.keychain
#查看修改后的时间
$ security show-keychain-info ~
/Library/Keychains/login
.keychain
1 0
- 【FAQ】xcodebuild 签名,提示User interaction is not allowed?
- codesign returns User Interaction is not allowed
- xcode打包出错:User interaction is not allowed
- 解决Jenkins分布式编译iOS代码时,出现"User interaction is not allowed"
- 命令行调用code sign时报错:User interaction is not allowed
- jenkins使用shell命令打IOS包报错:user interaction is not allowed
- 命令行调用code sign时报错:User interaction is not allowed
- xcode编包时code sign报错:User interaction is not allowed
- struts2:This method: login for action user is not allowed!
- User root is not allowed to impersonate anonymous
- User root is not allowed to impersonate anonymous
- Hive2- User root is not allowed to impersonate anonymous
- struts2:This method: login for action user is not allowed!
- User root is not allowed to impersonate anonymous
- User root is not allowed to impersonate anonymous
- User root is not allowed to impersonate anonymous
- Hibernate3.3 例子提示: user is not mapped
- 使用HQL查询时提示user is not mapped错误
- 开源框架和工具一览表
- BZOJ 1055: [HAOI2008]玩具取名|动态规划
- LeetCode Permutations
- ORA-06502 实例
- 关闭服务进程命令
- 【FAQ】xcodebuild 签名,提示User interaction is not allowed?
- 如何在thunderbird中接受outlook会议请求
- 特殊排列的算法
- C语言-内存操作
- iOS开发UI篇—程序启动原理和UIApplication
- C语言-时间操作
- Wpf的数据绑定(一)
- 微信开发网页授权OAuth2.0注意事项
- 如何删除activity中的contentView