Skip to content

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

Merged
merged 1 commit into from Aug 1, 2012
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
Something went wrong with that request. Please try again.