@@ -232,10 +232,9 @@ jobs:
232232 with :
233233 xcode-version : ${{ env.XCODE_VERSION }}
234234
235- - name : Restore cocoapods
235+ - name : Cache cocoapods
236236 if : env.ios_build == 1 && env.turbo_cache_hit_ios != 1
237- id : library-cocoapods-cache
238- uses : actions/cache/restore@v4
237+ uses : actions/cache@v4
239238 with :
240239 path : |
241240 ${{ env.work_dir }}/**/ios/Pods
@@ -246,22 +245,16 @@ jobs:
246245 ${{ runner.os }}-library-cocoapods-${{ hashFiles(format('{0}/example/ios/Podfile', env.work_dir)) }}-
247246 ${{ runner.os }}-library-cocoapods-
248247
249- - name : Install cocoapods
250- if : env.ios_build == 1 && env.turbo_cache_hit_ios != 1 && steps.library-cocoapods-cache.outputs.cache-hit != 'true'
248+
249+ - name : Update cocoapod repo
250+ if : env.ios_build == 1 && env.turbo_cache_hit_ios != 1
251251 working-directory : ${{ env.work_dir }}
252252 run : |
253253 cd example
254254 bundle install
255- bundle exec pod install --project-directory=ios
256-
257- - name : Cache cocoapods
258- if : env.ios_build == 1 && env.turbo_cache_hit_ios != 1 && steps.library-cocoapods-cache.outputs.cache-hit != 'true'
259- uses : actions/cache/save@v4
260- with :
261- path : |
262- ${{ env.work_dir }}/**/ios/Pods
263- ${{ env.work_dir }}/**/ios/Podfile.lock
264- key : ${{ steps.library-cocoapods-cache.outputs.cache-primary-key }}
255+ cd ios
256+ bundle exec pod deintegrate
257+ bundle exec pod repo update --verbose
265258
266259 - name : Build example (iOS)
267260 if : env.ios_build == 1
0 commit comments