Skip to content

Commit

Permalink
Only add a single Manifest.lock phase when dealing with multiple specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl8r committed Apr 18, 2013
1 parent fbfea26 commit 5cb58ad
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -144,10 +144,12 @@ def add_copy_resources_script_phase
# @return [void]
#
def add_check_manifest_lock_script_phase
phase_name = 'Check Pods Manifest.lock'
targets.each do |target|
next if target.shell_script_build_phases.any? { |phase| phase.name == phase_name }
phase = target.project.new(Xcodeproj::Project::Object::PBXShellScriptBuildPhase)
target.build_phases.unshift(phase)
phase.name = 'Check Pods Manifest.lock'
phase.name = phase_name
phase.shell_script = <<-EOS.strip_heredoc
diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null
if [[ $? != 0 ]] ; then
Expand Down

0 comments on commit 5cb58ad

Please sign in to comment.