mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-13 09:40:32 +08:00
osx: load all depended frameworks
This commit is contained in:
@@ -167,7 +167,7 @@ EOS
|
||||
if File.exist?(framework_path)
|
||||
`#{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\/(.+)$/) and md[1] == md[2]
|
||||
if md = dep[0].match(/^\/System\/Library\/Frameworks\/(.+)\.framework\/(Versions\/.\/)?(.+)$/) and md[1] == md[3]
|
||||
deps << md[1]
|
||||
deps.uniq!
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user