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
726679b8
Commit
726679b8
authored
Nov 02, 2017
by
Dimitris Koutsogiorgas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not display script phases warnings multiple times per platform
parent
fcb6a0be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
CHANGELOG.md
CHANGELOG.md
+4
-0
installer.rb
lib/cocoapods/installer.rb
+4
-5
No files found.
CHANGELOG.md
View file @
726679b8
...
@@ -14,6 +14,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -14,6 +14,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
##### Bug Fixes
*
Do not display script phases warnings multiple times per platform
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
#7193
](
https://github.com/CocoaPods/CocoaPods/pull/7193
)
*
Prevent passing empty string to git when running
`pod repo update --silent`
*
Prevent passing empty string to git when running
`pod repo update --silent`
[
Jon Sorrells
](
https://github.com/jonsorrells
)
[
Jon Sorrells
](
https://github.com/jonsorrells
)
[
#7176
](
https://github.com/CocoaPods/CocoaPods/issues/7176
)
[
#7176
](
https://github.com/CocoaPods/CocoaPods/issues/7176
)
...
...
lib/cocoapods/installer.rb
View file @
726679b8
...
@@ -530,12 +530,11 @@ module Pod
...
@@ -530,12 +530,11 @@ module Pod
#
#
def
warn_for_installed_script_phases
def
warn_for_installed_script_phases
pods_to_install
=
sandbox_state
.
added
|
sandbox_state
.
changed
pods_to_install
=
sandbox_state
.
added
|
sandbox_state
.
changed
pod_targets
.
each
do
|
pod_target
|
pod_targets
.
group_by
(
&
:pod_name
).
each
do
|
name
,
pod_targets
|
spec
=
pod_target
.
root_spec
if
pods_to_install
.
include?
(
name
)
if
pods_to_install
.
include?
(
spec
.
name
)
script_phase_count
=
pod_targets
.
inject
(
0
)
{
|
sum
,
target
|
sum
+
target
.
script_phases
.
count
}
script_phase_count
=
pod_target
.
script_phases
.
count
unless
script_phase_count
.
zero?
unless
script_phase_count
.
zero?
UI
.
warn
"
#{
spec
.
name
}
has added
#{
pod_target
.
script_phases
.
count
}
#{
'script phase'
.
pluralize
(
script_phase_count
)
}
. "
\
UI
.
warn
"
#{
name
}
has added
#{
script_phase_
count
}
#{
'script phase'
.
pluralize
(
script_phase_count
)
}
. "
\
'Please inspect before executing a build. See `https://guides.cocoapods.org/syntax/podspec.html#script_phases` for more information.'
'Please inspect before executing a build. See `https://guides.cocoapods.org/syntax/podspec.html#script_phases` for more information.'
end
end
end
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