Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (9 sloc) 312 Bytes
dylibs = Dir.glob("*.dylib")
dylibs.each do |path|
name = path.split("/").last
x = %x[otool -L #{path}]
lines = x.split("\n")
lines = lines.map(&:strip)
op_lines = lines.select{|l| l.include?("opt")}.map{|m| m.split.first}
%x[install_name_tool -id @executable_path/../Frameworks/#{name} #{path}]
end
Jump to Line
Something went wrong with that request. Please try again.