Skip to content
Browse files

Respect project_pods_root when calculating paths for header symlinking.

  • Loading branch information...
1 parent cc7b8e5 commit 471d1a092acab2d0266b381ce2e07dff21f7ce51 @kommen kommen committed Nov 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cocoapods/installer.rb
View
4 lib/cocoapods/installer.rb
@@ -78,7 +78,7 @@ def prefix_header_filename
end
def headers_symlink_path_name
- "Pods/Headers"
+ "#{config.project_pods_root}/Headers"
end
# TODO move xcconfig related code into the xcconfig method, like copy_resources_script and generate_bridge_support.
@@ -102,7 +102,7 @@ def install!
FileUtils.mkdir_p(target_dir)
target_dir_real_path = Pathname.new(target_dir).realpath
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
FileUtils.ln_sf(source, File.basename(file))
end

0 comments on commit 471d1a0

Please sign in to comment.
Something went wrong with that request. Please try again.