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
9969b1db
Commit
9969b1db
authored
Jun 08, 2016
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5482 from CocoaPods/seg-no-dedup-frameworks
[PodTarget] Allow non-deduped targets to be frameworks
parents
8cd50c48
fbd751f3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
CHANGELOG.md
CHANGELOG.md
+3
-1
pod_target.rb
lib/cocoapods/target/pod_target.rb
+1
-0
analyzer_spec.rb
spec/unit/installer/analyzer_spec.rb
+31
-0
No files found.
CHANGELOG.md
View file @
9969b1db
...
@@ -14,7 +14,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -14,7 +14,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
##### Bug Fixes
*
None.
*
Fix installing pods with
`use_frameworks`
when deduplication is disabled.
[
Samuel Giddins
](
https://github.com/segiddins
)
[
#5481
](
https://github.com/CocoaPods/CocoaPods/issues/5481
)
## 1.0.1 (2016-06-02)
## 1.0.1 (2016-06-02)
...
...
lib/cocoapods/target/pod_target.rb
View file @
9969b1db
...
@@ -65,6 +65,7 @@ module Pod
...
@@ -65,6 +65,7 @@ module Pod
target
.
native_target
=
native_target
target
.
native_target
=
native_target
target
.
archs
=
archs
target
.
archs
=
archs
target
.
dependent_targets
=
dependent_targets
.
flat_map
{
|
pt
|
pt
.
scoped
(
cache
)
}.
select
{
|
pt
|
pt
.
target_definitions
==
[
target_definition
]
}
target
.
dependent_targets
=
dependent_targets
.
flat_map
{
|
pt
|
pt
.
scoped
(
cache
)
}.
select
{
|
pt
|
pt
.
target_definitions
==
[
target_definition
]
}
target
.
host_requires_frameworks
=
host_requires_frameworks
cache
[
cache_key
]
=
target
cache
[
cache_key
]
=
target
end
end
end
end
...
...
spec/unit/installer/analyzer_spec.rb
View file @
9969b1db
...
@@ -332,6 +332,37 @@ module Pod
...
@@ -332,6 +332,37 @@ module Pod
Pods-SampleProject/monkey-Pods-SampleProject
Pods-SampleProject/monkey-Pods-SampleProject
)
.
sort
)
.
sort
end
end
it
"doesn't deduplicate targets when deduplication is disabled and using frameworks"
do
podfile
=
Pod
::
Podfile
.
new
do
install!
'cocoapods'
,
:deduplicate_targets
=>
false
source
SpecHelper
.
test_repo_url
platform
:ios
,
'6.0'
project
'SampleProject/SampleProject'
use_frameworks!
pod
'BananaLib'
target
'SampleProject'
do
target
'TestRunner'
do
pod
'BananaLib'
end
end
end
analyzer
=
Pod
::
Installer
::
Analyzer
.
new
(
config
.
sandbox
,
podfile
)
result
=
analyzer
.
analyze
result
.
targets
.
flat_map
{
|
at
|
at
.
pod_targets
.
map
{
|
pt
|
"
#{
at
.
name
}
/
#{
pt
.
name
}
"
}
}.
sort
.
should
==
%w(
Pods-SampleProject-TestRunner/BananaLib-Pods-SampleProject-TestRunner
Pods-SampleProject-TestRunner/monkey-Pods-SampleProject-TestRunner
Pods-SampleProject/BananaLib-Pods-SampleProject
Pods-SampleProject/monkey-Pods-SampleProject
)
.
sort
result
.
targets
.
flat_map
{
|
at
|
at
.
pod_targets
.
map
(
&
:requires_frameworks?
)
}.
uniq
.
should
==
[
true
]
end
end
end
it
'generates the integration library appropriately if the installation will not integrate'
do
it
'generates the integration library appropriately if the installation will not integrate'
do
...
...
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