Commit 91f2289b authored by Marius Rackwitz's avatar Marius Rackwitz Committed by Samuel Giddins

[PodTargetInstaller] Fix bundle target's build dir

Targets use since #4146 individual build directories in all cases, not only these.
parent b6152cc8
......@@ -177,9 +177,7 @@ module Pod
c.build_settings['PRODUCT_NAME'] = bundle_name
relative_info_plist_path = info_plist_path.relative_path_from(sandbox.root)
c.build_settings['INFOPLIST_FILE'] = relative_info_plist_path.to_s
if target.requires_frameworks? && target.scoped?
c.build_settings['CONFIGURATION_BUILD_DIR'] = target.configuration_build_dir
end
# Set the correct device family for this bundle, based on the platform
device_family_by_platform = {
......
......@@ -176,6 +176,12 @@ module Pod
end
end
it 'sets the correct build dir' do
@bundle_target.build_configurations.each do |bc|
bc.build_settings['CONFIGURATION_BUILD_DIR'].should == '$CONFIGURATION_BUILD_DIR/BananaLib-Pods-SampleProject'
end
end
it 'sets the correct targeted device family for the resource bundle targets' do
@bundle_target.build_configurations.each do |bc|
bc.build_settings['TARGETED_DEVICE_FAMILY'].should == '1,2'
......
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