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
9eddb385
Commit
9eddb385
authored
Nov 14, 2012
by
Eloy Durán
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Integrator] Properly detect if the lib has been integrated.
Fixes #643 & #643. Related: #613.
parent
bf2c6398
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletion
+12
-1
CHANGELOG.md
CHANGELOG.md
+4
-0
cocoapods.rb
lib/cocoapods.rb
+1
-0
user_project_integrator.rb
lib/cocoapods/installer/user_project_integrator.rb
+1
-1
user_project_integrator_spec.rb
spec/functional/user_project_integrator_spec.rb
+6
-0
No files found.
CHANGELOG.md
View file @
9eddb385
...
...
@@ -13,6 +13,10 @@
###### Bug fixes
-
Always consider inline podspecs as needing installation.
-
Fix detection when the lib has already been integrated with the user’s target.
[
#643
](
https://github.com/CocoaPods/CocoaPods/issues/643
)
[
#614
](
https://github.com/CocoaPods/CocoaPods/issues/614
)
[
#613
](
https://github.com/CocoaPods/CocoaPods/issues/613
)
## 0.16.0.rc4
[
CocoaPods
](
https://github.com/CocoaPods/CocoaPods/compare/0.16.0.rc3...0.16.0.rc4
)
...
...
lib/cocoapods.rb
View file @
9eddb385
...
...
@@ -59,4 +59,5 @@ end
if
ENV
[
'COCOA_PODS_ENV'
]
==
'development'
require
'awesome_print'
require
'pry'
end
lib/cocoapods/installer/user_project_integrator.rb
View file @
9eddb385
...
...
@@ -140,7 +140,7 @@ module Pod
# Reject any target that already has this Pods library in one of its frameworks build phases
target
.
frameworks_build_phase
.
files
.
any?
do
|
build_file
|
file_ref
=
build_file
.
file_ref
!
file_ref
.
proxy?
&&
file_ref
.
name
==
@target_definition
.
lib_name
!
file_ref
.
proxy?
&&
file_ref
.
display_
name
==
@target_definition
.
lib_name
end
end
end
...
...
spec/functional/user_project_integrator_spec.rb
View file @
9eddb385
...
...
@@ -97,6 +97,12 @@ describe Pod::Installer::UserProjectIntegrator do
app_target
=
app_integrator
.
user_project
.
targets
.
find
{
|
t
|
t
.
name
==
'SampleProject'
}
app_target
.
frameworks_build_phase
.
files
.
last
.
remove_from_project
# Set the name of the libPods.a PBXFileReference to `nil` to ensure the file’s basename
# is used instead. Not sure yet what makes it so that the name is nil in the first place.
test_target
=
test_runner_integrator
.
user_project
.
targets
.
find
{
|
t
|
t
.
name
==
'TestRunner'
}
build_file
=
test_target
.
frameworks_build_phase
.
files
.
last
build_file
.
file_ref
.
name
=
nil
app_integrator
.
expects
(
:add_pods_library
)
test_runner_integrator
.
expects
(
:add_pods_library
).
never
...
...
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