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
6f4f4e44
Commit
6f4f4e44
authored
Aug 19, 2017
by
Danielle Tomlinson
Committed by
Samuel Giddins
Feb 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure umbrella header is copied correctly
parent
e973c141
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
pod_target_installer.rb
...ller/xcode/pods_project_generator/pod_target_installer.rb
+13
-0
No files found.
lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb
View file @
6f4f4e44
...
...
@@ -46,6 +46,7 @@ module Pod
create_build_phase_to_symlink_header_folders
else
add_copy_module_map_build_phase
add_copy_umbrella_header_build_phase
end
unless
skip_pch?
(
target
.
non_test_specs
)
path
=
target
.
prefix_header_path
...
...
@@ -687,6 +688,18 @@ module Pod
copy_phase
=
native_target
.
copy_files_build_phases
.
find
{
|
bp
|
bp
.
name
==
copy_phase_name
}
||
native_target
.
new_copy_files_build_phase
(
copy_phase_name
)
copy_phase
.
symbol_dst_subfolder_spec
=
:products_directory
copy_phase
.
add_file_reference
(
file_ref
,
false
)
end
end
# FIXME: Umbrella header should be copied as part of copy public headers?
def
add_copy_umbrella_header_build_phase
(
path
=
target
.
umbrella_header_path
.
relative_path_from
(
target
.
support_files_dir
))
if
!
target
.
requires_frameworks?
&&
!
target
.
uses_swift?
file_ref
=
support_files_group
.
find_file_by_path
(
path
.
to_s
)
copy_phase_name
=
'Copy umbrella header'
copy_phase
=
native_target
.
copy_files_build_phases
.
find
{
|
bp
|
bp
.
name
==
copy_phase_name
}
||
native_target
.
new_copy_files_build_phase
(
copy_phase_name
)
copy_phase
.
symbol_dst_subfolder_spec
=
:products_directory
copy_phase
.
dst_path
=
'Headers/'
copy_phase
.
add_file_reference
(
file_ref
,
false
)
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