diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 8219704..43d4de6 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -1,6 +1,14 @@ $appName = File.basename(Dir['../*.xcworkspace'].first, '.*') before_all do |lane, options| + podsReposPath = "/Users/builder/.cocoapods/repos/master/" + lockFilePath = "#{podsReposPath}.git/index.lock" + + # check if .lock file exists in pod repos - then remove all master repo + if File.exists? lockFilePath + sh("rm -rf #{podsReposPath}") + end + cocoapods( clean: true, repo_update: true