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
35b9250d
Commit
35b9250d
authored
Feb 02, 2014
by
Eloy Durán
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small syntax cleanups.
parent
abee9ea6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
aggregate_xcconfig.rb
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
+2
-2
aggregate_xcconfig_spec.rb
spec/unit/generator/xcconfig/aggregate_xcconfig_spec.rb
+1
-1
No files found.
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
View file @
35b9250d
...
...
@@ -46,7 +46,7 @@ module Pod
# @return [Xcodeproj::Config]
#
def
generate
header_search_path_flags
=
target
.
sandbox
.
public_headers
.
search_paths
.
map
{
|
path
|
'-isystem'
+
path
}
header_search_path_flags
=
target
.
sandbox
.
public_headers
.
search_paths
.
map
{
|
path
|
"-isystem
#{
path
}
"
}
@xcconfig
=
Xcodeproj
::
Config
.
new
({
'OTHER_LDFLAGS'
=>
XCConfigHelper
.
default_ld_flags
(
target
),
'HEADER_SEARCH_PATHS'
=>
XCConfigHelper
.
quote
(
target
.
sandbox
.
public_headers
.
search_paths
),
...
...
@@ -56,7 +56,7 @@ module Pod
})
target
.
pod_targets
.
each
do
|
pod_target
|
next
unless
pod_target
.
include_in_build_config?
@build_config
next
unless
pod_target
.
include_in_build_config?
(
@build_config
)
pod_target
.
file_accessors
.
each
do
|
file_accessor
|
XCConfigHelper
.
add_spec_build_settings_to_xcconfig
(
file_accessor
.
spec_consumer
,
@xcconfig
)
...
...
spec/unit/generator/xcconfig/aggregate_xcconfig_spec.rb
View file @
35b9250d
...
...
@@ -62,7 +62,7 @@ module Pod
end
it
'adds the sandbox public headers search paths to the xcconfig, with quotes, as system headers'
do
expected
=
"$(inherited)
\"
-isystem
#{
config
.
sandbox
.
public_headers
.
search_paths
.
join
(
'" -isystem
"'
)
}
\"
"
expected
=
"$(inherited)
\"
-isystem
#{
config
.
sandbox
.
public_headers
.
search_paths
.
join
(
'" -isystem
"'
)
}
\"
"
@xcconfig
.
to_hash
[
'OTHER_CFLAGS'
].
should
==
expected
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