lib/pod_builder/command/build.rb in pod-builder-0.9.6 vs lib/pod_builder/command/build.rb in pod-builder-0.9.7

- old
+ new

@@ -236,10 +236,10 @@ raise "Dependencies of `#{pod.name}` don't have the same build configuration (#{pod.build_configuration}) of `#{pods_with_unaligned_build_configuration.join(",")}`'s dependencies" if pods_with_unaligned_build_configuration.count > 0 end end def self.check_not_building_development_pods(pods, options) - if (development_pods = pods.select { |x| x.is_development_pod }) && development_pods.count > 0 && options[:allow_warnings].nil? + if (development_pods = pods.select { |x| x.is_development_pod }) && development_pods.count > 0 && (options[:allow_warnings].nil? && Configuration.allow_building_development_pods == false) pod_names = development_pods.map(&:name).join(", ") raise "The following pods are in development mode: `#{pod_names}`, won't proceed building.\n\nYou can ignore this error by passing the `--allow-warnings` flag to the build command\n" end end