Jenkins打包iOS异常记录

证书问题

note: Using new build system
note: Building targets in parallel
note: Using codesigning identity override: iPhone Developer: G W (7BCD56C7X8)
note: Planning build
note: Constructing build description
error: Signing certificate is invalid. Signing certificate "iPhone Developer: G W (7BCD56C7X8)", serial number "<DVTSigningCertificateSerialNumber: 0x7fc34bda0ae0>", is not valid for code signing. It may have been revoked or expired. (in target 'Unity-iPhone' from project 'Unity-iPhone')
warning: OpenGLES is deprecated. Consider migrating to Metal instead. (in target 'Unity-iPhone' from project 'Unity-iPhone')
** ARCHIVE FAILED **

在这里插入图片描述

我发先问题的地方是: 钥匙串里的dev 证书设置成了 「允许范围之前确认」, 这样通过jinkens 打包,导致签名无法正常通过, 设置成「允许所有应用程序访问此项目」 打包脚本应该能正常工作了;

猜测是把dev证书的设置给还原了, 我安装证书的时候设置成了 「允许所有应用程序访问此项目」

xcode找不到

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

https://blog.csdn.net/li15809284891/article/details/79629190

出现这个问题的原因应该是机器上装了多个xcode,需要指定一个默认xcode启动路径,xcodebuild命令才知道要启动哪一个
1.xcodebuild -showsdks

报这个错xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance


2.sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/

/Applications/Xcode.app/Contents/Developer/部分需要替换成自己mac上xcode的路径


3.xcodebuild -showsdks
会列出sdk的列表,表示设置成功


clean 失败

note: Using new build system error: Could not delete `/Users/gaojun/exportDir/iOS/Project_2020-10-30-23-24-46/build` because it was not created by the build system.
clean的时候删除build文件夹失败,手动删除掉,或者在shell里面调用rm -rf /Users/gaojun/exportDir/iOS/Project_2020-10-30-23-24-46/build来删除

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值