Commit 02d28e45 authored by Francis Chong's avatar Francis Chong

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

parent 58bea1eb
...@@ -141,7 +141,10 @@ module Pod ...@@ -141,7 +141,10 @@ module Pod
end end
def add_pods_library 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| targets.each do |target|
target.frameworks_build_phases.each { |build_phase| build_phase << pods_library } target.frameworks_build_phases.each { |build_phase| build_phase << pods_library }
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment