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
1610e670
Commit
1610e670
authored
Jul 24, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodTargetInstaller] Use native Pathname methods
parent
053e9590
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
pod_target_installer.rb
...oapods/installer/target_installer/pod_target_installer.rb
+5
-9
No files found.
lib/cocoapods/installer/target_installer/pod_target_installer.rb
View file @
1610e670
...
@@ -190,8 +190,7 @@ module Pod
...
@@ -190,8 +190,7 @@ module Pod
# @return [void]
# @return [void]
#
#
def
link_module_map
def
link_module_map
module_map_path_name
=
Pathname
.
new
(
target
.
module_map_path
)
sandbox
.
public_headers
.
add_file
(
target
.
name
,
target
.
module_map_path
,
"module.modulemap"
,
target
.
platform
)
sandbox
.
public_headers
.
add_file
(
target
.
name
,
module_map_path_name
,
"module.modulemap"
,
target
.
platform
)
end
end
# Links a an umbrella header to Public headers.
# Links a an umbrella header to Public headers.
...
@@ -201,8 +200,7 @@ module Pod
...
@@ -201,8 +200,7 @@ module Pod
def
link_umbrella_header
def
link_umbrella_header
return
if
custom_module_map
return
if
custom_module_map
umbrella_header_path_name
=
Pathname
.
new
(
target
.
umbrella_header_path
)
sandbox
.
public_headers
.
add_files
(
target
.
name
,
[
target
.
umbrella_header_path
],
target
.
platform
)
sandbox
.
public_headers
.
add_files
(
target
.
name
,
[
umbrella_header_path_name
],
target
.
platform
)
end
end
# Creates a prefix header file which imports `UIKit` or `Cocoa` according
# Creates a prefix header file which imports `UIKit` or `Cocoa` according
...
@@ -303,11 +301,9 @@ module Pod
...
@@ -303,11 +301,9 @@ module Pod
add_file_to_support_group
(
path
)
add_file_to_support_group
(
path
)
unless
target
.
requires_frameworks?
unless
target
.
requires_frameworks?
File
.
open
(
path
)
do
|
source_file
|
contents
=
path
.
read
contents
=
source_file
.
read
contents
.
gsub!
(
/^\s*framework\s+module/
,
'module'
)
contents
.
gsub!
(
/^\s*framework\s+module/
,
'module'
)
path
.
open
(
'w'
)
{
|
f
|
f
.
write
(
contents
)
}
File
.
open
(
path
,
"w"
)
{
|
f
|
f
.
write
(
contents
)
}
end
end
end
native_target
.
build_configurations
.
each
do
|
c
|
native_target
.
build_configurations
.
each
do
|
c
|
...
...
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