├── PebbleCam.ipa ├── PebbleCam ├── 5min.mp3 ├── Icon.png ├── en.lproj │ └── InfoPlist.strings ├── Default.png ├── Icon@2x.png ├── Default@2x.png ├── switchCamera.png ├── Default-568h@2x.png ├── switchCamera@2x.png ├── switchCameraPressed.png ├── switchCameraPressed@2x.png ├── PCAppDelegate.h ├── PebbleCam-Prefix.pch ├── main.m ├── CameraViewController.h ├── CaptureSessionManager.h ├── PebbleCam-Info.plist ├── Storyboard.storyboard ├── PCAppDelegate.m ├── CaptureSessionManager.m └── CameraViewController.m ├── .gitignore ├── README.md └── PebbleCam.xcodeproj └── project.pbxproj /PebbleCam.ipa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/PebbleCam/master/PebbleCam.ipa -------------------------------------------------------------------------------- /PebbleCam/5min.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/PebbleCam/master/PebbleCam/5min.mp3 -------------------------------------------------------------------------------- /PebbleCam/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/PebbleCam/master/PebbleCam/Icon.png -------------------------------------------------------------------------------- /PebbleCam/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /PebbleCam/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/PebbleCam/master/PebbleCam/Default.png -------------------------------------------------------------------------------- /PebbleCam/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/PebbleCam/master/PebbleCam/Icon@2x.png -------------------------------------------------------------------------------- /PebbleCam/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/PebbleCam/master/PebbleCam/Default@2x.png -------------------------------------------------------------------------------- /PebbleCam/switchCamera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/PebbleCam/master/PebbleCam/switchCamera.png -------------------------------------------------------------------------------- /PebbleCam/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/PebbleCam/master/PebbleCam/Default-568h@2x.png -------------------------------------------------------------------------------- /PebbleCam/switchCamera@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/PebbleCam/master/PebbleCam/switchCamera@2x.png -------------------------------------------------------------------------------- /PebbleCam/switchCameraPressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/PebbleCam/master/PebbleCam/switchCameraPressed.png -------------------------------------------------------------------------------- /PebbleCam/switchCameraPressed@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/PebbleCam/master/PebbleCam/switchCameraPressed@2x.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | .DS_Store 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | *.xcworkspace 13 | !default.xcworkspace 14 | xcuserdata 15 | profile 16 | *.moved-aside 17 | DerivedData 18 | .idea/ 19 | -------------------------------------------------------------------------------- /PebbleCam/PCAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // PCAppDelegate.h 3 | // PebbleCam 4 | // 5 | // Created by Tyler Hall on 4/8/13. 6 | // Copyright (c) 2013 Tyler Hall. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface PCAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /PebbleCam/PebbleCam-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'PebbleCam' target in the 'PebbleCam' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_3_0 8 | #warning "This project uses features only available in iOS SDK 3.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /PebbleCam/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // PebbleCam 4 | // 5 | // Created by Tyler Hall on 4/8/13. 6 | // Copyright (c) 2013 Tyler Hall. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "PCAppDelegate.h" 12 | 13 | int main(int argc, char *argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([PCAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /PebbleCam/CameraViewController.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import "CaptureSessionManager.h" 5 | 6 | @interface CameraViewController : UIViewController { 7 | AVAudioPlayer *_avplayer; 8 | } 9 | 10 | @property (strong) CaptureSessionManager *captureManager; 11 | @property (nonatomic, strong) UILabel *scanningLabel; 12 | @property (nonatomic, strong) UIButton *cameraFlipButton; 13 | @property BOOL camera; 14 | 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | PebbleCam 2 | ========= 3 | 4 | A silly hack that lets you use your Pebble smart watch as a remote shutter for your iPhone's camera. 5 | 6 | The app works by playing a blank mp3 file in the background on iOS. This lets us tap into Pebble's remote 7 | control events (play/pause buttons). When play/pause is pressed, the app snaps a photo. Simple, eh? 8 | 9 | Here's a YouTube video of the app in action... 10 | 11 | [![Video screenshot](http://f.cl.ly/items/2r3w2j3C3o271A3K1k1g/PebbleCamVideo.png)](http://www.youtube.com/watch?v=_1zl_Hk9_xc&feature=youtu.be) 12 | -------------------------------------------------------------------------------- /PebbleCam/CaptureSessionManager.h: -------------------------------------------------------------------------------- 1 | // Much of this code was taken from: http://www.musicalgeometry.com/?p=1297 2 | 3 | #import 4 | 5 | #define kImageCapturedSuccessfully @"imageCapturedSuccessfully" 6 | 7 | @interface CaptureSessionManager : NSObject { 8 | 9 | } 10 | 11 | @property (strong) AVCaptureVideoPreviewLayer *previewLayer; 12 | @property (strong) AVCaptureSession *captureSession; 13 | @property (strong) AVCaptureStillImageOutput *stillImageOutput; 14 | @property (nonatomic, strong) UIImage *stillImage; 15 | 16 | - (void)addVideoPreviewLayer; 17 | - (void)addStillImageOutput; 18 | - (void)captureStillImage; 19 | - (void)addVideoInputFrontCamera:(BOOL)front; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /PebbleCam/PebbleCam-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIcons 12 | 13 | CFBundlePrimaryIcon 14 | 15 | CFBundleIconFiles 16 | 17 | Icon.png 18 | Icon@2x.png 19 | 20 | UIPrerenderedIcon 21 | 22 | 23 | 24 | CFBundleIdentifier 25 | com.clickontyler.testing 26 | CFBundleInfoDictionaryVersion 27 | 6.0 28 | CFBundleName 29 | ${PRODUCT_NAME} 30 | CFBundlePackageType 31 | APPL 32 | CFBundleShortVersionString 33 | 1.0 34 | CFBundleSignature 35 | ???? 36 | CFBundleVersion 37 | 1.0 38 | LSRequiresIPhoneOS 39 | 40 | UIMainStoryboardFile 41 | Storyboard 42 | UIPrerenderedIcon 43 | 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /PebbleCam/Storyboard.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /PebbleCam/PCAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // PCAppDelegate.m 3 | // PebbleCam 4 | // 5 | // Created by Tyler Hall on 4/8/13. 6 | // Copyright (c) 2013 Tyler Hall. All rights reserved. 7 | // 8 | 9 | #import "PCAppDelegate.h" 10 | 11 | @implementation PCAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | return YES; 16 | } 17 | 18 | - (void)applicationWillResignActive:(UIApplication *)application 19 | { 20 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 21 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 22 | } 23 | 24 | - (void)applicationDidEnterBackground:(UIApplication *)application 25 | { 26 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 27 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 28 | } 29 | 30 | - (void)applicationWillEnterForeground:(UIApplication *)application 31 | { 32 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 33 | } 34 | 35 | - (void)applicationDidBecomeActive:(UIApplication *)application 36 | { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | - (void)applicationWillTerminate:(UIApplication *)application 41 | { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /PebbleCam/CaptureSessionManager.m: -------------------------------------------------------------------------------- 1 | // Much of this code was taken from: http://www.musicalgeometry.com/?p=1297 2 | 3 | #import "CaptureSessionManager.h" 4 | #import 5 | 6 | @implementation CaptureSessionManager 7 | 8 | @synthesize captureSession; 9 | @synthesize previewLayer; 10 | @synthesize stillImageOutput; 11 | @synthesize stillImage; 12 | 13 | #pragma mark Capture Session Configuration 14 | 15 | - (id)init { 16 | if ((self = [super init])) { 17 | [self setCaptureSession:[[AVCaptureSession alloc] init]]; 18 | } 19 | return self; 20 | } 21 | 22 | - (void)addVideoPreviewLayer { 23 | [self setPreviewLayer:[[AVCaptureVideoPreviewLayer alloc] initWithSession:[self captureSession]]]; 24 | [[self previewLayer] setVideoGravity:AVLayerVideoGravityResizeAspectFill]; 25 | } 26 | 27 | - (void)addVideoInputFrontCamera:(BOOL)front { 28 | NSArray *devices = [AVCaptureDevice devices]; 29 | AVCaptureDevice *frontCamera; 30 | AVCaptureDevice *backCamera; 31 | 32 | for (AVCaptureDevice *device in devices) { 33 | 34 | NSLog(@"Device name: %@", [device localizedName]); 35 | 36 | if ([device hasMediaType:AVMediaTypeVideo]) { 37 | 38 | if ([device position] == AVCaptureDevicePositionBack) { 39 | NSLog(@"Device position : back"); 40 | backCamera = device; 41 | } 42 | else { 43 | NSLog(@"Device position : front"); 44 | frontCamera = device; 45 | } 46 | } 47 | } 48 | 49 | NSError *error = nil; 50 | 51 | if (front) { 52 | AVCaptureDeviceInput *frontFacingCameraDeviceInput = [AVCaptureDeviceInput deviceInputWithDevice:frontCamera error:&error]; 53 | if (!error) { 54 | if ([[self captureSession] canAddInput:frontFacingCameraDeviceInput]) { 55 | [[self captureSession] addInput:frontFacingCameraDeviceInput]; 56 | } else { 57 | NSLog(@"Couldn't add front facing video input"); 58 | } 59 | } 60 | } else { 61 | AVCaptureDeviceInput *backFacingCameraDeviceInput = [AVCaptureDeviceInput deviceInputWithDevice:backCamera error:&error]; 62 | 63 | if (!error) { 64 | if ([[self captureSession] canAddInput:backFacingCameraDeviceInput]) { 65 | [[self captureSession] addInput:backFacingCameraDeviceInput]; 66 | } else { 67 | NSLog(@"Couldn't add back facing video input"); 68 | } 69 | } 70 | } 71 | } 72 | 73 | - (void)addStillImageOutput 74 | { 75 | [self setStillImageOutput:[[AVCaptureStillImageOutput alloc] init]]; 76 | NSDictionary *outputSettings = [[NSDictionary alloc] initWithObjectsAndKeys:AVVideoCodecJPEG,AVVideoCodecKey,nil]; 77 | [[self stillImageOutput] setOutputSettings:outputSettings]; 78 | 79 | AVCaptureConnection *videoConnection = nil; 80 | for (AVCaptureConnection *connection in [[self stillImageOutput] connections]) { 81 | for (AVCaptureInputPort *port in [connection inputPorts]) { 82 | if ([[port mediaType] isEqual:AVMediaTypeVideo] ) { 83 | videoConnection = connection; 84 | break; 85 | } 86 | } 87 | if (videoConnection) { 88 | break; 89 | } 90 | } 91 | 92 | [[self captureSession] addOutput:[self stillImageOutput]]; 93 | } 94 | 95 | - (void)captureStillImage 96 | { 97 | AVCaptureConnection *videoConnection = nil; 98 | for (AVCaptureConnection *connection in [[self stillImageOutput] connections]) { 99 | for (AVCaptureInputPort *port in [connection inputPorts]) { 100 | if ([[port mediaType] isEqual:AVMediaTypeVideo]) { 101 | videoConnection = connection; 102 | break; 103 | } 104 | } 105 | if (videoConnection) { 106 | break; 107 | } 108 | } 109 | 110 | NSLog(@"about to request a capture from: %@", [self stillImageOutput]); 111 | [[self stillImageOutput] captureStillImageAsynchronouslyFromConnection:videoConnection 112 | completionHandler:^(CMSampleBufferRef imageSampleBuffer, NSError *error) { 113 | CFDictionaryRef exifAttachments = CMGetAttachment(imageSampleBuffer, kCGImagePropertyExifDictionary, NULL); 114 | 115 | if (exifAttachments) { 116 | NSLog(@"attachements: %@", exifAttachments); 117 | } else { 118 | NSLog(@"no attachments"); 119 | } 120 | 121 | NSData *imageData = [AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:imageSampleBuffer]; 122 | UIImage *originalImage = [[UIImage alloc] initWithData:imageData]; 123 | 124 | UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation]; 125 | UIImage *image; 126 | 127 | // NSLog(@"%d", [[UIDevice currentDevice] orientation]); 128 | 129 | if(orientation == UIDeviceOrientationLandscapeLeft) 130 | image = [[UIImage alloc] initWithCGImage:originalImage.CGImage scale:originalImage.scale orientation:UIImageOrientationUp]; 131 | else if(orientation == UIDeviceOrientationLandscapeRight) 132 | image = [[UIImage alloc] initWithCGImage:originalImage.CGImage scale:originalImage.scale orientation:UIImageOrientationDown]; 133 | else image = originalImage; 134 | 135 | [self setStillImage:image]; 136 | [[NSNotificationCenter defaultCenter] postNotificationName:kImageCapturedSuccessfully object:nil]; 137 | }]; 138 | } 139 | 140 | - (void)dealloc { 141 | 142 | [[self captureSession] stopRunning]; 143 | 144 | 145 | } 146 | 147 | @end 148 | -------------------------------------------------------------------------------- /PebbleCam/CameraViewController.m: -------------------------------------------------------------------------------- 1 | // Much of this code was taken from: http://www.musicalgeometry.com/?p=1297 2 | 3 | #import "CameraViewController.h" 4 | 5 | @interface CameraViewController () 6 | - (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo; 7 | @end 8 | 9 | @implementation CameraViewController 10 | 11 | @synthesize captureManager; 12 | @synthesize scanningLabel; 13 | @synthesize camera; 14 | @synthesize cameraFlipButton = _cameraFlipButton; 15 | 16 | - (void)viewDidLoad { 17 | 18 | [[self view] setBackgroundColor:[UIColor blackColor]]; 19 | 20 | [self setCaptureManager:[[CaptureSessionManager alloc] init]]; 21 | [[self captureManager] addVideoInputFrontCamera:camera]; // initializes to NO by default 22 | [[self captureManager] addStillImageOutput]; 23 | [[self captureManager] addVideoPreviewLayer]; 24 | CGRect layerRect = [[[self view] layer] bounds]; 25 | [[[self captureManager] previewLayer] setBounds:layerRect]; 26 | [[[self captureManager] previewLayer] setPosition:CGPointMake(CGRectGetMidX(layerRect),CGRectGetMidY(layerRect))]; 27 | [[[self view] layer] addSublayer:[[self captureManager] previewLayer]]; 28 | 29 | 30 | _cameraFlipButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 31 | [_cameraFlipButton addTarget:self action:@selector(switchCamera:) forControlEvents:UIControlEventTouchUpInside]; 32 | 33 | UIImage * switchCameraImage = [UIImage imageNamed:@"switchCamera.png"]; 34 | UIImage * switchCameraImagePressed = [UIImage imageNamed:@"switchCameraPressed.png"]; 35 | 36 | [_cameraFlipButton setBackgroundImage:switchCameraImage forState:UIControlStateNormal]; 37 | [_cameraFlipButton setBackgroundImage:switchCameraImagePressed forState:UIControlStateHighlighted]; 38 | 39 | _cameraFlipButton.frame = CGRectMake(245, 13.0, 62, 32.0); 40 | [_cameraFlipButton setBackgroundColor:[UIColor clearColor]]; 41 | [[self view] addSubview:_cameraFlipButton]; 42 | 43 | 44 | UILabel *tempLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 50, 120, 30)]; 45 | [self setScanningLabel:tempLabel]; 46 | [scanningLabel setBackgroundColor:[UIColor clearColor]]; 47 | [scanningLabel setFont:[UIFont fontWithName:@"Courier" size: 18.0]]; 48 | [scanningLabel setTextColor:[UIColor redColor]]; 49 | [scanningLabel setText:@"Saving..."]; 50 | [scanningLabel setHidden:YES]; 51 | [[self view] addSubview:scanningLabel]; 52 | 53 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(saveImageToPhotoAlbum) name:kImageCapturedSuccessfully object:nil]; 54 | 55 | [[captureManager captureSession] startRunning]; 56 | [[captureManager captureSession] setSessionPreset:@"AVCaptureSessionPresetPhoto"]; // AVCaptureSession/sessionPreset 57 | 58 | [[UIApplication sharedApplication] beginReceivingRemoteControlEvents]; 59 | [self becomeFirstResponder]; 60 | 61 | NSURL *audioFileLocationURL = [[NSBundle mainBundle] URLForResource:@"5min" withExtension:@"mp3"]; 62 | NSError *error; 63 | _avplayer = [[AVAudioPlayer alloc] initWithContentsOfURL:audioFileLocationURL error:&error]; 64 | [_avplayer setNumberOfLoops:-1]; 65 | 66 | [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil]; 67 | [[AVAudioSession sharedInstance] setActive: YES error: nil]; 68 | [_avplayer prepareToPlay]; 69 | [_avplayer play]; 70 | 71 | NSDictionary *metaData = [NSDictionary dictionaryWithObject:@"Snap Picure" forKey:MPMediaItemPropertyTitle]; 72 | [MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo = metaData; 73 | } 74 | 75 | 76 | - (void)updateCaptureManager 77 | { 78 | for (AVCaptureInput *i in [[[self captureManager] captureSession] inputs]) 79 | [[[self captureManager] captureSession] removeInput:i]; 80 | 81 | [[self captureManager] addVideoInputFrontCamera:camera]; 82 | [[[self captureManager] captureSession] commitConfiguration]; 83 | } 84 | 85 | 86 | 87 | - (void)switchCamera:(id)sender 88 | { 89 | [self setCamera:![self camera]]; //toggle camera between front and back 90 | [self updateCaptureManager]; //update the captureManager with the new camera view 91 | } 92 | 93 | 94 | - (void)saveImageToPhotoAlbum 95 | { 96 | UIImageWriteToSavedPhotosAlbum([[self captureManager] stillImage], self, @selector(image:didFinishSavingWithError:contextInfo:), nil); 97 | } 98 | 99 | - (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo 100 | { 101 | if (error != NULL) { 102 | UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error!" message:@"Image couldn't be saved" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil]; 103 | [alert show]; 104 | } 105 | else { 106 | [[self scanningLabel] setHidden:YES]; 107 | } 108 | } 109 | 110 | 111 | - (void)rotateButtonOrientation:(id)sender 112 | { 113 | if([[UIDevice currentDevice] orientation] == UIInterfaceOrientationLandscapeRight){ 114 | CGPoint newCenter = CGPointMake(291, 44); 115 | 116 | [UIView animateWithDuration: 0.2 117 | delay: 0 118 | options: (UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) 119 | animations:^{_cameraFlipButton.center = newCenter ; _cameraFlipButton.transform = CGAffineTransformMakeRotation(M_PI/2);} 120 | completion:^(BOOL finished) { } 121 | ]; 122 | } else if([[UIDevice currentDevice] orientation] == UIInterfaceOrientationLandscapeLeft){ 123 | CGPoint newCenter = CGPointMake(291, 44); 124 | 125 | [UIView animateWithDuration: 0.2 126 | delay: 0 127 | options: (UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) 128 | animations:^{_cameraFlipButton.center = newCenter ; _cameraFlipButton.transform = CGAffineTransformMakeRotation(-M_PI/2);} 129 | completion:^(BOOL finished) { } 130 | ]; 131 | } else if([[UIDevice currentDevice] orientation] == UIInterfaceOrientationPortrait){ 132 | CGPoint newCenter = CGPointMake(276, 29); 133 | 134 | [UIView animateWithDuration: 0.2 135 | delay: 0 136 | options: (UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) 137 | animations:^{_cameraFlipButton.center = newCenter ; _cameraFlipButton.transform = CGAffineTransformMakeRotation(0);} 138 | completion:^(BOOL finished) { } 139 | ]; 140 | } 141 | } 142 | 143 | 144 | - (BOOL)shouldAutorotate 145 | { 146 | [self rotateButtonOrientation:self]; 147 | return NO; 148 | } 149 | 150 | 151 | - (void)didReceiveMemoryWarning { 152 | [super didReceiveMemoryWarning]; 153 | } 154 | 155 | 156 | - (BOOL)canBecomeFirstResponder { 157 | return YES; 158 | } 159 | 160 | 161 | - (void)remoteControlReceivedWithEvent:(UIEvent *)event { 162 | if (event.type == UIEventTypeRemoteControl) { 163 | switch (event.subtype) { 164 | case UIEventSubtypeRemoteControlNextTrack: 165 | [self switchCamera:self]; 166 | break; 167 | default: 168 | [[self captureManager] captureStillImage]; 169 | break; 170 | } 171 | } 172 | } 173 | 174 | @end 175 | 176 | -------------------------------------------------------------------------------- /PebbleCam.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | C6CB5612171381360064D574 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C6CB5611171381360064D574 /* UIKit.framework */; }; 11 | C6CB5614171381360064D574 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C6CB5613171381360064D574 /* Foundation.framework */; }; 12 | C6CB5616171381360064D574 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C6CB5615171381360064D574 /* CoreGraphics.framework */; }; 13 | C6CB561C171381360064D574 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = C6CB561A171381360064D574 /* InfoPlist.strings */; }; 14 | C6CB561E171381360064D574 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C6CB561D171381360064D574 /* main.m */; }; 15 | C6CB5622171381360064D574 /* PCAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = C6CB5621171381360064D574 /* PCAppDelegate.m */; }; 16 | C6CB5624171381360064D574 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = C6CB5623171381360064D574 /* Default.png */; }; 17 | C6CB5626171381360064D574 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = C6CB5625171381360064D574 /* Default@2x.png */; }; 18 | C6CB5628171381360064D574 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = C6CB5627171381360064D574 /* Default-568h@2x.png */; }; 19 | C6CB5638171381710064D574 /* CoreVideo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C6CB5636171381620064D574 /* CoreVideo.framework */; }; 20 | C6CB5639171381710064D574 /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C6CB56341713815D0064D574 /* CoreMedia.framework */; }; 21 | C6CB563A171381710064D574 /* ImageIO.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C6CB5632171381570064D574 /* ImageIO.framework */; }; 22 | C6CB563B171381710064D574 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C6CB5630171381520064D574 /* QuartzCore.framework */; }; 23 | C6CB563C171381710064D574 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C6CB562E1713814D0064D574 /* MediaPlayer.framework */; }; 24 | C6CB5641171381850064D574 /* CameraViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C6CB563E171381850064D574 /* CameraViewController.m */; }; 25 | C6CB5642171381850064D574 /* CaptureSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = C6CB5640171381850064D574 /* CaptureSessionManager.m */; }; 26 | C6CB5644171381950064D574 /* 5min.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = C6CB5643171381950064D574 /* 5min.mp3 */; }; 27 | C6CB5646171381B50064D574 /* Storyboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C6CB5645171381B50064D574 /* Storyboard.storyboard */; }; 28 | C6CB5649171382120064D574 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C6CB56471713820D0064D574 /* AVFoundation.framework */; }; 29 | C6CB5654171385320064D574 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = C6CB5652171385320064D574 /* Icon.png */; }; 30 | C6CB5655171385320064D574 /* Icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = C6CB5653171385320064D574 /* Icon@2x.png */; }; 31 | /* End PBXBuildFile section */ 32 | 33 | /* Begin PBXFileReference section */ 34 | C6CB560E171381360064D574 /* PebbleCam.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PebbleCam.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | C6CB5611171381360064D574 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 36 | C6CB5613171381360064D574 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 37 | C6CB5615171381360064D574 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 38 | C6CB5619171381360064D574 /* PebbleCam-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "PebbleCam-Info.plist"; sourceTree = ""; }; 39 | C6CB561B171381360064D574 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 40 | C6CB561D171381360064D574 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 41 | C6CB561F171381360064D574 /* PebbleCam-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "PebbleCam-Prefix.pch"; sourceTree = ""; }; 42 | C6CB5620171381360064D574 /* PCAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PCAppDelegate.h; sourceTree = ""; }; 43 | C6CB5621171381360064D574 /* PCAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PCAppDelegate.m; sourceTree = ""; }; 44 | C6CB5623171381360064D574 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; 45 | C6CB5625171381360064D574 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; 46 | C6CB5627171381360064D574 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; 47 | C6CB562E1713814D0064D574 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; }; 48 | C6CB5630171381520064D574 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; 49 | C6CB5632171381570064D574 /* ImageIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ImageIO.framework; path = System/Library/Frameworks/ImageIO.framework; sourceTree = SDKROOT; }; 50 | C6CB56341713815D0064D574 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; }; 51 | C6CB5636171381620064D574 /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = System/Library/Frameworks/CoreVideo.framework; sourceTree = SDKROOT; }; 52 | C6CB563D171381850064D574 /* CameraViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CameraViewController.h; sourceTree = ""; }; 53 | C6CB563E171381850064D574 /* CameraViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CameraViewController.m; sourceTree = ""; }; 54 | C6CB563F171381850064D574 /* CaptureSessionManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CaptureSessionManager.h; sourceTree = ""; }; 55 | C6CB5640171381850064D574 /* CaptureSessionManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CaptureSessionManager.m; sourceTree = ""; }; 56 | C6CB5643171381950064D574 /* 5min.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = 5min.mp3; sourceTree = ""; }; 57 | C6CB5645171381B50064D574 /* Storyboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Storyboard.storyboard; sourceTree = ""; }; 58 | C6CB56471713820D0064D574 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; 59 | C6CB5652171385320064D574 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = ""; }; 60 | C6CB5653171385320064D574 /* Icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon@2x.png"; sourceTree = ""; }; 61 | /* End PBXFileReference section */ 62 | 63 | /* Begin PBXFrameworksBuildPhase section */ 64 | C6CB560B171381360064D574 /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | C6CB5612171381360064D574 /* UIKit.framework in Frameworks */, 69 | C6CB5614171381360064D574 /* Foundation.framework in Frameworks */, 70 | C6CB5616171381360064D574 /* CoreGraphics.framework in Frameworks */, 71 | C6CB5638171381710064D574 /* CoreVideo.framework in Frameworks */, 72 | C6CB5639171381710064D574 /* CoreMedia.framework in Frameworks */, 73 | C6CB5649171382120064D574 /* AVFoundation.framework in Frameworks */, 74 | C6CB563A171381710064D574 /* ImageIO.framework in Frameworks */, 75 | C6CB563B171381710064D574 /* QuartzCore.framework in Frameworks */, 76 | C6CB563C171381710064D574 /* MediaPlayer.framework in Frameworks */, 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | /* End PBXFrameworksBuildPhase section */ 81 | 82 | /* Begin PBXGroup section */ 83 | C6CB5605171381360064D574 = { 84 | isa = PBXGroup; 85 | children = ( 86 | C6CB5617171381360064D574 /* PebbleCam */, 87 | C6CB5610171381360064D574 /* Frameworks */, 88 | C6CB560F171381360064D574 /* Products */, 89 | ); 90 | sourceTree = ""; 91 | }; 92 | C6CB560F171381360064D574 /* Products */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | C6CB560E171381360064D574 /* PebbleCam.app */, 96 | ); 97 | name = Products; 98 | sourceTree = ""; 99 | }; 100 | C6CB5610171381360064D574 /* Frameworks */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | C6CB56471713820D0064D574 /* AVFoundation.framework */, 104 | C6CB5636171381620064D574 /* CoreVideo.framework */, 105 | C6CB56341713815D0064D574 /* CoreMedia.framework */, 106 | C6CB5632171381570064D574 /* ImageIO.framework */, 107 | C6CB5630171381520064D574 /* QuartzCore.framework */, 108 | C6CB562E1713814D0064D574 /* MediaPlayer.framework */, 109 | C6CB5611171381360064D574 /* UIKit.framework */, 110 | C6CB5613171381360064D574 /* Foundation.framework */, 111 | C6CB5615171381360064D574 /* CoreGraphics.framework */, 112 | ); 113 | name = Frameworks; 114 | sourceTree = ""; 115 | }; 116 | C6CB5617171381360064D574 /* PebbleCam */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | C6CB5620171381360064D574 /* PCAppDelegate.h */, 120 | C6CB5621171381360064D574 /* PCAppDelegate.m */, 121 | C6CB563D171381850064D574 /* CameraViewController.h */, 122 | C6CB563E171381850064D574 /* CameraViewController.m */, 123 | C6CB563F171381850064D574 /* CaptureSessionManager.h */, 124 | C6CB5640171381850064D574 /* CaptureSessionManager.m */, 125 | C6CB5618171381360064D574 /* Supporting Files */, 126 | ); 127 | path = PebbleCam; 128 | sourceTree = ""; 129 | }; 130 | C6CB5618171381360064D574 /* Supporting Files */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | C6CB5619171381360064D574 /* PebbleCam-Info.plist */, 134 | C6CB561A171381360064D574 /* InfoPlist.strings */, 135 | C6CB561D171381360064D574 /* main.m */, 136 | C6CB561F171381360064D574 /* PebbleCam-Prefix.pch */, 137 | C6CB5623171381360064D574 /* Default.png */, 138 | C6CB5625171381360064D574 /* Default@2x.png */, 139 | C6CB5627171381360064D574 /* Default-568h@2x.png */, 140 | C6CB5643171381950064D574 /* 5min.mp3 */, 141 | C6CB5645171381B50064D574 /* Storyboard.storyboard */, 142 | C6CB5652171385320064D574 /* Icon.png */, 143 | C6CB5653171385320064D574 /* Icon@2x.png */, 144 | ); 145 | name = "Supporting Files"; 146 | sourceTree = ""; 147 | }; 148 | /* End PBXGroup section */ 149 | 150 | /* Begin PBXNativeTarget section */ 151 | C6CB560D171381360064D574 /* PebbleCam */ = { 152 | isa = PBXNativeTarget; 153 | buildConfigurationList = C6CB562B171381360064D574 /* Build configuration list for PBXNativeTarget "PebbleCam" */; 154 | buildPhases = ( 155 | C6CB560A171381360064D574 /* Sources */, 156 | C6CB560B171381360064D574 /* Frameworks */, 157 | C6CB560C171381360064D574 /* Resources */, 158 | ); 159 | buildRules = ( 160 | ); 161 | dependencies = ( 162 | ); 163 | name = PebbleCam; 164 | productName = PebbleCam; 165 | productReference = C6CB560E171381360064D574 /* PebbleCam.app */; 166 | productType = "com.apple.product-type.application"; 167 | }; 168 | /* End PBXNativeTarget section */ 169 | 170 | /* Begin PBXProject section */ 171 | C6CB5606171381360064D574 /* Project object */ = { 172 | isa = PBXProject; 173 | attributes = { 174 | CLASSPREFIX = PC; 175 | LastUpgradeCheck = 0460; 176 | ORGANIZATIONNAME = "Tyler Hall"; 177 | }; 178 | buildConfigurationList = C6CB5609171381360064D574 /* Build configuration list for PBXProject "PebbleCam" */; 179 | compatibilityVersion = "Xcode 3.2"; 180 | developmentRegion = English; 181 | hasScannedForEncodings = 0; 182 | knownRegions = ( 183 | en, 184 | ); 185 | mainGroup = C6CB5605171381360064D574; 186 | productRefGroup = C6CB560F171381360064D574 /* Products */; 187 | projectDirPath = ""; 188 | projectRoot = ""; 189 | targets = ( 190 | C6CB560D171381360064D574 /* PebbleCam */, 191 | ); 192 | }; 193 | /* End PBXProject section */ 194 | 195 | /* Begin PBXResourcesBuildPhase section */ 196 | C6CB560C171381360064D574 /* Resources */ = { 197 | isa = PBXResourcesBuildPhase; 198 | buildActionMask = 2147483647; 199 | files = ( 200 | C6CB561C171381360064D574 /* InfoPlist.strings in Resources */, 201 | C6CB5624171381360064D574 /* Default.png in Resources */, 202 | C6CB5626171381360064D574 /* Default@2x.png in Resources */, 203 | C6CB5628171381360064D574 /* Default-568h@2x.png in Resources */, 204 | C6CB5644171381950064D574 /* 5min.mp3 in Resources */, 205 | C6CB5646171381B50064D574 /* Storyboard.storyboard in Resources */, 206 | C6CB5654171385320064D574 /* Icon.png in Resources */, 207 | C6CB5655171385320064D574 /* Icon@2x.png in Resources */, 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | }; 211 | /* End PBXResourcesBuildPhase section */ 212 | 213 | /* Begin PBXSourcesBuildPhase section */ 214 | C6CB560A171381360064D574 /* Sources */ = { 215 | isa = PBXSourcesBuildPhase; 216 | buildActionMask = 2147483647; 217 | files = ( 218 | C6CB561E171381360064D574 /* main.m in Sources */, 219 | C6CB5622171381360064D574 /* PCAppDelegate.m in Sources */, 220 | C6CB5641171381850064D574 /* CameraViewController.m in Sources */, 221 | C6CB5642171381850064D574 /* CaptureSessionManager.m in Sources */, 222 | ); 223 | runOnlyForDeploymentPostprocessing = 0; 224 | }; 225 | /* End PBXSourcesBuildPhase section */ 226 | 227 | /* Begin PBXVariantGroup section */ 228 | C6CB561A171381360064D574 /* InfoPlist.strings */ = { 229 | isa = PBXVariantGroup; 230 | children = ( 231 | C6CB561B171381360064D574 /* en */, 232 | ); 233 | name = InfoPlist.strings; 234 | sourceTree = ""; 235 | }; 236 | /* End PBXVariantGroup section */ 237 | 238 | /* Begin XCBuildConfiguration section */ 239 | C6CB5629171381360064D574 /* Debug */ = { 240 | isa = XCBuildConfiguration; 241 | buildSettings = { 242 | ALWAYS_SEARCH_USER_PATHS = NO; 243 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 244 | CLANG_CXX_LIBRARY = "libc++"; 245 | CLANG_ENABLE_OBJC_ARC = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_EMPTY_BODY = YES; 248 | CLANG_WARN_ENUM_CONVERSION = YES; 249 | CLANG_WARN_INT_CONVERSION = YES; 250 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 251 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 252 | COPY_PHASE_STRIP = NO; 253 | GCC_C_LANGUAGE_STANDARD = gnu99; 254 | GCC_DYNAMIC_NO_PIC = NO; 255 | GCC_OPTIMIZATION_LEVEL = 0; 256 | GCC_PREPROCESSOR_DEFINITIONS = ( 257 | "DEBUG=1", 258 | "$(inherited)", 259 | ); 260 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 261 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 262 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 263 | GCC_WARN_UNUSED_VARIABLE = YES; 264 | IPHONEOS_DEPLOYMENT_TARGET = 6.1; 265 | ONLY_ACTIVE_ARCH = YES; 266 | SDKROOT = iphoneos; 267 | }; 268 | name = Debug; 269 | }; 270 | C6CB562A171381360064D574 /* Release */ = { 271 | isa = XCBuildConfiguration; 272 | buildSettings = { 273 | ALWAYS_SEARCH_USER_PATHS = NO; 274 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 275 | CLANG_CXX_LIBRARY = "libc++"; 276 | CLANG_ENABLE_OBJC_ARC = YES; 277 | CLANG_WARN_CONSTANT_CONVERSION = YES; 278 | CLANG_WARN_EMPTY_BODY = YES; 279 | CLANG_WARN_ENUM_CONVERSION = YES; 280 | CLANG_WARN_INT_CONVERSION = YES; 281 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 282 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 283 | COPY_PHASE_STRIP = YES; 284 | GCC_C_LANGUAGE_STANDARD = gnu99; 285 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 286 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 287 | GCC_WARN_UNUSED_VARIABLE = YES; 288 | IPHONEOS_DEPLOYMENT_TARGET = 6.1; 289 | OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; 290 | SDKROOT = iphoneos; 291 | VALIDATE_PRODUCT = YES; 292 | }; 293 | name = Release; 294 | }; 295 | C6CB562C171381360064D574 /* Debug */ = { 296 | isa = XCBuildConfiguration; 297 | buildSettings = { 298 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 299 | GCC_PREFIX_HEADER = "PebbleCam/PebbleCam-Prefix.pch"; 300 | INFOPLIST_FILE = "PebbleCam/PebbleCam-Info.plist"; 301 | PRODUCT_NAME = "$(TARGET_NAME)"; 302 | WRAPPER_EXTENSION = app; 303 | }; 304 | name = Debug; 305 | }; 306 | C6CB562D171381360064D574 /* Release */ = { 307 | isa = XCBuildConfiguration; 308 | buildSettings = { 309 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 310 | GCC_PREFIX_HEADER = "PebbleCam/PebbleCam-Prefix.pch"; 311 | INFOPLIST_FILE = "PebbleCam/PebbleCam-Info.plist"; 312 | PRODUCT_NAME = "$(TARGET_NAME)"; 313 | WRAPPER_EXTENSION = app; 314 | }; 315 | name = Release; 316 | }; 317 | /* End XCBuildConfiguration section */ 318 | 319 | /* Begin XCConfigurationList section */ 320 | C6CB5609171381360064D574 /* Build configuration list for PBXProject "PebbleCam" */ = { 321 | isa = XCConfigurationList; 322 | buildConfigurations = ( 323 | C6CB5629171381360064D574 /* Debug */, 324 | C6CB562A171381360064D574 /* Release */, 325 | ); 326 | defaultConfigurationIsVisible = 0; 327 | defaultConfigurationName = Release; 328 | }; 329 | C6CB562B171381360064D574 /* Build configuration list for PBXNativeTarget "PebbleCam" */ = { 330 | isa = XCConfigurationList; 331 | buildConfigurations = ( 332 | C6CB562C171381360064D574 /* Debug */, 333 | C6CB562D171381360064D574 /* Release */, 334 | ); 335 | defaultConfigurationIsVisible = 0; 336 | defaultConfigurationName = Release; 337 | }; 338 | /* End XCConfigurationList section */ 339 | }; 340 | rootObject = C6CB5606171381360064D574 /* Project object */; 341 | } 342 | --------------------------------------------------------------------------------