Commit bd07b8d0 authored by Eloy Duran's avatar Eloy Duran

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

Always copy headers to ./Pods instead of using the PRODUCT_NAME, which changes for each Pods target. Fixes #75.
parent 7061b9eb
......@@ -15,7 +15,7 @@ module Xcodeproj
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 @@ describe 'Xcodeproj::Project' do
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
......
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