diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 4542be7..57d5ef4 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -91,19 +91,20 @@ def push_podspec(podspec_name) tries = 6 for i in 1..tries begin - pod_push( - path: podspec_name, - allow_warnings: true, - skip_tests: true - ) - break + sh("bundle exec pod repo update") + pod_push( + path: podspec_name, + allow_warnings: true, + skip_tests: true + ) + break rescue StandardError => error - if i == tries - raise - end - delay = 3**i - puts "retry pod_push after #{delay}" - sleep(delay) + if i == tries + raise + end + delay = 3**i + puts "retry pod_push after #{delay}" + sleep(delay) end end end