一次弱智的fastlane打包失败经历
Lazyloading Lv3

appfile,fastfile配置完成的情况下报错

fastlane报错

1
2
3
4
5
6
7
8
9
10
11
12
[17:13:49]: ⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
[17:13:49]: 📋 For the complete and more detailed error log, check the full log at:
[17:13:49]: 📋 /Users/xxxx/Library/Logs/gym/M-Pay-M-Pay.log
[17:13:49]:
[17:13:49]: Looks like fastlane ran into a build/archive error with your project
[17:13:49]: It's hard to tell what's causing the error, so we wrote some guides on how
[17:13:49]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[17:13:49]: Before submitting an issue on GitHub, please follow the guide above and make
[17:13:49]: sure your project is set up correctly.
[17:13:49]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
[17:13:49]: the full commands printed out in yellow in the above log.
[17:13:49]: Make sure to inspect the output above, as usually you'll find more error information there

网上查相关问题,各种解决办法,

  1. 比如xcodebuild工具没安装,但是一般xcode安装完都有的,我还是检查了下,确实安装了
  2. 说是证书配置错误的,我手动打包都一直成功的,应该不是证书问题
  3. 说是fastlane init时候报错,这个我回想了下,确实报错了,没有生成gemfile.lock,切换gem源为https://gems.ruby-china.com/,重新init,再次打包还是不行
  4. 有说没同意最新开发整合协议,要去开发者网站同意,检查了下,没有未同意协议
  5. 证书不匹配问题,我手动成功不是这个原因
  6. 自动管理证书改为手动管理,也不是这个问题

以上查到的解决方案都没有解决我的问题,我开始仔细看打包过程的日志,发现中间有一句

1
sh: xcpretty: command not found

xcpretty是一个日志格式化工具,用过oclint的一般都安装了,我这是自己的电脑不是公司的,检查了下,确实没安装,就安装下,不过按理说,一个日志格式化工具应该不影响打包才对,但事实是,安装完后,打包成功了,我简直>_<!

问题解决,好弱智

  • 本文标题:一次弱智的fastlane打包失败经历
  • 本文作者:Lazyloading
  • 创建时间:2022-10-02 11:34:52
  • 本文链接:https://lazy.wiki/posts/f6e707/
  • 版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!