iOS 使用 fastlane 打包失败,查看日志,发现如下描述:
xcodebuild -showBuildSettings timed out after 4 retries with a base timeout of 3. You can override the base timeout value with the environment variable FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT, and the number of retries with the environment variable FASTLANE_XCODEBUILD_SETTINGS_RETRIES
报错截图如下:
gym_fail.jpg
参考 iOS 持续交付之 Fastlane 的解决方案,再结合日志中的描述,只需要在 fastfile 文件顶部加上设置超时时长和超时尝试次数的环境变量即可:
ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"] = "180"
ENV["FASTLANE_XCODEBUILD_SETTINGS_RETRIES"] = "10"