Commit f41d364a authored by Samuel Giddins's avatar Samuel Giddins

[Installer] Dont crash when deintegrating & there are multiple xcodeprojs

parent 286c7734
......@@ -30,6 +30,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Samuel Giddins](https://github.com/segiddins)
[Xcodeproj#259](https://github.com/CocoaPods/Xcodeproj/issues/259)
* Fix crash when deintegrating due to major version change and there are
multiple root-level Xcode projects.
[Samuel Giddins](https://github.com/segiddins)
## 1.0.0.beta.1 (2015-12-30)
......
......@@ -505,7 +505,7 @@ module Pod
UI.section('Re-creating CocoaPods due to major version update.') do
projects = Pathname.glob(config.installation_root + '*.xcodeproj').map { |path| Xcodeproj::Project.open(path) }
deintegrator = Deintegrator.new
projects.sort.each do |project|
projects.each do |project|
config.with_changes(:silent => true) { deintegrator.deintegrate_project(project) }
project.save if project.dirty?
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