Commit e5a0cb07 authored by Marius Rackwitz's avatar Marius Rackwitz

[PrivatePodXCConfig] Public Headers are not needed to build the target itself

The build headers are always given as a superset of the public headers. To build the target itself all headers are needed typically, not only the public headers. The public headers are needed for other targets (pod targets + user targets) depending on a target.
parent 6a456add
......@@ -45,9 +45,7 @@ module Pod
# @return [Xcodeproj::Config]
#
def generate
target_search_paths = target.build_headers.search_paths(target.platform)
sandbox_search_paths = target.sandbox.public_headers.search_paths(target.platform)
search_paths = target_search_paths.concat(sandbox_search_paths).uniq
search_paths = target.build_headers.search_paths(target.platform)
config = {
'OTHER_LDFLAGS' => XCConfigHelper.default_ld_flags(target),
......
Subproject commit 3e8ec34e84b261eb9bd3fd5352ac2107660cff3e
Subproject commit 533b56f19f4357d76aed8977b9a814dfb69f4f16
......@@ -42,11 +42,11 @@ module Pod
@xcconfig.to_hash['PODS_ROOT'].should.not.nil?
end
it 'adds the library build headers and public headers search paths to the xcconfig, with quotes' do
it 'adds the library build headers search paths to the xcconfig, with quotes' do
private_headers = "\"#{@pod_target.build_headers.search_paths(:ios).join('" "')}\""
public_headers = "\"#{config.sandbox.public_headers.search_paths(:ios).join('" "')}\""
@xcconfig.to_hash['HEADER_SEARCH_PATHS'].should.include private_headers
@xcconfig.to_hash['HEADER_SEARCH_PATHS'].should.include public_headers
@xcconfig.to_hash['HEADER_SEARCH_PATHS'].should.not.include public_headers
end
it 'adds the COCOAPODS macro definition' do
......
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