Skip to content
This repository was archived by the owner on Mar 10, 2022. It is now read-only.

Commit 3ee9c8e

Browse files
author
Chris Combs
committed
Fixing iOS 8 issue
1 parent 8baede5 commit 3ee9c8e

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

QRIO.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
261261
GCC_WARN_UNUSED_FUNCTION = YES;
262262
GCC_WARN_UNUSED_VARIABLE = YES;
263-
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
263+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
264264
MTL_ENABLE_DEBUG_INFO = YES;
265265
ONLY_ACTIVE_ARCH = YES;
266266
SDKROOT = iphoneos;
@@ -303,7 +303,7 @@
303303
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
304304
GCC_WARN_UNUSED_FUNCTION = YES;
305305
GCC_WARN_UNUSED_VARIABLE = YES;
306-
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
306+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
307307
MTL_ENABLE_DEBUG_INFO = NO;
308308
SDKROOT = iphoneos;
309309
TARGETED_DEVICE_FAMILY = "1,2";

QRIO/QRIO.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import UIKit
1010
import AVFoundation
11+
import CoreImage
1112

1213
public class QRInput: NSObject, AVCaptureMetadataOutputObjectsDelegate {
1314
private var session: AVCaptureSession?
@@ -97,7 +98,7 @@ public extension UIImage {
9798
}
9899

99100
let qrImage = resultImage.imageByApplyingTransform(CGAffineTransformMakeScale(scaleX, scaleY))
100-
let context = CIContext(options: nil)
101+
let context = CIContext()
101102
if let tempImage: CGImageRef = context.createCGImage(qrImage, fromRect: qrImage.extent) {
102103
return UIImage(CGImage: tempImage)
103104
}

0 commit comments

Comments
 (0)