Commit 8dc7e3e0 authored by Samuel Giddins's avatar Samuel Giddins

[PodTargetInstaller] Update specs for using the pods deployment target

parent c1f1a41c
......@@ -316,7 +316,8 @@ module Pod
# @return [String] The deployment target.
#
def deployment_target
target.specs.map { |spec| spec.deployment_target(target.platform) }.max
default = Podfile::TargetDefinition::PLATFORM_DEFAULTS[target.platform.name]
target.specs.map { |spec| spec.deployment_target(target.platform) || default }.max
end
#-----------------------------------------------------------------------#
......
......@@ -37,8 +37,8 @@ module Pod
@installer.install!
target = @project.targets.first
target.platform_name.should == :ios
target.deployment_target.should == '6.0'
target.build_settings('Debug')['IPHONEOS_DEPLOYMENT_TARGET'].should == '6.0'
target.deployment_target.should == '4.3'
target.build_settings('Debug')['IPHONEOS_DEPLOYMENT_TARGET'].should == '4.3'
end
it 'sets the platform and the deployment target for OS X targets' do
......@@ -46,8 +46,8 @@ module Pod
@installer.install!
target = @project.targets.first
target.platform_name.should == :osx
target.deployment_target.should == '10.8'
target.build_settings('Debug')['MACOSX_DEPLOYMENT_TARGET'].should == '10.8'
target.deployment_target.should == '10.6'
target.build_settings('Debug')['MACOSX_DEPLOYMENT_TARGET'].should == '10.6'
end
it "adds the user's build configurations to the target" 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