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
5cdcf8a8
Commit
5cdcf8a8
authored
Dec 11, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LocalPod] Fix compiler flags.
parent
e30cbd78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
local_pod.rb
lib/cocoapods/local_pod.rb
+7
-2
No files found.
lib/cocoapods/local_pod.rb
View file @
5cdcf8a8
...
@@ -456,15 +456,20 @@ module Pod
...
@@ -456,15 +456,20 @@ module Pod
# @raise If the {#add_file_references_to_project} was not called before of
# @raise If the {#add_file_references_to_project} was not called before of
# calling this method.
# calling this method.
#
#
# @todo Check compiler flags implementation and xcconfig implementation.
#
# @return [void]
# @return [void]
#
#
def
add_build_files_to_target
(
target
)
def
add_build_files_to_target
(
target
)
unless
file_references_by_spec
unless
file_references_by_spec
raise
Informative
,
"Local Pod needs to add the file references to the "
\
raise
Informative
,
"Local Pod needs to add the file references to the "
\
"project before adding the build files to the target."
"project before adding the build files to the target."
end
end
file_references_by_spec
.
each
do
|
spec
,
file_reference
|
file_references_by_spec
.
each
do
|
spec
,
file_reference
|
target
.
add_file_references
(
file_reference
,
(
spec
.
compiler_flags
*
" "
).
strip
)
flags
=
spec
.
compiler_flags
.
dup
flags
<<
'-fobjc-arc'
if
spec
.
requires_arc
flags
=
flags
*
" "
target
.
add_file_references
(
file_reference
,
flags
)
end
end
end
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