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
8287d689
Commit
8287d689
authored
Feb 10, 2017
by
Dimitris Koutsogiorgas
Committed by
GitHub
Feb 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6435 from dnkoutso/master
Correctly set runtime search paths for OSX unit test bundles
parents
73ef2fdf
bb14e08f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
2 deletions
+21
-2
CHANGELOG.md
CHANGELOG.md
+4
-0
aggregate_xcconfig.rb
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
+2
-1
cocoapods-integration-specs
spec/cocoapods-integration-specs
+1
-1
aggregate_xcconfig_spec.rb
spec/unit/generator/xcconfig/aggregate_xcconfig_spec.rb
+14
-0
No files found.
CHANGELOG.md
View file @
8287d689
...
@@ -27,6 +27,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -27,6 +27,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
#6373
](
https://github.com/CocoaPods/CocoaPods/issues/6373
)
[
#6373
](
https://github.com/CocoaPods/CocoaPods/issues/6373
)
*
Correctly set runtime search paths for OSX unit test bundles when using frameworks.
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
#6435
](
https://github.com/CocoaPods/CocoaPods/pull/6435
)
*
Add
`--skip-import-validation`
to skip linking a pod during lint.
*
Add
`--skip-import-validation`
to skip linking a pod during lint.
[
Samuel Giddins
](
https://github.com/segiddins
)
[
Samuel Giddins
](
https://github.com/segiddins
)
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
...
...
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
View file @
8287d689
...
@@ -217,8 +217,9 @@ module Pod
...
@@ -217,8 +217,9 @@ module Pod
ld_runpath_search_paths
=
[
'$(inherited)'
]
ld_runpath_search_paths
=
[
'$(inherited)'
]
if
target
.
platform
.
symbolic_name
==
:osx
if
target
.
platform
.
symbolic_name
==
:osx
ld_runpath_search_paths
<<
"'@executable_path/../Frameworks'"
ld_runpath_search_paths
<<
"'@executable_path/../Frameworks'"
symbol_type
=
target
.
user_targets
.
map
(
&
:symbol_type
).
uniq
.
first
ld_runpath_search_paths
<<
\
ld_runpath_search_paths
<<
\
if
target
.
native_target
.
symbol_type
==
:unit_test_bundle
if
symbol_type
==
:unit_test_bundle
"'@loader_path/../Frameworks'"
"'@loader_path/../Frameworks'"
else
else
"'@loader_path/Frameworks'"
"'@loader_path/Frameworks'"
...
...
cocoapods-integration-specs
@
d6b41d09
Subproject commit
10fea93357d6dda5f26165f7d92c4c66a2b47168
Subproject commit
d6b41d09e7a076f2f0078bce2f7cb1af9a7724a0
spec/unit/generator/xcconfig/aggregate_xcconfig_spec.rb
View file @
8287d689
...
@@ -253,6 +253,20 @@ module Pod
...
@@ -253,6 +253,20 @@ module Pod
@generator
.
generate
.
to_hash
[
'LD_RUNPATH_SEARCH_PATHS'
].
should
==
"$(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/../../Frameworks'"
@generator
.
generate
.
to_hash
[
'LD_RUNPATH_SEARCH_PATHS'
].
should
==
"$(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/../../Frameworks'"
end
end
it
'includes correct default runpath search path list for OSX unit test bundle user target'
do
@target
.
stubs
(
:platform
).
returns
(
Platform
.
new
(
:osx
,
'10.10'
))
mock_user_target
=
mock
(
'usertarget'
,
:symbol_type
=>
:unit_test_bundle
)
@target
.
stubs
(
:user_targets
).
returns
([
mock_user_target
])
@generator
.
generate
.
to_hash
[
'LD_RUNPATH_SEARCH_PATHS'
].
should
==
"$(inherited) '@executable_path/../Frameworks' '@loader_path/../Frameworks'"
end
it
'includes correct default runpath search path list for OSX application user target'
do
@target
.
stubs
(
:platform
).
returns
(
Platform
.
new
(
:osx
,
'10.10'
))
mock_user_target
=
mock
(
'usertarget'
,
:symbol_type
=>
:application
)
@target
.
stubs
(
:user_targets
).
returns
([
mock_user_target
])
@generator
.
generate
.
to_hash
[
'LD_RUNPATH_SEARCH_PATHS'
].
should
==
"$(inherited) '@executable_path/../Frameworks' '@loader_path/Frameworks'"
end
it
'uses the target definition swift version'
do
it
'uses the target definition swift version'
do
@target_definition
.
stubs
(
:swift_version
).
returns
(
'0.1'
)
@target_definition
.
stubs
(
:swift_version
).
returns
(
'0.1'
)
@generator
.
send
(
:target_swift_version
).
should
==
'0.1'
@generator
.
send
(
:target_swift_version
).
should
==
'0.1'
...
...
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