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
7d0846a4
Commit
7d0846a4
authored
Sep 10, 2015
by
Boris Bügling
Committed by
Samuel Giddins
Sep 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use UIKit for tvOS PCH instead of Foundation.
parent
a3a20297
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
header.rb
lib/cocoapods/generator/header.rb
+1
-0
header_spec.rb
spec/unit/generator/header_spec.rb
+1
-1
No files found.
lib/cocoapods/generator/header.rb
View file @
7d0846a4
...
...
@@ -84,6 +84,7 @@ module Pod
def
generate_platform_import_header
case
platform
.
name
when
:ios
then
"#import <UIKit/UIKit.h>
\n
"
when
:tvos
then
"#import <UIKit/UIKit.h>
\n
"
when
:osx
then
"#import <Cocoa/Cocoa.h>
\n
"
else
"#import <Foundation/Foundation.h>
\n
"
end
...
...
spec/unit/generator/header_spec.rb
View file @
7d0846a4
...
...
@@ -42,7 +42,7 @@ module Pod
it
'imports Foundation for tvOS platforms'
do
@gen
.
stubs
(
:platform
).
returns
(
Pod
::
Platform
.
tvos
)
@gen
.
generate
.
should
.
include?
(
'#import <
Foundation/Foundation
.h>'
)
@gen
.
generate
.
should
.
include?
(
'#import <
UIKit/UIKit
.h>'
)
end
it
'writes the header file to the disk'
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