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
1d273a66
Commit
1d273a66
authored
Sep 06, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodTargetInstaller] Link to system frameworks in this step
parent
d691d0bb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
7 deletions
+23
-7
pods_project_generator.rb
lib/cocoapods/installer/pods_project_generator.rb
+0
-7
pod_target_installer.rb
...roject_generator/target_installer/pod_target_installer.rb
+19
-0
pod_target_installer_spec.rb
...t_generator/target_installer/pod_target_installer_spec.rb
+4
-0
No files found.
lib/cocoapods/installer/pods_project_generator.rb
View file @
1d273a66
...
...
@@ -49,7 +49,6 @@ module Pod
install_targets
install_system_frameworks
set_target_dependencies
link_aggregate_target
end
# @return [Project] the generated Pods project.
...
...
@@ -176,12 +175,6 @@ module Pod
#
# @return [void]
#
def
link_aggregate_target
aggregate_targets
.
each
do
|
aggregate_target
|
native_target
=
aggregate_target
.
target
aggregate_target
.
pod_targets
.
each
do
|
pod_target
|
product
=
pod_target
.
target
.
product_reference
native_target
.
frameworks_build_phase
.
add_file_reference
(
product
)
end
end
end
...
...
lib/cocoapods/installer/pods_project_generator/target_installer/pod_target_installer.rb
View file @
1d273a66
...
...
@@ -21,6 +21,7 @@ module Pod
create_xcconfig_file
create_prefix_header
create_dummy_source
link_to_system_frameworks
end
end
...
...
@@ -132,6 +133,24 @@ module Pod
end
end
# Add a file reference to the system frameworks if needed and links the
# target to them.
#
# This is done only for informative purposes as the xcconfigs are the
# authoritative source of the build settings.
#
# @return [void]
#
def
link_to_system_frameworks
UI
.
message
"- Linking to system frameworks"
do
library
.
specs
.
each
do
|
spec
|
spec
.
consumer
(
library
.
platform
).
frameworks
.
each
do
|
framework
|
project
.
add_system_framework
(
framework
,
library
.
target
)
end
end
end
end
ENABLE_OBJECT_USE_OBJC_FROM
=
{
:ios
=>
Version
.
new
(
'6'
),
:osx
=>
Version
.
new
(
'10.8'
)
...
...
spec/unit/installer/pods_project_generator/target_installer/pod_target_installer_spec.rb
View file @
1d273a66
...
...
@@ -146,6 +146,10 @@ module Pod
dummy
.
read
.
should
.
include?
(
'@interface PodsDummy_Pods'
)
end
xit
'links to system frameworks'
do
end
#--------------------------------------------------------------------------------#
describe
"concerning ARC before and after iOS 6.0 and OS X 10.8"
do
...
...
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