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
451e5eaa
Commit
451e5eaa
authored
Jan 26, 2016
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4820 from CocoaPods/fix-header-mapping-dir
[PodTargetInstaller] Fix #4819
parents
39c46b5f
afb63286
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
14 deletions
+17
-14
CHANGELOG.md
CHANGELOG.md
+4
-0
pod_target_installer.rb
...oapods/installer/target_installer/pod_target_installer.rb
+1
-1
snake.tar.gz
spec/fixtures/snake.tar.gz
+0
-0
pod_target_installer_spec.rb
...t/installer/target_installer/pod_target_installer_spec.rb
+12
-13
No files found.
CHANGELOG.md
View file @
451e5eaa
...
...
@@ -10,6 +10,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
*
Don't try to embed project headers into frameworks.
[
Marius Rackwitz
](
https://github.com/mrackwitz
)
[
#4819
](
https://github.com/CocoaPods/CocoaPods/issues/4819
)
*
Fix a crash in the analyzer when target deduplication is deactivated.
[
Marius Rackwitz
](
https://github.com/mrackwitz
)
[
#4751
](
https://github.com/CocoaPods/CocoaPods/issues/4751
)
...
...
lib/cocoapods/installer/target_installer/pod_target_installer.rb
View file @
451e5eaa
...
...
@@ -349,7 +349,7 @@ module Pod
'Project'
end
if
target
.
requires_frameworks?
&&
header_mappings_dir
if
target
.
requires_frameworks?
&&
header_mappings_dir
&&
acl
!=
'Project'
relative_path
=
file_ref
.
real_path
.
relative_path_from
(
header_mappings_dir
)
sub_dir
=
relative_path
.
dirname
copy_phase_name
=
"Copy
#{
sub_dir
}
#{
acl
}
Headers"
...
...
spec/fixtures/snake.tar.gz
View file @
451e5eaa
No preview for this file type
spec/unit/installer/target_installer/pod_target_installer_spec.rb
View file @
451e5eaa
...
...
@@ -290,30 +290,35 @@ module Pod
target
=
@project
.
native_targets
.
first
target
.
name
.
should
==
'snake'
target
.
headers_build_phase
.
files
.
reject
{
|
build_file
|
build_file
.
settings
.
nil?
}.
map
(
&
:display_name
).
should
==
[
'snake-umbrella.h'
]
header_build_phase_file_refs
=
target
.
headers_build_phase
.
files
.
reject
{
|
build_file
|
build_file
.
settings
.
nil?
}.
map
{
|
build_file
|
build_file
.
file_ref
.
path
}
header_build_phase_file_refs
.
should
==
%w(
Code/C/Boa.h
Code/C/Garden.h
Code/C/Rattle.h
snake-umbrella.h
)
copy_files_build_phases
=
target
.
copy_files_build_phases
.
sort_by
(
&
:name
)
copy_files_build_phases
.
map
(
&
:name
).
should
==
[
'Copy . Public Headers'
,
'Copy A Public Headers'
,
'Copy B Public Headers'
,
'Copy C Public Headers'
,
'Copy B Private Headers'
,
]
copy_files_build_phases
.
map
(
&
:symbol_dst_subfolder_spec
).
should
==
Array
.
new
(
4
,
:products_directory
)
copy_files_build_phases
.
map
(
&
:symbol_dst_subfolder_spec
).
should
==
Array
.
new
(
3
,
:products_directory
)
copy_files_build_phases
.
map
(
&
:dst_path
).
should
==
[
'$(PUBLIC_HEADERS_FOLDER_PATH)/.'
,
'$(PUBLIC_HEADERS_FOLDER_PATH)/A'
,
'$(PUBLIC_HEADERS_FOLDER_PATH)/B'
,
'$(PUBLIC_HEADERS_FOLDER_PATH)/C'
,
'$(PRIVATE_HEADERS_FOLDER_PATH)/B'
,
]
copy_files_build_phases
.
map
{
|
phase
|
phase
.
files_references
.
map
(
&
:path
)
}.
should
==
[
[
'Code/snake.h'
],
[
'Code/A/Boa.h'
,
'Code/A/Garden.h'
,
'Code/A/Rattle.h'
],
[
'Code/B/Boa.h'
,
'Code/B/Garden.h'
,
'Code/B/Rattle.h'
],
[
'Code/C/Boa.h'
,
'Code/C/Garden.h'
,
'Code/C/Rattle.h'
],
]
end
...
...
@@ -323,12 +328,6 @@ module Pod
content
.
should
=~
%r{"A/Boa.h"}
content
.
should
=~
%r{"A/Garden.h"}
content
.
should
=~
%r{"A/Rattle.h"}
content
.
should
=~
%r{"B/Boa.h"}
content
.
should
=~
%r{"B/Garden.h"}
content
.
should
=~
%r{"B/Rattle.h"}
content
.
should
=~
%r{"C/Boa.h"}
content
.
should
=~
%r{"C/Garden.h"}
content
.
should
=~
%r{"C/Rattle.h"}
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