Commit 471d1a09 authored by Dieter Komendera's avatar Dieter Komendera

Respect project_pods_root when calculating paths for header symlinking.

parent cc7b8e51
...@@ -78,7 +78,7 @@ module Pod ...@@ -78,7 +78,7 @@ module Pod
end end
def headers_symlink_path_name def headers_symlink_path_name
"Pods/Headers" "#{config.project_pods_root}/Headers"
end end
# TODO move xcconfig related code into the xcconfig method, like copy_resources_script and generate_bridge_support. # TODO move xcconfig related code into the xcconfig method, like copy_resources_script and generate_bridge_support.
...@@ -102,7 +102,7 @@ module Pod ...@@ -102,7 +102,7 @@ module Pod
FileUtils.mkdir_p(target_dir) FileUtils.mkdir_p(target_dir)
target_dir_real_path = Pathname.new(target_dir).realpath target_dir_real_path = Pathname.new(target_dir).realpath
files.each do |file| files.each do |file|
source = Pathname.new("Pods/#{file}").realpath.relative_path_from(target_dir_real_path) source = Pathname.new("#{config.project_pods_root}/#{file}").realpath.relative_path_from(target_dir_real_path)
Dir.chdir(target_dir) do Dir.chdir(target_dir) do
FileUtils.ln_sf(source, File.basename(file)) FileUtils.ln_sf(source, File.basename(file))
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment