Commit 569d40a9 authored by Marius Rackwitz's avatar Marius Rackwitz

Ensure that the product reference target has the correct name

As the product name isn't anymore equal to the target name, what Xcodeproj's helper Project#new_target assumes, we've to manually overwrite name and path.
parent 404f991d
......@@ -42,6 +42,11 @@ module Pod
deployment_target = target.platform.deployment_target.to_s
@native_target = project.new_target(product_type, name, platform, deployment_target)
product_name = target.product_name
product = @native_target.product_reference
product.name = product_name
product.path = product_name
target.user_build_configurations.each do |bc_name, type|
configuration = @native_target.add_build_configuration(bc_name, type)
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