Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
f41d364a
Commit
f41d364a
authored
Jan 05, 2016
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Installer] Dont crash when deintegrating & there are multiple xcodeprojs
parent
286c7734
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
CHANGELOG.md
CHANGELOG.md
+4
-0
installer.rb
lib/cocoapods/installer.rb
+1
-1
No files found.
CHANGELOG.md
View file @
f41d364a
...
...
@@ -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)
...
...
lib/cocoapods/installer.rb
View file @
f41d364a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment