Cla*_*aus 1 build jenkins provisioning-profile
我的Jenkins构建作业失败,显示以下消息
=== BUILD NATIVE TARGET MyTarget OF PROJECT MyProject WITH CONFIGURATION Debug ===
Check dependencies
Code Sign error: A valid provisioning profile matching the application's Identifier 'MyCompany.MyProjet' could not be found
Run Code Online (Sandbox Code Playgroud)
现在,如果我尝试使用选定的方案作为jenkins用户运行xcodebuild命令:
/usr/bin/xcodebuild -target MyTarget -configuration Debug clean build
Run Code Online (Sandbox Code Playgroud)
或这个
/usr/bin/xcodebuild -scheme MyAwesomeScheme clean build
Run Code Online (Sandbox Code Playgroud)
我得到相同的错误,但如果我作为另一个用户(我的系统主用户)执行它,构建成功完成!它也适用于Xcode.
在我修复了在Login和System keychain组中复制证书的另一个代码签名错误后,此错误开始出现.
看起来jenkins用户无法访问配置文件.知道怎么解决吗?
您需要~/Library/MobileDevice/Provisioning Profiles/为Jenkins用户创建目录.
接下来,将.mobileprovision文件复制到该目录中.
最后,在目标构建设置中设置配置文件."自动配置文件选择器"不适用于xcodebuild.
| 归档时间: |
|
| 查看次数: |
4396 次 |
| 最近记录: |