diff --git a/MotionDetection.xcodeproj/project.pbxproj b/MotionDetection.xcodeproj/project.pbxproj index 32e4e98..8b24999 100644 --- a/MotionDetection.xcodeproj/project.pbxproj +++ b/MotionDetection.xcodeproj/project.pbxproj @@ -236,7 +236,7 @@ 3E0EFF0D18C85C5400F9C33B /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0500; + LastUpgradeCheck = 0510; ORGANIZATIONNAME = "Artur Mkrtchyan"; TargetAttributes = { 3E0EFF3518C85C5400F9C33B = { @@ -379,8 +379,9 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 7.0; - ONLY_ACTIVE_ARCH = YES; + ONLY_ACTIVE_ARCH = NO; SDKROOT = iphoneos; + VALID_ARCHS = "armv7 armv7s"; }; name = Debug; }; @@ -414,6 +415,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 7.0; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; + VALID_ARCHS = "armv7 armv7s"; }; name = Release; }; diff --git a/MotionDetection/ViewController.m b/MotionDetection/ViewController.m index 978037a..98faa67 100644 --- a/MotionDetection/ViewController.m +++ b/MotionDetection/ViewController.m @@ -45,7 +45,7 @@ - (void)viewDidLoad // Do any additional setup after loading the view, typically from a nib. [SOMotionDetector sharedInstance].delegate = self; - [SOMotionDetector sharedInstance].useM7IfAvailable = self; // + [SOMotionDetector sharedInstance].useM7IfAvailable = YES; //Use M7 chip if available, otherwise use lib's algorithm [[SOMotionDetector sharedInstance] startDetection]; } diff --git a/SOMotionDetector/SOMotionDetector.h b/SOMotionDetector/SOMotionDetector.h index 23f2d65..b93e59e 100644 --- a/SOMotionDetector/SOMotionDetector.h +++ b/SOMotionDetector/SOMotionDetector.h @@ -71,7 +71,7 @@ typedef enum * Set this parameter before calling startDetection method. * Available only on devices that have M7 chip. At this time only the iPhone 5S, the iPad Air and iPad mini with retina display have the M7 coprocessor. */ -@property (nonatomic) BOOL useM7IfAvailable; +@property (nonatomic) BOOL useM7IfAvailable NS_AVAILABLE_IOS(7_0); /**