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
c426f623
Commit
c426f623
authored
Dec 13, 2014
by
Boris Bügling
Committed by
Marius Rackwitz
Dec 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not add unbuild frameworks to the embed frameworks script.
parent
07711f7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
aggregate_target_installer.rb
.../installer/target_installer/aggregate_target_installer.rb
+2
-1
aggregate_target_installer_spec.rb
...aller/target_installer/aggregate_target_installer_spec.rb
+19
-0
No files found.
lib/cocoapods/installer/target_installer/aggregate_target_installer.rb
View file @
c426f623
module
Pod
class
Installer
# Creates the targets which aggregate the Pods libraries in the Pods
...
...
@@ -127,7 +128,7 @@ module Pod
frameworks_by_config
=
{}
target
.
user_build_configurations
.
keys
.
each
do
|
config
|
frameworks_by_config
[
config
]
=
target
.
pod_targets
.
select
do
|
pod_target
|
pod_target
.
include_in_build_config?
(
config
)
pod_target
.
include_in_build_config?
(
config
)
&&
pod_target
.
should_build?
end
.
map
(
&
:product_name
)
end
generator
=
Generator
::
EmbedFrameworksScript
.
new
(
target_definition
,
frameworks_by_config
)
...
...
spec/unit/installer/target_installer/aggregate_target_installer_spec.rb
View file @
c426f623
...
...
@@ -150,6 +150,25 @@ module Pod
end
it
'does add pods to the embed frameworks script'
do
@pod_target
.
stubs
(
:requires_frameworks?
=>
true
)
@target
.
stubs
(
:requires_frameworks?
=>
true
)
@installer
.
install!
support_files_dir
=
config
.
sandbox
.
target_support_files_dir
(
'Pods'
)
script
=
support_files_dir
+
'Pods-frameworks.sh'
script
.
read
.
should
.
include?
(
'BananaLib.framework'
)
end
it
'does not add pods to the embed frameworks script if they are not to be build'
do
@pod_target
.
stubs
(
:should_build?
=>
false
)
@pod_target
.
stubs
(
:requires_frameworks?
=>
true
)
@target
.
stubs
(
:requires_frameworks?
=>
true
)
@installer
.
install!
support_files_dir
=
config
.
sandbox
.
target_support_files_dir
(
'Pods'
)
script
=
support_files_dir
+
'Pods-frameworks.sh'
script
.
read
.
should
.
not
.
include?
(
'BananaLib.framework'
)
end
it
'creates the acknowledgements files '
do
@installer
.
install!
support_files_dir
=
config
.
sandbox
.
target_support_files_dir
(
'Pods'
)
...
...
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