Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

In case of project have no Frameworks group, raise a meaningful error. (

  • Loading branch information...
commit 02d28e45af5615714c1e2f72b220746e98f04598 1 parent 58bea1e
@siuying siuying authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/cocoapods/installer/user_project_integrator.rb
View
5 lib/cocoapods/installer/user_project_integrator.rb
@@ -141,7 +141,10 @@ def add_xcconfig_base_configuration
end
def add_pods_library
- pods_library = user_project.group("Frameworks").files.new_static_library(@target_definition.label)
+ framework_group = user_project.group("Frameworks")
+ raise Informative, "Cannot add pod library to project. Please check if the project have a 'Frameworks' group in the root of the project." unless framework_group
+
+ pods_library = framework_group.files.new_static_library(@target_definition.label)
targets.each do |target|
target.frameworks_build_phases.each { |build_phase| build_phase << pods_library }
end
Please sign in to comment.
Something went wrong with that request. Please try again.