From 62338c8204731bef348ba259c767b906ec13af88 Mon Sep 17 00:00:00 2001 From: Omer Karisman Date: Mon, 4 Sep 2017 04:29:16 +0300 Subject: [PATCH] Metal does not work in simulator :( --- SceneKitVideoRecorder/Classes/PixelBufferFactory.swift | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/SceneKitVideoRecorder/Classes/PixelBufferFactory.swift b/SceneKitVideoRecorder/Classes/PixelBufferFactory.swift index 283b16b..8666636 100644 --- a/SceneKitVideoRecorder/Classes/PixelBufferFactory.swift +++ b/SceneKitVideoRecorder/Classes/PixelBufferFactory.swift @@ -3,7 +3,12 @@ // // Created by Omer Karisman on 2017/08/29. // - +#if arch(i386) || arch(x86_64) + import UIKit + struct PixelBufferFactory { + } + //Metal does not work in simulator :( +#else import UIKit struct PixelBufferFactory { @@ -42,4 +47,4 @@ struct PixelBufferFactory { } } - +#endif