Merge pull request #33 from TouchInstinct/fix/podsLock

Fix/pods lock
This commit is contained in:
Vsevolod Ivanov 2017-11-13 11:09:23 +03:00 committed by GitHub
commit c704616a63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,14 @@
$appName = File.basename(Dir['../*.xcworkspace'].first, '.*')
before_all do |lane, options|
podsReposPath = File.expand_path "~/.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