Permalink
Browse files

Always copy headers to ./Pods instead of using the PRODUCT_NAME, whic…

…h changes for each Pods target. Fixes #75.
  • Loading branch information...
1 parent 7061b9e commit bd07b8d0781004403fb25da9414570bfee1d32d8 @alloy alloy committed Nov 16, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/cocoapods/xcodeproj_ext.rb
  2. +1 −1 spec/unit/xcodeproj_ext_spec.rb
@@ -15,7 +15,7 @@ def add_pod_group(name)
class PBXCopyFilesBuildPhase
def self.new_pod_dir(project, pod_name, path)
new(project, nil, {
- "dstPath" => "$(PRODUCT_NAME)/#{path}",
+ "dstPath" => "Pods/#{path}",
"name" => "Copy #{pod_name} Public Headers",
})
end
@@ -27,7 +27,7 @@ def find_object(conditions)
phase = @project.targets.first.copy_files_build_phases.new_pod_dir("SomePod", "Path/To/Source")
find_object({
'isa' => 'PBXCopyFilesBuildPhase',
- 'dstPath' => '$(PRODUCT_NAME)/Path/To/Source',
+ 'dstPath' => 'Pods/Path/To/Source',
'name' => 'Copy SomePod Public Headers'
}).should.not == nil
@project.targets.first.buildPhases.should.include phase

0 comments on commit bd07b8d

Please sign in to comment.