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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
pod_target_installer.rb
...oapods/installer/target_installer/pod_target_installer.rb
+4
-8
No files found.
lib/cocoapods/installer/target_installer/pod_target_installer.rb
View file @
1610e670
...
...
@@ -190,8 +190,7 @@ module Pod
# @return [void]
#
def
link_module_map
module_map_path_name
=
Pathname
.
new
(
target
.
module_map_path
)
sandbox
.
public_headers
.
add_file
(
target
.
name
,
module_map_path_name
,
"module.modulemap"
,
target
.
platform
)
sandbox
.
public_headers
.
add_file
(
target
.
name
,
target
.
module_map_path
,
"module.modulemap"
,
target
.
platform
)
end
# Links a an umbrella header to Public headers.
...
...
@@ -201,8 +200,7 @@ module Pod
def
link_umbrella_header
return
if
custom_module_map
umbrella_header_path_name
=
Pathname
.
new
(
target
.
umbrella_header_path
)
sandbox
.
public_headers
.
add_files
(
target
.
name
,
[
umbrella_header_path_name
],
target
.
platform
)
sandbox
.
public_headers
.
add_files
(
target
.
name
,
[
target
.
umbrella_header_path
],
target
.
platform
)
end
# Creates a prefix header file which imports `UIKit` or `Cocoa` according
...
...
@@ -303,11 +301,9 @@ module Pod
add_file_to_support_group
(
path
)
unless
target
.
requires_frameworks?
File
.
open
(
path
)
do
|
source_file
|
contents
=
source_file
.
read
contents
=
path
.
read
contents
.
gsub!
(
/^\s*framework\s+module/
,
'module'
)
File
.
open
(
path
,
"w"
)
{
|
f
|
f
.
write
(
contents
)
}
end
path
.
open
(
'w'
)
{
|
f
|
f
.
write
(
contents
)
}
end
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