http://www.cocoachina.com/ios/20160804/17281.html
jenkins 自动安装到 /Users/Shared目录下,此时填坑开始了:
1.jenkins UTF-8环境错误 解决地址:
https://blog.csdn.net/sodaslay/article/details/72326712
2. Code Signing Error: No profiles for 'cn.leke.letalk' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'cn.leke.letalk'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuildCode signing is required for product type 'Application' in SDK 'iOS 11.0'
解决地址:https://www.jianshu.com/p/ce36997919b4
/Users/Shared/Jenkins/Library/Logs/gym/LeTalk-LeTalk.log log日志,查看错误信息
3.报1-ffffffffffffff错误,此处无法解决,并未找到对应的解决方案
以上是填坑过程,发现坑越来越多,永远有填不完的坑
4.share目录下文件的读写权限没有放开
以下为正解:
一切的原因其实都是不应该放在/users/share/目录下,所以首先我们要改变jenkins 路径
https://www.cnblogs.com/chuanwei-zhang/p/5165418.html
解释
1.首先cd到这个目录下
/Library/LaunchDaemons
2.然后编辑
org.jenkins-ci.plist
修改里面的
JENKINS_HOME,
UserName string为自己本机的名字
3.执行两个语句,此处是用来迁移路径的
sudo launchctl unload -w /Library/LaunchDaemons/org.jenkins-ci.plist sudo launchctl load -w /Library/LaunchDaemons/org.jenkins-ci.plist
随后jenkins会重新安装,然后需要重新操作就对了,当然sh文件要配置正确.
4.如果Jenkins关闭的话,使用java shell指令重新开启,如下:
java -jar /Applications/Jenkins/jenkins.war –httpPort=8080
一切ok之后,包括你的证书,配置文件,以及login.keychain都完成之后,立即构建此时即可生成对应的链接在最后,那么打开就是你项目的二维码。我是使用的fir来打包的,那么也可以登录fir去扫描下载,fir的使用可以自行百度.