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
0e8ebf0a
Commit
0e8ebf0a
authored
Sep 07, 2015
by
Marius Rackwitz
Committed by
Samuel Giddins
Oct 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Spec] Test the integration with frameworks
Especially that the aggregate target's build product is weak linked.
parent
cb00e841
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
target_integrator_spec.rb
...staller/user_project_integrator/target_integrator_spec.rb
+16
-0
No files found.
spec/unit/installer/user_project_integrator/target_integrator_spec.rb
View file @
0e8ebf0a
...
@@ -60,6 +60,22 @@ module Pod
...
@@ -60,6 +60,22 @@ module Pod
build_file
.
should
.
not
.
be
.
nil
build_file
.
should
.
not
.
be
.
nil
end
end
it
'adds references to the Pods static framework to the Frameworks group'
do
@pod_bundle
.
stubs
(
:requires_frameworks?
=>
true
)
@target_integrator
.
integrate!
@target_integrator
.
send
(
:user_project
)[
'Frameworks/Pods.framework'
].
should
.
not
.
be
.
nil
end
it
'adds the Pods static framework to the "Link binary with libraries" build phase of each target'
do
@pod_bundle
.
stubs
(
:requires_frameworks?
=>
true
)
@target_integrator
.
integrate!
target
=
@target_integrator
.
send
(
:native_targets
).
first
phase
=
target
.
frameworks_build_phase
build_file
=
phase
.
files
.
find
{
|
f
|
f
.
file_ref
.
path
==
'Pods.framework'
}
build_file
.
should
.
not
.
be
.
nil
build_file
.
settings
[
'ATTRIBUTES'
].
should
==
%w(Weak)
end
it
'adds a Copy Pods Resources build phase to each target'
do
it
'adds a Copy Pods Resources build phase to each target'
do
@target_integrator
.
integrate!
@target_integrator
.
integrate!
target
=
@target_integrator
.
send
(
:native_targets
).
first
target
=
@target_integrator
.
send
(
:native_targets
).
first
...
...
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