lib/pod_builder/command/build.rb in pod-builder-2.0.0.beta.35 vs lib/pod_builder/command/build.rb in pod-builder-2.0.0.beta.36
- old
+ new
@@ -70,14 +70,18 @@
check_dependencies_build_configurations(all_buildable_items)
podfiles_items = [pods_to_build_debug] + [pods_to_build_release]
install_using_frameworks = Podfile::install_using_frameworks(analyzer)
-
- if install_using_frameworks
- raise "\n\nOnly static library packaging currently supported for react native projects. Please remove 'use_frameworks!' in #{PodBuilder::basepath("Podfile")}".red if Configuration.react_native_project
- else
+ if Configuration.react_native_project
+ if install_using_frameworks
+ raise "\n\nOnly static library packaging currently supported for react native projects. Please remove 'use_frameworks!' in #{PodBuilder::basepath("Podfile")}".red
+ end
prepare_defines_modules_override(all_buildable_items)
+ else
+ unless install_using_frameworks
+ raise "\n\nOnly framework packaging currently supported. Please add 'use_frameworks!' at root level (not nested in targets) in #{PodBuilder::basepath("Podfile")}".red
+ end
end
install_result = InstallResult.new
podfiles_items.reject { |x| x.empty? }.each do |podfile_items|
build_configuration = podfile_items.map(&:build_configuration).uniq.first