Created
April 7, 2023 00:02
-
-
Save Osein/1b4ac2a8c4acbe78b02a26e950451638 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install do |installer| | |
project_path = "Bower.xcodeproj" | |
project = Xcodeproj::Project.open(project_path) | |
project.targets.each do |target| | |
shell_script_path = "Pods/Target Support Files/Pods-Bower/Pods-"+target.name+"-frameworks.sh" | |
shell_script_input_lines = File.readlines(shell_script_path) | |
shell_script_output_lines = shell_script_input_lines.map { |line| line.sub("source=\"$(readlink \"${source}\")\"", "source=\"$(readlink -f \"${source}\")\"") } | |
File.open(shell_script_path, 'w') do |f| | |
shell_script_output_lines.each do |line| | |
f.write line | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this.