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
2b774017
Commit
2b774017
authored
Sep 26, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4147 from CocoaPods/mr-quick-fix-scoping
[Analyzer] Build scoped pods once for each target definition
parents
b91df898
14bddb85
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
CHANGELOG.md
CHANGELOG.md
+9
-3
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+5
-8
analyzer_spec.rb
spec/unit/installer/analyzer_spec.rb
+1
-1
No files found.
CHANGELOG.md
View file @
2b774017
...
...
@@ -14,12 +14,12 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
*
Give a meaningful message for the case where there is no available stable
version for a pod,
and user do not explicitly specify the required version.
*
Give a meaningful message for the case where there is no available stable
version for a pod, and there is no explicit version requirement.
[
Muhammed Yavuz Nuzumlalı
](
https://github.com/manuyavuz
)
[
#4197
](
https://github.com/CocoaPods/CocoaPods/issues/4197
)
*
Use
watchsimulator when validating pods with the watchOS platform.
*
Use
`watchsimulator`
when validating pods with the watchOS platform.
[
Thomas Kollbach
](
https://github.com/toto
)
[
#4130
](
https://github.com/CocoaPods/CocoaPods/issues/4130
)
...
...
@@ -35,6 +35,12 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
and includes
`use_frameworks!`
for Swift projects.
[
Jamie Evans
](
https://github.com/JamieREvans
)
*
Either generate just one pod target or generate it once for each target
definition.
[
Marius Rackwitz
](
https://github.com/mrackwitz
)
[
#4034
](
https://github.com/CocoaPods/CocoaPods/issues/4034
)
## 0.39.0.beta.4 (2015-09-02)
##### Bug Fixes
...
...
lib/cocoapods/installer/analyzer.rb
View file @
2b774017
...
...
@@ -292,9 +292,9 @@ module Pod
pod_targets
=
distinct_targets
.
flat_map
do
|
_
,
targets_by_distinctors
|
if
targets_by_distinctors
.
count
>
1
# There are different sets of subspecs or the spec is used across different platforms
targets_by_distinctors
.
map
do
|
distinctor
,
target_definitions
|
targets_by_distinctors
.
flat_
map
do
|
distinctor
,
target_definitions
|
specs
,
=
*
distinctor
generate_pod_target
(
target_definitions
,
specs
,
:scoped
=>
true
)
generate_pod_target
(
target_definitions
,
specs
).
scoped
end
else
(
specs
,
_
),
target_definitions
=
targets_by_distinctors
.
first
...
...
@@ -317,7 +317,7 @@ module Pod
pod_targets
=
specs_by_target
.
flat_map
do
|
target_definition
,
specs
|
grouped_specs
=
specs
.
group_by
.
group_by
(
&
:root
).
values
.
uniq
grouped_specs
.
flat_map
do
|
pod_specs
|
generate_pod_target
([
target_definition
],
pod_specs
,
:scoped
=>
true
)
generate_pod_target
([
target_definition
],
pod_specs
).
scoped
end
end
pod_targets
.
each
do
|
target
|
...
...
@@ -364,13 +364,10 @@ module Pod
# @param [Array<Specification>] specs
# the specifications of an equal root.
#
# @param [Bool] scoped
# whether the pod target should be scoped
#
# @return [PodTarget]
#
def
generate_pod_target
(
target_definitions
,
pod_specs
,
scoped:
false
)
pod_target
=
PodTarget
.
new
(
pod_specs
,
target_definitions
,
sandbox
,
scoped
)
def
generate_pod_target
(
target_definitions
,
pod_specs
)
pod_target
=
PodTarget
.
new
(
pod_specs
,
target_definitions
,
sandbox
)
if
config
.
integrate_targets?
target_inspections
=
result
.
target_inspections
.
select
{
|
t
,
_
|
target_definitions
.
include?
(
t
)
}.
values
...
...
spec/unit/installer/analyzer_spec.rb
View file @
2b774017
...
...
@@ -196,7 +196,7 @@ module Pod
Pods/Pods-BananaLib
Pods/Pods-monkey
Pods-TestRunner/Pods-TestRunner-BananaLib
Pods-TestRunner/Pods-monkey
Pods-TestRunner/Pods-
TestRunner-
monkey
Pods-CLITool/Pods-CLITool-monkey
)
.
sort
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