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
7ff9ec78
Commit
7ff9ec78
authored
Sep 07, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link the target product according to its type
parent
a4742576
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
aggregate_xcconfig.rb
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
+7
-4
No files found.
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
View file @
7ff9ec78
...
...
@@ -72,11 +72,14 @@ module Pod
end
end
# Add pod static lib to list of libraries that are to be linked with
# the user’s project.
# Add pod framework to list of frameworks / libraries that are
# linked with the user’s project.
next
unless
pod_target
.
should_build?
@xcconfig
.
merge!
(
'OTHER_LDFLAGS'
=>
%(-l "#{pod_target.name}")
)
if
pod_target
.
requires_framework?
@xcconfig
.
merge!
(
'OTHER_LDFLAGS'
=>
%(-framework "#{pod_target.product_basename}")
)
else
@xcconfig
.
merge!
(
'OTHER_LDFLAGS'
=>
%(-l "#{pod_target.product_basename}")
)
end
end
# TODO Need to decide how we are going to ensure settings like these
...
...
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