# It checks that every file pattern specified in a spec yields
# at least one file. It requires the pods to be already present
# in the current working directory under Pods/spec.name.
#
# @return [Array<String>]
#
defcheck_file_patterns
error"The sources did not match any file"if!spec.source_files.empty?&&@pod.source_files.empty?
error"The resources did not match any file"if!spec.resources.empty?&&@pod.resource_files.empty?
error"The preserve_paths did not match any file"if!spec.preserve_paths.empty?&&@pod.preserve_files.empty?
error"The exclude_header_search_paths did not match any file"if!spec.exclude_header_search_paths.empty?&&@pod.headers_excluded_from_search_paths.empty?