Jenkins+Xcode+Git - 搭建持续构建环境 - 第五章 错误合集

1 错误

No global keychain or local keychain path/password was configured.

Jenkins+Xcode+Git - 搭建持续构建环境 - 第五章 错误合集_第1张图片
错误:Keychain.png

解决

Jenkins+Xcode+Git - 搭建持续构建环境 - 第五章 错误合集_第2张图片
解决:Keychain.png

2 错误

No global development team ID was configured

Jenkins+Xcode+Git - 搭建持续构建环境 - 第五章 错误合集_第3张图片
错误:Team ID.png

解决

Jenkins+Xcode+Git - 搭建持续构建环境 - 第五章 错误合集_第4张图片
解决:Team ID.png

3 错误

Code Sign error

Jenkins+Xcode+Git - 搭建持续构建环境 - 第五章 错误合集_第5张图片
错误:不匹配.png

解决: 报的错误是代码签名错误, 这个我很莫名其妙, 在打包的时候, Xcode 版本是 7.3.1, 我怀疑是 Xcode 版本比较低, 于是我去下载了 Xcode 8.0, 然后把 Xcode 7.3.1 扔到了垃圾桶里, 就能正常打包了. 虽然这个问题我这么做在我的机器上是解决了,但是我并不清楚原因是什么.

4 错误

Couldn't create module cache folder

Jenkins+Xcode+Git - 搭建持续构建环境 - 第五章 错误合集_第6张图片
错误:没有文件夹 Library.png

解决: 这个是我之前没有正确安装 Jenkins 导致的, 说不能创建文件夹, 之前装好 Jenkins 之后是 没有 Library 文件夹的.Jenkins 卸了重装一下,然后在打包的时候, Jenkins 就会自动创建下面红框的目录

Jenkins+Xcode+Git - 搭建持续构建环境 - 第五章 错误合集_第7张图片
文件夹

5 错误

Code Sign error

Jenkins+Xcode+Git - 搭建持续构建环境 - 第五章 错误合集_第8张图片
错误:缺少profile.png

解决: 我并不知道这个文件为什么会少. 我把所有能装的 证书, profile 都下载安装了都不行, 最后我是从自己电脑找到了这个文件,拷贝到了 /Users/Shared/Jenkins/Library/MobileDevice/Provisioning Profiles 这里,就行了.

后续

在配置 Jenkins 的时候出现过很多伤害爆炸的错误. 拜访了很多 Jenkins 玩家, 这里附上他们的错误集合, 非常感谢你们的文章:

史上最全Jenkins+SVN+iOS+cocoapods环境搭建及其错误汇总

XCode8.2 Jenkins 集成遇到的问题No profile matching,/codesign failed with exit code 1

Jenkins集成的问题

你可能感兴趣的:(Jenkins+Xcode+Git - 搭建持续构建环境 - 第五章 错误合集)