Commit ba054e74 authored by Samuel Giddins's avatar Samuel Giddins

[Validator] Add spec for compiling with -Wincomplete-umbrella

parent 9936a738
...@@ -383,6 +383,7 @@ module Pod ...@@ -383,6 +383,7 @@ module Pod
error('swift', 'Swift support uses dynamic frameworks and is therefore only supported on iOS > 8.') unless uses_xctest error('swift', 'Swift support uses dynamic frameworks and is therefore only supported on iOS > 8.') unless uses_xctest
end end
end end
@installer.pods_project.save
end end
def validate_vendored_dynamic_frameworks def validate_vendored_dynamic_frameworks
......
...@@ -412,6 +412,20 @@ module Pod ...@@ -412,6 +412,20 @@ module Pod
validator.validate validator.validate
end end
it 'sets the -Wincomplete-umbrella compiler flag for pod targets' do
validator = Validator.new(podspec_path, SourcesManager.master.map(&:url))
validator.no_clean = true
validator.stubs(:check_file_patterns)
validator.stubs(:validate_url)
validator.validate
pods_project = Xcodeproj::Project.open(validator.validation_dir + 'Pods/Pods.xcodeproj')
pods_project.native_targets.find { |nt| nt.name == 'JSONKit' }.resolved_build_setting('OTHER_CFLAGS').each do |_, value|
value.should == %w($(inherited) -Wincomplete-umbrella)
end
end
it 'does filter InputFile errors completely' do it 'does filter InputFile errors completely' do
validator = Validator.new(podspec_path, SourcesManager.master.map(&:url)) validator = Validator.new(podspec_path, SourcesManager.master.map(&:url))
validator.stubs(:check_file_patterns) validator.stubs(:check_file_patterns)
......
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