Settings for dependent targets should include the parent target for test xcconfigs

parent cfa56c10
......@@ -42,6 +42,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#6756](https://github.com/CocoaPods/CocoaPods/pull/6756)
* Settings for dependent targets should include the parent target for test xcconfigs
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#6755](https://github.com/CocoaPods/CocoaPods/pull/6755)
* Only check for valid Swift version for pod targets that use Swift
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#6733](https://github.com/CocoaPods/CocoaPods/pull/6733)
......
......@@ -71,7 +71,7 @@ module Pod
XCConfigHelper.add_target_specific_settings(target, @xcconfig)
@xcconfig.merge! XCConfigHelper.settings_for_dependent_targets(target, target.recursive_dependent_targets)
if @test_xcconfig
@xcconfig.merge! XCConfigHelper.settings_for_dependent_targets(target, target.test_dependent_targets)
@xcconfig.merge! XCConfigHelper.settings_for_dependent_targets(target, [target, *target.test_dependent_targets])
XCConfigHelper.generate_vendored_build_settings(nil, [target, *target.test_dependent_targets], @xcconfig)
XCConfigHelper.generate_other_ld_flags(nil, [target, *target.test_dependent_targets], @xcconfig)
XCConfigHelper.generate_ld_runpath_search_paths(target, false, true, @xcconfig)
......
......@@ -159,7 +159,7 @@ module Pod
@coconut_pod_target.test_dependent_targets = [@banana_pod_target]
generator = PodXCConfig.new(@coconut_pod_target, true)
xcconfig = generator.generate
xcconfig.to_hash['LIBRARY_SEARCH_PATHS'].should == '$(inherited) "$PODS_CONFIGURATION_BUILD_DIR/BananaLib" "${PODS_ROOT}/../../spec/fixtures/banana-lib"'
xcconfig.to_hash['LIBRARY_SEARCH_PATHS'].should == '$(inherited) "$PODS_CONFIGURATION_BUILD_DIR/BananaLib" "$PODS_CONFIGURATION_BUILD_DIR/CoconutLib" "${PODS_ROOT}/../../spec/fixtures/banana-lib"'
end
it 'does not include other ld flags for test dependent targets if its not a test xcconfig' 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