iOS开发之持续构建(Jenkins+fastlane+蒲公英)错误汇总

Jenkins+fastlane打包上传蒲公英错误汇总

  • Multiple schemes found but you haven’t specified one, Since this is a CI, please pass one using the “scheme” option

解决方案:Manage Schemes…选项点开,将target schemes设置为shared勾选。同时脚本显示指定scheme。

  • Code Signing Error: No certificate for team ‘JJ6JH6RKQ5’ matching ‘iPhone Developer: * (ZUXQ5B2W9Z)’ found: Select a different signing certificate for CODE_SIGN_IDENTITY, a team that matches your selected certificate, or switch to automatic provisioning.

解决方案:手动选择签名和描述文件时,需要配置正确的。或者转换为自动签名和描述证书。

  • PGYER Plugin Error: error installType

解决方案:现在使用插件上传蒲公英时,需要增加参数,带上类型和密码。
pgyer(api_key: "***", user_key: "***", password: "123", install_type: "2")

  • bundler: failed to load command: pod (/usr/local/bin/pod) Bundler::GemNotFound: Could not find fastlane-plugin-pgyer-0.2.1 in any of the sources

解决方案:不使用bundler加载,脚本如下cocoapods(repo_update: false, use_bundle_exec: false)

  • error: unable to parse contents of file list ‘/Users/city/.jenkins/workspace/ios-22city-supply-beta-original/supply/Pods/Target Support Files/Pods-supply_beta/Pods-supply_beta-frameworks-Debug-input-files.xcfilelist’

解决方案:如果指定了cocoapods版本,则这个文件可以删除掉。同时需要注意Xcode的版本与swift版本。打包机器最好能与开发机器版本一致,这样不至于容易出问题。

  • error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54。fatal: The remote end hung up unexpectedly。 fatal: early EOF。 fatal: index-pack failed

解决方案:这个一般是网络问题,最好设置gem源为https://gems.ruby-china.com并且确保只有一个,保证网络条件良好状态下打包。

同上

  • Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down

同上

解决方案:确认自己的代码仓库授权,使用正确的。

  • 错误如下图

原因:本机开发时引入文件未勾选copy,导致引用本机别的位置的文件,在打包机上并没有此文件,因此找不到文件。
解决方案:引入文件时,勾选copy,最好是将文件提前拷贝到目标目录,再手动拖入。

© 2021 cyruschang All Rights Reserved.
Theme by hiero