Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Aug 1, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/cocoapods/installer/user_project_integrator.rb
Expand Up @@ -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
Expand Down