fix the link error of "ld: framework not found IOKit" with "rake device" if use "app.framework_search_paths"

http://hipbyte.myjetbrains.com/youtrack/issue/RM-283
This commit is contained in:
Watson
2013-10-15 00:31:34 +09:00
parent 594d2308c1
commit 42fcd6c4aa

View File

@@ -158,8 +158,10 @@ EOS
`#{locate_binary('otool')} -L \"#{framework_path}\"`.scan(/\t([^\s]+)\s\(/).each do |dep|
# Only care about public, non-umbrella frameworks (for now).
if md = dep[0].match(/^\/System\/Library\/Frameworks\/(.+)\.framework\/(Versions\/.\/)?(.+)$/) and md[1] == md[3]
deps << md[1]
deps.uniq!
if File.exist?(File.join(datadir, 'BridgeSupport', md[1] + '.bridgesupport'))
deps << md[1]
deps.uniq!
end
end
end
end