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