From 42fcd6c4aa3aa2a54e231edab975ce8a6066dcde Mon Sep 17 00:00:00 2001 From: Watson Date: Tue, 15 Oct 2013 00:31:34 +0900 Subject: [PATCH] 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 --- lib/motion/project/xcode_config.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/motion/project/xcode_config.rb b/lib/motion/project/xcode_config.rb index 5a50d40b..e5df2bab 100644 --- a/lib/motion/project/xcode_config.rb +++ b/lib/motion/project/xcode_config.rb @@ -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