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
96dd6ff5
Commit
96dd6ff5
authored
Aug 16, 2015
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TargetIntegrator] Extract target selection to #native_targets_to_embed_in
parent
89beeeff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
target_integrator.rb
...ds/installer/user_project_integrator/target_integrator.rb
+11
-4
No files found.
lib/cocoapods/installer/user_project_integrator/target_integrator.rb
View file @
96dd6ff5
...
...
@@ -146,10 +146,7 @@ module Pod
# @return [void]
#
def
add_embed_frameworks_script_phase
targets_to_embed_in
=
native_targets_to_integrate
.
select
do
|
target
|
EMBED_FRAMEWORK_TARGET_TYPES
.
include?
(
target
.
symbol_type
)
end
targets_to_embed_in
.
each
do
|
native_target
|
native_targets_to_embed_in
.
each
do
|
native_target
|
phase
=
create_or_update_build_phase
(
native_target
,
EMBED_FRAMEWORK_PHASE_NAME
)
script_path
=
target
.
embed_frameworks_script_relative_path
phase
.
shell_script
=
%("#{script_path}"\n)
...
...
@@ -230,6 +227,16 @@ module Pod
@native_targets
||=
target
.
user_targets
(
user_project
)
end
# @return [Array<PBXNativeTarget>] The list of all the targets that
# require that the pod frameworks are embedded in the output
# directory / product bundle.
#
def
native_targets_to_embed_in
native_targets_to_integrate
.
select
do
|
target
|
EMBED_FRAMEWORK_TARGET_TYPES
.
include?
(
target
.
symbol_type
)
end
end
# @return [Array<PBXNativeTarget>] The list of the targets
# that have not been integrated by past installations
# of
...
...
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