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
fdd01dfe
Commit
fdd01dfe
authored
Feb 12, 2016
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Installer] Use #dependent_targets
parent
64fa978e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
17 deletions
+9
-17
installer.rb
lib/cocoapods/installer.rb
+9
-17
No files found.
lib/cocoapods/installer.rb
View file @
fdd01dfe
...
@@ -660,23 +660,15 @@ module Pod
...
@@ -660,23 +660,15 @@ module Pod
aggregate_target
.
native_target
.
add_dependency
(
pod_target
.
native_target
)
aggregate_target
.
native_target
.
add_dependency
(
pod_target
.
native_target
)
configure_app_extension_api_only_for_target
(
pod_target
)
if
is_app_extension
configure_app_extension_api_only_for_target
(
pod_target
)
if
is_app_extension
pod_target
.
dependencies
.
each
do
|
dep
|
pod_target
.
dependent_targets
.
each
do
|
pod_dependency_target
|
unless
dep
==
pod_target
.
pod_name
next
unless
pod_dependency_target
.
should_build?
pod_dependency_target
=
aggregate_target
.
pod_targets
.
find
{
|
target
|
target
.
pod_name
==
dep
}
pod_target
.
native_target
.
add_dependency
(
pod_dependency_target
.
native_target
)
# TODO: remove me
configure_app_extension_api_only_for_target
(
pod_dependency_target
)
if
is_app_extension
unless
pod_dependency_target
puts
"[BUG] DEP:
#{
dep
}
"
if
pod_target
.
requires_frameworks?
end
product_ref
=
frameworks_group
.
files
.
find
{
|
f
|
f
.
path
==
pod_dependency_target
.
product_name
}
||
frameworks_group
.
new_product_ref_for_target
(
pod_dependency_target
.
product_basename
,
pod_dependency_target
.
product_type
)
next
unless
pod_dependency_target
.
should_build?
pod_target
.
native_target
.
frameworks_build_phase
.
add_file_reference
(
product_ref
,
true
)
pod_target
.
native_target
.
add_dependency
(
pod_dependency_target
.
native_target
)
configure_app_extension_api_only_for_target
(
pod_dependency_target
)
if
is_app_extension
if
pod_target
.
requires_frameworks?
product_ref
=
frameworks_group
.
files
.
find
{
|
f
|
f
.
path
==
pod_dependency_target
.
product_name
}
||
frameworks_group
.
new_product_ref_for_target
(
pod_dependency_target
.
product_basename
,
pod_dependency_target
.
product_type
)
pod_target
.
native_target
.
frameworks_build_phase
.
add_file_reference
(
product_ref
,
true
)
end
end
end
end
end
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