Commit 7ff9ec78 authored by Marius Rackwitz's avatar Marius Rackwitz

Link the target product according to its type

parent a4742576
...@@ -72,11 +72,14 @@ module Pod ...@@ -72,11 +72,14 @@ module Pod
end end
end end
# Add pod static lib to list of libraries that are to be linked with # Add pod framework to list of frameworks / libraries that are
# the user’s project. # linked with the user’s project.
next unless pod_target.should_build? next unless pod_target.should_build?
@xcconfig.merge!('OTHER_LDFLAGS' => %(-l "#{pod_target.name}")) if pod_target.requires_framework?
@xcconfig.merge!('OTHER_LDFLAGS' => %(-framework "#{pod_target.product_basename}"))
else
@xcconfig.merge!('OTHER_LDFLAGS' => %(-l "#{pod_target.product_basename}"))
end
end end
# TODO Need to decide how we are going to ensure settings like these # TODO Need to decide how we are going to ensure settings like these
......
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