Skip to content

Commit

Permalink
Removed post-install hook from example podfile, since it's no longer …
Browse files Browse the repository at this point in the history
…necessary
  • Loading branch information
abbeycode committed Mar 24, 2014
1 parent 36848a9 commit fa2f585
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,4 @@ target "Demo" do
end

target "DemoTests" do
end

post_install do |installer_representation|
puts 'Removing unwanted compilation sources from UnrarKit'

excluded_files = File.readlines('Pods/UnrarKit/Resources/ExcludedBuildFiles.txt')
excluded_files.each {|file| file.strip!}

installer_representation.project.targets.each do |target|
if target.name.end_with? 'UnrarKit'
files_to_remove = target.source_build_phase.files.find_all do |file|
excluded_files.include? file.display_name
end

files_to_remove.each{|file| target.source_build_phase.remove_file_reference(file.file_ref)}
end
end
end
end

0 comments on commit fa2f585

Please sign in to comment.