Commit 77f29854 authored by Kyle Fuller's avatar Kyle Fuller

[Installer] Fix issue inheriting pods into empty target

Fixes https://github.com/CocoaPods/CocoaPods/issues/2591
parent 6cedabcb
......@@ -55,6 +55,11 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[#2561](https://github.com/CocoaPods/CocoaPods/issues/2561)
[#2593](https://github.com/CocoaPods/CocoaPods/issues/2593)
* Fix a crash when running `pod install` with an empty target that inherits a
pod from a parent target.
[Kyle Fuller](https://github.com/kylef)
[#2591](https://github.com/CocoaPods/CocoaPods/issues/2591)
## 0.34.1
......
......@@ -402,13 +402,13 @@ module Pod
def install_libraries
UI.message '- Installing targets' do
pod_targets.sort_by(&:name).each do |pod_target|
next if pod_target.target_definition.empty?
next if pod_target.target_definition.dependencies.empty?
target_installer = PodTargetInstaller.new(sandbox, pod_target)
target_installer.install!
end
aggregate_targets.sort_by(&:name).each do |target|
next if target.target_definition.empty?
next if target.target_definition.dependencies.empty?
target_installer = AggregateTargetInstaller.new(sandbox, target)
target_installer.install!
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