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
7212de81
Commit
7212de81
authored
Apr 07, 2018
by
Paul Beusterien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix modular header access to header_dirs
parent
5cffb44f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
CHANGELOG.md
CHANGELOG.md
+4
-0
pod_target.rb
lib/cocoapods/target/pod_target.rb
+5
-1
pod_target_spec.rb
spec/unit/target/pod_target_spec.rb
+17
-0
No files found.
CHANGELOG.md
View file @
7212de81
...
@@ -13,6 +13,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -13,6 +13,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
##### Bug Fixes
*
Fix modular header access to header_dir's.
[
Paul Beusterien
](
https://github.com/paulb777
)
[
#7597
](
https://github.com/CocoaPods/CocoaPods/issues/7597
)
*
Inhibit warnings for all dependencies during validation except for the one being validated
*
Inhibit warnings for all dependencies during validation except for the one being validated
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
#7434
](
https://github.com/CocoaPods/CocoaPods/issues/7434
)
[
#7434
](
https://github.com/CocoaPods/CocoaPods/issues/7434
)
...
...
lib/cocoapods/target/pod_target.rb
View file @
7212de81
...
@@ -600,7 +600,11 @@ module Pod
...
@@ -600,7 +600,11 @@ module Pod
dependent_targets
=
recursive_dependent_targets
dependent_targets
=
recursive_dependent_targets
dependent_targets
+=
recursive_test_dependent_targets
if
include_test_dependent_targets
dependent_targets
+=
recursive_test_dependent_targets
if
include_test_dependent_targets
dependent_targets
.
each
do
|
dependent_target
|
dependent_targets
.
each
do
|
dependent_target
|
header_search_paths
.
concat
(
sandbox
.
public_headers
.
search_paths
(
platform
,
dependent_target
.
pod_name
,
defines_module?
&&
dependent_target
.
uses_modular_headers?
(
false
)))
header_search_paths
.
concat
(
sandbox
.
public_headers
.
search_paths
(
platform
,
dependent_target
.
pod_name
,
defines_module?
&&
dependent_target
.
uses_modular_headers?
(
false
)
&&
dependent_target
.
spec_consumers
.
none?
(
&
:header_dir
)))
end
end
header_search_paths
.
uniq
header_search_paths
.
uniq
end
end
...
...
spec/unit/target/pod_target_spec.rb
View file @
7212de81
...
@@ -326,6 +326,23 @@ module Pod
...
@@ -326,6 +326,23 @@ module Pod
]
]
end
end
it
'returns the correct header search paths for dependent targets with header_dir set'
do
@pod_target
.
build_headers
.
add_search_path
(
'BananaLib'
,
Platform
.
ios
)
@pod_target
.
sandbox
.
public_headers
.
add_search_path
(
'BananaLib'
,
Platform
.
ios
)
@pod_target
.
sandbox
.
public_headers
.
add_search_path
(
'monkey'
,
Platform
.
ios
)
@monkey_pod_target
=
fixture_pod_target
(
'monkey/monkey.podspec'
)
@monkey_pod_target
.
stubs
(
:platform
).
returns
(
Platform
.
ios
)
@pod_target
.
stubs
(
:dependent_targets
).
returns
([
@monkey_pod_target
])
@file_accessor
=
@monkey_pod_target
.
file_accessors
.
first
@file_accessor
.
spec_consumer
.
stubs
(
:header_dir
).
returns
(
'Sub_dir'
)
header_search_paths
=
@pod_target
.
header_search_paths
header_search_paths
.
sort
.
should
==
[
'${PODS_ROOT}/Headers/Private/BananaLib'
,
'${PODS_ROOT}/Headers/Public'
,
'${PODS_ROOT}/Headers/Public/monkey'
,
]
end
it
'returns the correct header search paths recursively for dependent targets excluding platform'
do
it
'returns the correct header search paths recursively for dependent targets excluding platform'
do
@pod_target
.
build_headers
.
add_search_path
(
'BananaLib'
,
Platform
.
ios
)
@pod_target
.
build_headers
.
add_search_path
(
'BananaLib'
,
Platform
.
ios
)
@pod_target
.
sandbox
.
public_headers
.
add_search_path
(
'BananaLib'
,
Platform
.
ios
)
@pod_target
.
sandbox
.
public_headers
.
add_search_path
(
'BananaLib'
,
Platform
.
ios
)
...
...
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