xcode - codesign requires keychain password even after 'security unlock-keychain'
问题描述
I'm running xcodebuild in a script to archive and export my project. I'm code signing using a keychain file. In order to avoid the prompt to enter the keychain password, I'm using
security unlock-keychain -p <Password> <Keychain file>
This command finishes successfully without any output
Still, when I run xcodebuild, I'm getting prompted with
codesign wants to use the "myKeychain" keychain.
What am I missing? I'm running xcode 9.4.1
解决方案
问题是我unlock-keychain
在构建之前发布了,而签名是在 45 分钟后发生的。解锁已过期。
这可以解决
security set-keychain-settings -lut 7200 <keychain>
我通过在签名之前发出解锁命令来解决它
推荐阅读
- java - 在 Java 中使用 HttpURLConnection POST
- c++ - 如何使用 OpenCV 将 RBG 图像转换为 HSV 并将 H、S 和 V 值保存到 C++ 中的 3 个单独的图像中?
- android - TouchableOpacity onLongPress 拦截 FlatList 滚动
- gspread - 更新 gspread 以获取 duplicate_sheet
- java - 连接未与托管连接关联
- robotframework - 如何从机器人框架代码之间的全局变量中获取值
- c++ - OpenCV EqualizeHist() 从彩色图像创建黑白图像
- javascript - 使用 DOM 结合 For 循环创建表;用数组填充表?- JavaScript
- c - Makefile 编译所有 .c 文件而不需要指定它们
- javascript - ReactJS fetch 导致无限循环