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
125c4cd8
Commit
125c4cd8
authored
Sep 27, 2011
by
Joshua Weinberg
Committed by
Eloy Duran
Oct 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some minor code cleanup based on alloy's feedback
parent
4f6db1ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
project.rb
lib/cocoapods/xcode/project.rb
+3
-7
No files found.
lib/cocoapods/xcode/project.rb
View file @
125c4cd8
...
...
@@ -61,7 +61,7 @@ module Pod
# Working around a bug in Xcode 4.2 betas, remove this once the Xcode bug is fixed:
# https://github.com/alloy/cocoapods/issues/13
#add_file_to_list('PBXHeadersBuildPhase', build_file_uuid)
add_file_to_list
(
'PBXCopyFilesBuildPhase'
,
build_file_uuid
,
lambda
{
|
uuid
,
_
|
uuid
==
phase_uuid
})
add_file_to_list
(
'PBXCopyFilesBuildPhase'
,
build_file_uuid
)
{
|
uuid
,
_
|
uuid
==
phase_uuid
}
else
extra
=
compiler_flags
?
{
"settings"
=>
{
"COMPILER_FLAGS"
=>
compiler_flags
}}
:
{}
build_file_uuid
=
add_build_file
(
file_ref_uuid
,
extra
)
...
...
@@ -129,13 +129,9 @@ module Pod
}))
end
def
add_file_to_list
(
isa
,
build_file_uuid
,
condition
=
nil
)
def
add_file_to_list
(
isa
,
build_file_uuid
,
&
condition
)
isa_objects
=
objects_by_isa
(
isa
)
object_uuid
,
object
=
isa_objects
.
first
if
condition
!=
nil
object_uuid
,
object
=
isa_objects
.
select
(
&
condition
).
first
end
object_uuid
,
object
=
(
condition
!=
nil
?
isa_objects
.
select
(
&
condition
)
:
isa_objects
).
first
object
[
'files'
]
<<
build_file_uuid
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