Commit 7d0846a4 authored by Boris Bügling's avatar Boris Bügling Committed by Samuel Giddins

Use UIKit for tvOS PCH instead of Foundation.

parent a3a20297
...@@ -84,6 +84,7 @@ module Pod ...@@ -84,6 +84,7 @@ module Pod
def generate_platform_import_header def generate_platform_import_header
case platform.name case platform.name
when :ios then "#import <UIKit/UIKit.h>\n" when :ios then "#import <UIKit/UIKit.h>\n"
when :tvos then "#import <UIKit/UIKit.h>\n"
when :osx then "#import <Cocoa/Cocoa.h>\n" when :osx then "#import <Cocoa/Cocoa.h>\n"
else "#import <Foundation/Foundation.h>\n" else "#import <Foundation/Foundation.h>\n"
end end
......
...@@ -42,7 +42,7 @@ module Pod ...@@ -42,7 +42,7 @@ module Pod
it 'imports Foundation for tvOS platforms' do it 'imports Foundation for tvOS platforms' do
@gen.stubs(:platform).returns(Pod::Platform.tvos) @gen.stubs(:platform).returns(Pod::Platform.tvos)
@gen.generate.should.include?('#import <Foundation/Foundation.h>') @gen.generate.should.include?('#import <UIKit/UIKit.h>')
end end
it 'writes the header file to the disk' do it 'writes the header file to the disk' do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment