├── .github └── workflows │ └── build-test.yaml ├── .gitignore ├── LICENSE ├── Legacy ├── TimeLapseBuilder-Swift12.swift └── TimeLapseBuilder-Swift20.swift ├── README.md ├── SampleApp-iOS ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist └── ViewController.swift ├── SampleApp-macOS └── main.swift ├── SampleFixtures └── Info.plist ├── TimeLapseBuilder-Common ├── TestDelegate.swift ├── TimeLapseBuilder.swift ├── TimeLapseBuilderTests.swift ├── blue.jpg ├── red.jpg └── white.jpg ├── TimeLapseBuilder-iOS ├── Info.plist └── TimeLapseBuilder_iOS.h ├── TimeLapseBuilder-iOSTests ├── Info.plist └── TimeLapseBuilder_iOSTests.swift ├── TimeLapseBuilder-macOS ├── Info.plist └── TimeLapseBuilder_macOS.h ├── TimeLapseBuilder-macOSTests ├── Info.plist └── TimeLapseBuilder_macOSTests.swift └── TimeLapseBuilder.xcodeproj ├── project.pbxproj ├── project.xcworkspace ├── contents.xcworkspacedata └── xcshareddata │ └── IDEWorkspaceChecks.plist └── xcshareddata └── xcschemes ├── SampleApp-macOS.xcscheme ├── TimeLapseBuilder-iOS.xcscheme └── TimeLapseBuilder-macOS.xcscheme /.github/workflows/build-test.yaml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | push: 5 | branches: [ main ] 6 | pull_request: 7 | branches: [ main ] 8 | 9 | jobs: 10 | ios: 11 | runs-on: macos-10.15 12 | steps: 13 | - uses: actions/checkout@master 14 | - name: Build and test 15 | run: xcodebuild clean test -quiet -project TimeLapseBuilder.xcodeproj -scheme TimeLapseBuilder-iOS -destination "platform=iOS Simulator,name=iPhone 11 Pro" 16 | 17 | macos: 18 | runs-on: macos-10.15 19 | steps: 20 | - uses: actions/checkout@master 21 | - name: Build and test 22 | run: xcodebuild clean test -quiet -project TimeLapseBuilder.xcodeproj -scheme TimeLapseBuilder-macOS 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | *.dSYM.zip 28 | *.dSYM 29 | 30 | ## Playgrounds 31 | timeline.xctimeline 32 | playground.xcworkspace 33 | 34 | # Swift Package Manager 35 | # 36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 37 | # Packages/ 38 | .build/ 39 | 40 | # CocoaPods 41 | # 42 | # We recommend against adding the Pods directory to your .gitignore. However 43 | # you should judge for yourself, the pros and cons are mentioned at: 44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 45 | # 46 | # Pods/ 47 | 48 | # Carthage 49 | # 50 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 51 | # Carthage/Checkouts 52 | 53 | Carthage/Build 54 | 55 | # fastlane 56 | # 57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 58 | # screenshots whenever they are needed. 59 | # For more information about the recommended setup visit: 60 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 61 | 62 | fastlane/report.xml 63 | fastlane/Preview.html 64 | fastlane/screenshots 65 | fastlane/test_output 66 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Adam Jensen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Legacy/TimeLapseBuilder-Swift12.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TimeLapseBuilder.swift 3 | // 4 | // Created by Adam Jensen on 5/10/15. 5 | // 6 | // NOTE: This is the original Swift 1.2 implementation. 7 | 8 | import AVFoundation 9 | import UIKit 10 | 11 | let kErrorDomain = "TimeLapseBuilder" 12 | let kFailedToStartAssetWriterError = 0 13 | let kFailedToAppendPixelBufferError = 1 14 | 15 | class TimeLapseBuilder: NSObject { 16 | let photoURLs: [String] 17 | var videoWriter: AVAssetWriter? 18 | 19 | init(photoURLs: [String]) { 20 | self.photoURLs = photoURLs 21 | } 22 | 23 | func build(progress: (NSProgress -> Void), success: (NSURL -> Void), failure: (NSError -> Void)) { 24 | let inputSize = CGSize(width: 4000, height: 3000) 25 | let outputSize = CGSize(width: 1280, height: 720) 26 | var error: NSError? 27 | 28 | let documentsPath = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as! NSString 29 | let videoOutputURL = NSURL(fileURLWithPath: documentsPath.stringByAppendingPathComponent("AssembledVideo.mov"))! 30 | 31 | NSFileManager.defaultManager().removeItemAtURL(videoOutputURL, error: nil) 32 | 33 | videoWriter = AVAssetWriter(URL: videoOutputURL, fileType: AVFileTypeQuickTimeMovie, error: &error) 34 | 35 | if let videoWriter = videoWriter { 36 | let videoSettings: [NSObject : AnyObject] = [ 37 | AVVideoCodecKey : AVVideoCodecH264, 38 | AVVideoWidthKey : outputSize.width, 39 | AVVideoHeightKey : outputSize.height, 40 | // AVVideoCompressionPropertiesKey : [ 41 | // AVVideoAverageBitRateKey : NSInteger(1000000), 42 | // AVVideoMaxKeyFrameIntervalKey : NSInteger(16), 43 | // AVVideoProfileLevelKey : AVVideoProfileLevelH264BaselineAutoLevel 44 | // ] 45 | ] 46 | 47 | let videoWriterInput = AVAssetWriterInput(mediaType: AVMediaTypeVideo, outputSettings: videoSettings) 48 | 49 | let pixelBufferAdaptor = AVAssetWriterInputPixelBufferAdaptor( 50 | assetWriterInput: videoWriterInput, 51 | sourcePixelBufferAttributes: [ 52 | kCVPixelBufferPixelFormatTypeKey : kCVPixelFormatType_32ARGB, 53 | kCVPixelBufferWidthKey : inputSize.width, 54 | kCVPixelBufferHeightKey : inputSize.height, 55 | ] 56 | ) 57 | 58 | assert(videoWriter.canAddInput(videoWriterInput)) 59 | videoWriter.addInput(videoWriterInput) 60 | 61 | if videoWriter.startWriting() { 62 | videoWriter.startSessionAtSourceTime(kCMTimeZero) 63 | assert(pixelBufferAdaptor.pixelBufferPool != nil) 64 | 65 | let media_queue = dispatch_queue_create("mediaInputQueue", nil) 66 | 67 | videoWriterInput.requestMediaDataWhenReadyOnQueue(media_queue, usingBlock: { () -> Void in 68 | let fps: Int32 = 30 69 | let frameDuration = CMTimeMake(1, fps) 70 | let currentProgress = NSProgress(totalUnitCount: Int64(self.photoURLs.count)) 71 | 72 | var frameCount: Int64 = 0 73 | var remainingPhotoURLs = [String](self.photoURLs) 74 | 75 | while (videoWriterInput.readyForMoreMediaData && !remainingPhotoURLs.isEmpty) { 76 | let nextPhotoURL = remainingPhotoURLs.removeAtIndex(0) 77 | let lastFrameTime = CMTimeMake(frameCount, fps) 78 | let presentationTime = frameCount == 0 ? lastFrameTime : CMTimeAdd(lastFrameTime, frameDuration) 79 | 80 | 81 | if !self.appendPixelBufferForImageAtURL(nextPhotoURL, pixelBufferAdaptor: pixelBufferAdaptor, presentationTime: presentationTime) { 82 | error = NSError( 83 | domain: kErrorDomain, 84 | code: kFailedToAppendPixelBufferError, 85 | userInfo: [ 86 | "description": "AVAssetWriterInputPixelBufferAdapter failed to append pixel buffer", 87 | "rawError": videoWriter.error ?? "(none)" 88 | ] 89 | ) 90 | 91 | break 92 | } 93 | 94 | frameCount++ 95 | 96 | currentProgress.completedUnitCount = frameCount 97 | progress(currentProgress) 98 | } 99 | 100 | videoWriterInput.markAsFinished() 101 | videoWriter.finishWritingWithCompletionHandler { () -> Void in 102 | if error == nil { 103 | success(videoOutputURL) 104 | } 105 | } 106 | }) 107 | } else { 108 | error = NSError( 109 | domain: kErrorDomain, 110 | code: kFailedToStartAssetWriterError, 111 | userInfo: ["description": "AVAssetWriter failed to start writing"] 112 | ) 113 | } 114 | } 115 | 116 | if let error = error { 117 | failure(error) 118 | } 119 | } 120 | 121 | func appendPixelBufferForImageAtURL(url: String, pixelBufferAdaptor: AVAssetWriterInputPixelBufferAdaptor, presentationTime: CMTime) -> Bool { 122 | var appendSucceeded = true 123 | 124 | autoreleasepool { 125 | if let url = NSURL(string: url), 126 | let imageData = NSData(contentsOfURL: url), 127 | let image = UIImage(data: imageData) { 128 | var pixelBuffer: Unmanaged? 129 | let status: CVReturn = CVPixelBufferPoolCreatePixelBuffer( 130 | kCFAllocatorDefault, 131 | pixelBufferAdaptor.pixelBufferPool, 132 | &pixelBuffer 133 | ) 134 | 135 | if let pixelBuffer = pixelBuffer where status == 0 { 136 | let managedPixelBuffer = pixelBuffer.takeRetainedValue() 137 | 138 | fillPixelBufferFromImage(image, pixelBuffer: managedPixelBuffer) 139 | 140 | appendSucceeded = pixelBufferAdaptor.appendPixelBuffer( 141 | managedPixelBuffer, 142 | withPresentationTime: presentationTime 143 | ) 144 | } else { 145 | NSLog("error: Failed to allocate pixel buffer from pool") 146 | } 147 | } 148 | } 149 | 150 | return appendSucceeded 151 | } 152 | 153 | func fillPixelBufferFromImage(image: UIImage, pixelBuffer: CVPixelBufferRef) { 154 | let imageData = CGDataProviderCopyData(CGImageGetDataProvider(image.CGImage)) 155 | let lockStatus = CVPixelBufferLockBaseAddress(pixelBuffer, 0) 156 | 157 | let pixelData = CVPixelBufferGetBaseAddress(pixelBuffer) 158 | let bitmapInfo = CGBitmapInfo(rawValue: CGImageAlphaInfo.PremultipliedFirst.rawValue) 159 | let rgbColorSpace = CGColorSpaceCreateDeviceRGB() 160 | 161 | let context = CGBitmapContextCreate( 162 | pixelData, 163 | Int(image.size.width), 164 | Int(image.size.height), 165 | 8, 166 | Int(4 * image.size.width), 167 | rgbColorSpace, 168 | bitmapInfo 169 | ) 170 | 171 | CGContextDrawImage(context, CGRectMake(0, 0, image.size.width, image.size.height), image.CGImage) 172 | 173 | CVPixelBufferUnlockBaseAddress(pixelBuffer, 0) 174 | } 175 | } -------------------------------------------------------------------------------- /Legacy/TimeLapseBuilder-Swift20.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TimeLapseBuilder.swift 3 | // 4 | // Created by Adam Jensen on 5/10/15. 5 | // 6 | // NOTE: This implementation is written in Swift 2.0. 7 | 8 | import AVFoundation 9 | import UIKit 10 | 11 | let kErrorDomain = "TimeLapseBuilder" 12 | let kFailedToStartAssetWriterError = 0 13 | let kFailedToAppendPixelBufferError = 1 14 | 15 | class TimeLapseBuilder: NSObject { 16 | let photoURLs: [String] 17 | var videoWriter: AVAssetWriter? 18 | 19 | init(photoURLs: [String]) { 20 | self.photoURLs = photoURLs 21 | } 22 | 23 | func build(progress: (NSProgress -> Void), success: (NSURL -> Void), failure: (NSError -> Void)) { 24 | let inputSize = CGSize(width: 4000, height: 3000) 25 | let outputSize = CGSize(width: 1280, height: 720) 26 | var error: NSError? 27 | 28 | let documentsPath = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as NSString 29 | let videoOutputURL = NSURL(fileURLWithPath: documentsPath.stringByAppendingPathComponent("AssembledVideo.mov")) 30 | 31 | do { 32 | try NSFileManager.defaultManager().removeItemAtURL(videoOutputURL) 33 | } catch {} 34 | 35 | do { 36 | try videoWriter = AVAssetWriter(URL: videoOutputURL, fileType: AVFileTypeQuickTimeMovie) 37 | } catch let writerError as NSError { 38 | error = writerError 39 | videoWriter = nil 40 | } 41 | 42 | if let videoWriter = videoWriter { 43 | let videoSettings: [String : AnyObject] = [ 44 | AVVideoCodecKey : AVVideoCodecH264, 45 | AVVideoWidthKey : outputSize.width, 46 | AVVideoHeightKey : outputSize.height, 47 | // AVVideoCompressionPropertiesKey : [ 48 | // AVVideoAverageBitRateKey : NSInteger(1000000), 49 | // AVVideoMaxKeyFrameIntervalKey : NSInteger(16), 50 | // AVVideoProfileLevelKey : AVVideoProfileLevelH264BaselineAutoLevel 51 | // ] 52 | ] 53 | 54 | let videoWriterInput = AVAssetWriterInput(mediaType: AVMediaTypeVideo, outputSettings: videoSettings) 55 | 56 | let sourceBufferAttributes = [String : AnyObject](dictionaryLiteral: 57 | (kCVPixelBufferPixelFormatTypeKey as String, Int(kCVPixelFormatType_32ARGB)), 58 | (kCVPixelBufferWidthKey as String, Float(inputSize.width)), 59 | (kCVPixelBufferHeightKey as String, Float(inputSize.height)) 60 | ) 61 | 62 | let pixelBufferAdaptor = AVAssetWriterInputPixelBufferAdaptor( 63 | assetWriterInput: videoWriterInput, 64 | sourcePixelBufferAttributes: sourceBufferAttributes 65 | ) 66 | 67 | assert(videoWriter.canAddInput(videoWriterInput)) 68 | videoWriter.addInput(videoWriterInput) 69 | 70 | if videoWriter.startWriting() { 71 | videoWriter.startSessionAtSourceTime(kCMTimeZero) 72 | assert(pixelBufferAdaptor.pixelBufferPool != nil) 73 | 74 | let media_queue = dispatch_queue_create("mediaInputQueue", nil) 75 | 76 | videoWriterInput.requestMediaDataWhenReadyOnQueue(media_queue, usingBlock: { () -> Void in 77 | let fps: Int32 = 30 78 | let frameDuration = CMTimeMake(1, fps) 79 | let currentProgress = NSProgress(totalUnitCount: Int64(self.photoURLs.count)) 80 | 81 | var frameCount: Int64 = 0 82 | var remainingPhotoURLs = [String](self.photoURLs) 83 | 84 | while (videoWriterInput.readyForMoreMediaData && !remainingPhotoURLs.isEmpty) { 85 | let nextPhotoURL = remainingPhotoURLs.removeAtIndex(0) 86 | let lastFrameTime = CMTimeMake(frameCount, fps) 87 | let presentationTime = frameCount == 0 ? lastFrameTime : CMTimeAdd(lastFrameTime, frameDuration) 88 | 89 | 90 | if !self.appendPixelBufferForImageAtURL(nextPhotoURL, pixelBufferAdaptor: pixelBufferAdaptor, presentationTime: presentationTime) { 91 | error = NSError( 92 | domain: kErrorDomain, 93 | code: kFailedToAppendPixelBufferError, 94 | userInfo: [ 95 | "description": "AVAssetWriterInputPixelBufferAdapter failed to append pixel buffer", 96 | "rawError": videoWriter.error ?? "(none)" 97 | ] 98 | ) 99 | 100 | break 101 | } 102 | 103 | frameCount++ 104 | 105 | currentProgress.completedUnitCount = frameCount 106 | progress(currentProgress) 107 | } 108 | 109 | videoWriterInput.markAsFinished() 110 | videoWriter.finishWritingWithCompletionHandler { () -> Void in 111 | if error == nil { 112 | success(videoOutputURL) 113 | } 114 | 115 | self.videoWriter = nil 116 | } 117 | }) 118 | } else { 119 | error = NSError( 120 | domain: kErrorDomain, 121 | code: kFailedToStartAssetWriterError, 122 | userInfo: ["description": "AVAssetWriter failed to start writing"] 123 | ) 124 | } 125 | } 126 | 127 | if let error = error { 128 | failure(error) 129 | } 130 | } 131 | 132 | func appendPixelBufferForImageAtURL(url: String, pixelBufferAdaptor: AVAssetWriterInputPixelBufferAdaptor, presentationTime: CMTime) -> Bool { 133 | var appendSucceeded = false 134 | 135 | autoreleasepool { 136 | if let url = NSURL(string: url), 137 | let imageData = NSData(contentsOfURL: url), 138 | let image = UIImage(data: imageData), 139 | let pixelBufferPool = pixelBufferAdaptor.pixelBufferPool { 140 | let pixelBufferPointer = UnsafeMutablePointer.alloc(1) 141 | let status: CVReturn = CVPixelBufferPoolCreatePixelBuffer( 142 | kCFAllocatorDefault, 143 | pixelBufferPool, 144 | pixelBufferPointer 145 | ) 146 | 147 | if let pixelBuffer = pixelBufferPointer.memory where status == 0 { 148 | fillPixelBufferFromImage(image, pixelBuffer: pixelBuffer) 149 | 150 | appendSucceeded = pixelBufferAdaptor.appendPixelBuffer( 151 | pixelBuffer, 152 | withPresentationTime: presentationTime 153 | ) 154 | 155 | pixelBufferPointer.destroy() 156 | } else { 157 | NSLog("error: Failed to allocate pixel buffer from pool") 158 | } 159 | 160 | pixelBufferPointer.dealloc(1) 161 | } 162 | } 163 | 164 | return appendSucceeded 165 | } 166 | 167 | func fillPixelBufferFromImage(image: UIImage, pixelBuffer: CVPixelBufferRef) { 168 | CVPixelBufferLockBaseAddress(pixelBuffer, 0) 169 | 170 | let pixelData = CVPixelBufferGetBaseAddress(pixelBuffer) 171 | let rgbColorSpace = CGColorSpaceCreateDeviceRGB() 172 | 173 | let context = CGBitmapContextCreate( 174 | pixelData, 175 | Int(image.size.width), 176 | Int(image.size.height), 177 | 8, 178 | CVPixelBufferGetBytesPerRow(pixelBuffer), 179 | rgbColorSpace, 180 | CGImageAlphaInfo.PremultipliedFirst.rawValue 181 | ) 182 | 183 | CGContextDrawImage(context, CGRectMake(0, 0, image.size.width, image.size.height), image.CGImage) 184 | 185 | CVPixelBufferUnlockBaseAddress(pixelBuffer, 0) 186 | } 187 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TimeLapseBuilder 2 | 3 | This is a reference implementation for building time lapse videos from still images using Swift. 4 | 5 | The core of the library is designed to be portable across iOS and macOS, and there is a sample application for each platform. 6 | 7 | ## Getting started 8 | 9 | 1. Clone this repository 10 | 1. Open `TimeLapseBuilder.xcodeproj` with Xcode 11 | 1. Select one of the sample applications from the schema list and select `Product > Run` 12 | 13 | If you need help adapting this code to use in your app, I recommend posting your questions on [Stack Overflow](https://stackoverflow.com). Please open an issue if you find a bug. 14 | 15 | ## Notables 16 | 17 | - [@seanmcneil](https://github.com/seanmcneil) has built a Cocoapod called [Spitfire](https://cocoapods.org/pods/Spitfire) based on this code. 18 | - Various contributors have helped to fix bugs and port this code to newer versions of Swift. You can find their comments and code on the [original gist](https://gist.github.com/acj/6ae90aa1ebb8cad6b47b). 19 | 20 | ## Contributing 21 | 22 | If you **found a bug**, open an issue. 23 | 24 | If you **have a feature request**, open an issue. 25 | 26 | If you **want to contribute** (yay!), submit a pull request. 27 | 28 | ## License 29 | 30 | MIT license. Please see the LICENSE file for the particulars. 31 | -------------------------------------------------------------------------------- /SampleApp-iOS/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // TimeLapseBuilder 4 | // 5 | // Created by Adam Jensen on 3/12/17. 6 | 7 | import UIKit 8 | 9 | @UIApplicationMain 10 | class AppDelegate: UIResponder, UIApplicationDelegate { 11 | 12 | var window: UIWindow? 13 | 14 | 15 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 16 | // Override point for customization after application launch. 17 | return true 18 | } 19 | 20 | func applicationWillResignActive(_ application: UIApplication) { 21 | // 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. 22 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 23 | } 24 | 25 | func applicationDidEnterBackground(_ application: UIApplication) { 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 | func applicationWillEnterForeground(_ application: UIApplication) { 31 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 32 | } 33 | 34 | func applicationDidBecomeActive(_ application: UIApplication) { 35 | // 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. 36 | } 37 | 38 | func applicationWillTerminate(_ application: UIApplication) { 39 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 40 | } 41 | 42 | 43 | } 44 | -------------------------------------------------------------------------------- /SampleApp-iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | } 93 | ], 94 | "info" : { 95 | "author" : "xcode", 96 | "version" : 1 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /SampleApp-iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SampleApp-iOS/Base.lproj/LaunchScreen.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 | -------------------------------------------------------------------------------- /SampleApp-iOS/Base.lproj/Main.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 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /SampleApp-iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | SampleApp-iOS 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSAppTransportSecurity 26 | 27 | NSAllowsArbitraryLoads 28 | 29 | 30 | UILaunchStoryboardName 31 | LaunchScreen 32 | UIMainStoryboardFile 33 | Main 34 | UIRequiredDeviceCapabilities 35 | 36 | armv7 37 | 38 | UISupportedInterfaceOrientations 39 | 40 | UIInterfaceOrientationPortrait 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UISupportedInterfaceOrientations~ipad 45 | 46 | UIInterfaceOrientationPortrait 47 | UIInterfaceOrientationPortraitUpsideDown 48 | UIInterfaceOrientationLandscapeLeft 49 | UIInterfaceOrientationLandscapeRight 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /SampleApp-iOS/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // TimeLapseBuilder 4 | // 5 | // Created by Adam Jensen on 11/18/16. 6 | 7 | import AVKit 8 | import TimeLapseBuilder 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | @IBOutlet weak var progressView: UIProgressView! 13 | 14 | @IBAction func buildTimelapse(_ sender: Any) { 15 | let assets = assetList(count: 60) 16 | 17 | let timelapseBuilder = TimeLapseBuilder(delegate: self) 18 | let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as NSString 19 | timelapseBuilder.build(with: assets, atFrameRate: 30, type: .mov, toOutputPath: documentsPath.appendingPathComponent("AssembledVideo.mov")) 20 | } 21 | 22 | private func assetList(count: Int) -> [String] { 23 | let assetType = "jpg" 24 | let bundle = Bundle.main 25 | let urls = [ 26 | bundle.url(forResource: "red", withExtension: assetType)!.absoluteString, 27 | bundle.url(forResource: "white", withExtension: assetType)!.absoluteString, 28 | bundle.url(forResource: "blue", withExtension: assetType)!.absoluteString, 29 | ] 30 | 31 | var assets = [String]() 32 | 33 | for i in 1...count { 34 | assets.append(urls[i % urls.count]) 35 | } 36 | 37 | return assets 38 | } 39 | } 40 | 41 | extension ViewController: TimelapseBuilderDelegate { 42 | public func timeLapseBuilder(_ timelapseBuilder: TimeLapseBuilder, didMakeProgress progress: Progress) { 43 | DispatchQueue.main.async { 44 | self.progressView.setProgress(Float(progress.fractionCompleted), animated: true) 45 | } 46 | } 47 | 48 | public func timeLapseBuilder(_ timelapseBuilder: TimeLapseBuilder, didFinishWithURL url: URL) { 49 | DispatchQueue.main.async { 50 | let playerVC = AVPlayerViewController() 51 | playerVC.player = AVPlayer(url: url) 52 | self.present(playerVC, animated: true) { 53 | self.progressView.setProgress(0, animated: true) 54 | } 55 | } 56 | } 57 | 58 | public func timeLapseBuilder(_ timelapseBuilder: TimeLapseBuilder, didFailWithError error: Error) { 59 | let alert = UIAlertController(title: "Couldn't build timelapse", message: "\(error)", preferredStyle: .alert) 60 | alert.addAction(UIAlertAction(title: "Dismiss", style: .default, handler: nil)) 61 | self.present(alert, animated: true, completion: nil) 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /SampleApp-macOS/main.swift: -------------------------------------------------------------------------------- 1 | // 2 | // main.swift 3 | // SampleApp-macOS 4 | // 5 | // Created by Adam Jensen on 12/13/20. 6 | // 7 | 8 | import Foundation 9 | import TimeLapseBuilder 10 | 11 | func main() { 12 | let assets = assetList(count: 60) 13 | 14 | let timelapseBuilder = TimeLapseBuilder(delegate: Delegate()) 15 | let tempPath = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true)[0] as NSString 16 | timelapseBuilder.build(with: assets, atFrameRate: 30, type: .mov, toOutputPath: tempPath.appendingPathComponent("AssembledVideo.mov")) 17 | } 18 | 19 | private func assetList(count: Int) -> [String] { 20 | let assetType = "jpg" 21 | let currentDirectoryURL = URL(fileURLWithPath: FileManager.default.currentDirectoryPath) 22 | let bundleURL = URL(fileURLWithPath: "SampleFixtures.bundle", relativeTo: currentDirectoryURL) 23 | let bundle = Bundle(url: bundleURL)! 24 | let urls = [ 25 | bundle.url(forResource: "red", withExtension: assetType)!.absoluteString, 26 | bundle.url(forResource: "white", withExtension: assetType)!.absoluteString, 27 | bundle.url(forResource: "blue", withExtension: assetType)!.absoluteString, 28 | ] 29 | 30 | var assets = [String]() 31 | 32 | for i in 1...count { 33 | assets.append(urls[i % urls.count]) 34 | } 35 | 36 | return assets 37 | } 38 | 39 | class Delegate: TimelapseBuilderDelegate { 40 | public func timeLapseBuilder(_ timelapseBuilder: TimeLapseBuilder, didMakeProgress progress: Progress) { 41 | print("Progress: \(progress.fractionCompleted)") 42 | } 43 | 44 | public func timeLapseBuilder(_ timelapseBuilder: TimeLapseBuilder, didFinishWithURL url: URL) { 45 | print("Final video is available at \(url)") 46 | exit(0) 47 | } 48 | 49 | public func timeLapseBuilder(_ timelapseBuilder: TimeLapseBuilder, didFailWithError error: Error) { 50 | print("Failed to produce video: \(error)") 51 | exit(1) 52 | } 53 | } 54 | 55 | main() 56 | 57 | Thread.sleep(forTimeInterval: 60) 58 | -------------------------------------------------------------------------------- /SampleFixtures/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /TimeLapseBuilder-Common/TestDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TestDelegate.swift 3 | // TimeLapseBuilderTests 4 | // 5 | // Created by Adam Jensen on 12/13/20. 6 | // 7 | 8 | import Foundation 9 | @testable import TimeLapseBuilder 10 | 11 | class TestDelegate: TimelapseBuilderDelegate { 12 | var didMakeProgress: ((Progress) -> Void)? 13 | var didFinish: ((URL) -> Void)? 14 | var didFailWithError: ((Error) -> Void)? 15 | 16 | init(progress: ((Progress) -> Void)?, finished: ((URL) -> Void)?, failed: ((Error) -> Void)?) { 17 | self.didMakeProgress = progress 18 | self.didFinish = finished 19 | self.didFailWithError = failed 20 | } 21 | 22 | func timeLapseBuilder(_ timelapseBuilder: TimeLapseBuilder, didMakeProgress progress: Progress) { 23 | self.didMakeProgress?(progress) 24 | } 25 | 26 | func timeLapseBuilder(_ timelapseBuilder: TimeLapseBuilder, didFinishWithURL url: URL) { 27 | self.didFinish?(url) 28 | } 29 | 30 | func timeLapseBuilder(_ timelapseBuilder: TimeLapseBuilder, didFailWithError error: Error) { 31 | self.didFailWithError?(error) 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /TimeLapseBuilder-Common/TimeLapseBuilder.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TimeLapseBuilder.swift 3 | // 4 | // Created by Adam Jensen on 11/18/16. 5 | 6 | import AVFoundation 7 | 8 | #if os(macOS) 9 | import Cocoa 10 | typealias UIImage = NSImage 11 | #else 12 | import UIKit 13 | #endif 14 | 15 | let kErrorDomain = "TimeLapseBuilder" 16 | let kFailedToStartAssetWriterError = 0 17 | let kFailedToAppendPixelBufferError = 1 18 | let kFailedToDetermineAssetDimensions = 2 19 | let kFailedToProcessAssetPath = 3 20 | 21 | public protocol TimelapseBuilderDelegate: AnyObject { 22 | func timeLapseBuilder(_ timelapseBuilder: TimeLapseBuilder, didMakeProgress progress: Progress) 23 | func timeLapseBuilder(_ timelapseBuilder: TimeLapseBuilder, didFinishWithURL url: URL) 24 | func timeLapseBuilder(_ timelapseBuilder: TimeLapseBuilder, didFailWithError error: Error) 25 | } 26 | 27 | public class TimeLapseBuilder { 28 | public var delegate: TimelapseBuilderDelegate 29 | 30 | var videoWriter: AVAssetWriter? 31 | 32 | public init(delegate: TimelapseBuilderDelegate) { 33 | self.delegate = delegate 34 | } 35 | 36 | public func build(with assetPaths: [String], atFrameRate framesPerSecond: Int32, type: AVFileType, toOutputPath: String) { 37 | // Output video dimensions are inferred from the first image asset 38 | guard 39 | let firstAssetPath = assetPaths.first, 40 | let firstAssetURL = URL(string: firstAssetPath), 41 | let canvasSize = dimensionsOfImage(url: firstAssetURL), 42 | canvasSize != CGSize.zero 43 | else { 44 | let error = NSError( 45 | domain: kErrorDomain, 46 | code: kFailedToDetermineAssetDimensions, 47 | userInfo: ["description": "TimelapseBuilder failed to determine the dimensions of the first asset. Does the URL or file path exist?"] 48 | ) 49 | self.delegate.timeLapseBuilder(self, didFailWithError: error) 50 | return 51 | } 52 | 53 | 54 | var error: NSError? 55 | let videoOutputURL = URL(fileURLWithPath: toOutputPath) 56 | 57 | do { 58 | try FileManager.default.removeItem(at: videoOutputURL) 59 | } catch {} 60 | 61 | do { 62 | try videoWriter = AVAssetWriter(outputURL: videoOutputURL, fileType: type) 63 | } catch let writerError as NSError { 64 | error = writerError 65 | videoWriter = nil 66 | } 67 | 68 | if let videoWriter = videoWriter { 69 | let videoSettings: [String : AnyObject] = [ 70 | AVVideoCodecKey : AVVideoCodecType.h264 as AnyObject, 71 | AVVideoWidthKey : canvasSize.width as AnyObject, 72 | AVVideoHeightKey : canvasSize.height as AnyObject, 73 | // AVVideoCompressionPropertiesKey : [ 74 | // AVVideoAverageBitRateKey : NSInteger(1000000), 75 | // AVVideoMaxKeyFrameIntervalKey : NSInteger(16), 76 | // AVVideoProfileLevelKey : AVVideoProfileLevelH264BaselineAutoLevel 77 | // ] 78 | ] 79 | 80 | let videoWriterInput = AVAssetWriterInput(mediaType: AVMediaType.video, outputSettings: videoSettings) 81 | 82 | let sourceBufferAttributes = [ 83 | (kCVPixelBufferPixelFormatTypeKey as String): Int(kCVPixelFormatType_32ARGB), 84 | (kCVPixelBufferWidthKey as String): Float(canvasSize.width), 85 | (kCVPixelBufferHeightKey as String): Float(canvasSize.height)] as [String : Any] 86 | 87 | let pixelBufferAdaptor = AVAssetWriterInputPixelBufferAdaptor( 88 | assetWriterInput: videoWriterInput, 89 | sourcePixelBufferAttributes: sourceBufferAttributes 90 | ) 91 | 92 | assert(videoWriter.canAdd(videoWriterInput)) 93 | videoWriter.add(videoWriterInput) 94 | 95 | if videoWriter.startWriting() { 96 | videoWriter.startSession(atSourceTime: CMTime.zero) 97 | assert(pixelBufferAdaptor.pixelBufferPool != nil) 98 | 99 | let media_queue = DispatchQueue(label: "mediaInputQueue") 100 | 101 | videoWriterInput.requestMediaDataWhenReady(on: media_queue) { 102 | let currentProgress = Progress(totalUnitCount: Int64(assetPaths.count)) 103 | 104 | var frameCount: Int64 = 0 105 | var remainingAssetPaths = [String](assetPaths) 106 | 107 | while !remainingAssetPaths.isEmpty { 108 | while videoWriterInput.isReadyForMoreMediaData { 109 | if remainingAssetPaths.isEmpty { 110 | break 111 | } 112 | let nextAssetPath = remainingAssetPaths.remove(at: 0) 113 | guard let nextAssetURL = URL(string: nextAssetPath) else { 114 | error = NSError( 115 | domain: kErrorDomain, 116 | code: kFailedToProcessAssetPath, 117 | userInfo: ["description": "TimelapseBuilder failed to process the asset path. Is it a valid URL or file path?"] 118 | ) 119 | break 120 | } 121 | let presentationTime = CMTimeMake(value: frameCount, timescale: framesPerSecond) 122 | 123 | if !self.appendPixelBufferForImageAtURL(nextAssetURL, pixelBufferAdaptor: pixelBufferAdaptor, presentationTime: presentationTime) { 124 | error = NSError( 125 | domain: kErrorDomain, 126 | code: kFailedToAppendPixelBufferError, 127 | userInfo: ["description": "AVAssetWriterInputPixelBufferAdapter failed to append pixel buffer"] 128 | ) 129 | 130 | break 131 | } 132 | 133 | frameCount += 1 134 | 135 | currentProgress.completedUnitCount = frameCount 136 | self.delegate.timeLapseBuilder(self, didMakeProgress: currentProgress) 137 | } 138 | } 139 | 140 | videoWriterInput.markAsFinished() 141 | videoWriter.finishWriting { 142 | if let error = error { 143 | self.delegate.timeLapseBuilder(self, didFailWithError: error) 144 | } else { 145 | self.delegate.timeLapseBuilder(self, didFinishWithURL: videoOutputURL) 146 | } 147 | 148 | self.videoWriter = nil 149 | } 150 | } 151 | } else { 152 | error = NSError( 153 | domain: kErrorDomain, 154 | code: kFailedToStartAssetWriterError, 155 | userInfo: ["description": "AVAssetWriter failed to start writing"] 156 | ) 157 | } 158 | } 159 | 160 | if let error = error { 161 | self.delegate.timeLapseBuilder(self, didFailWithError: error) 162 | } 163 | } 164 | 165 | func dimensionsOfImage(url: URL) -> CGSize? { 166 | guard let imageData = try? Data(contentsOf: url), 167 | let image = UIImage(data: imageData) else { 168 | return nil 169 | } 170 | 171 | return image.size 172 | } 173 | 174 | func appendPixelBufferForImageAtURL(_ url: URL, pixelBufferAdaptor: AVAssetWriterInputPixelBufferAdaptor, presentationTime: CMTime) -> Bool { 175 | var appendSucceeded = false 176 | 177 | autoreleasepool { 178 | if let imageData = try? Data(contentsOf: url), 179 | let image = UIImage(data: imageData), 180 | let pixelBufferPool = pixelBufferAdaptor.pixelBufferPool { 181 | let pixelBufferPointer = UnsafeMutablePointer.allocate(capacity: 1) 182 | let status: CVReturn = CVPixelBufferPoolCreatePixelBuffer( 183 | kCFAllocatorDefault, 184 | pixelBufferPool, 185 | pixelBufferPointer 186 | ) 187 | 188 | if let pixelBuffer = pixelBufferPointer.pointee, status == 0 { 189 | fillPixelBufferFromImage(image, pixelBuffer: pixelBuffer) 190 | 191 | appendSucceeded = pixelBufferAdaptor.append( 192 | pixelBuffer, 193 | withPresentationTime: presentationTime 194 | ) 195 | 196 | pixelBufferPointer.deinitialize(count: 1) 197 | } else { 198 | NSLog("error: Failed to allocate pixel buffer from pool") 199 | } 200 | 201 | pixelBufferPointer.deallocate() 202 | } 203 | } 204 | 205 | return appendSucceeded 206 | } 207 | 208 | func fillPixelBufferFromImage(_ image: UIImage, pixelBuffer: CVPixelBuffer) { 209 | CVPixelBufferLockBaseAddress(pixelBuffer, CVPixelBufferLockFlags(rawValue: 0)) 210 | 211 | let pixelData = CVPixelBufferGetBaseAddress(pixelBuffer) 212 | let rgbColorSpace = CGColorSpaceCreateDeviceRGB() 213 | let context = CGContext( 214 | data: pixelData, 215 | width: Int(image.size.width), 216 | height: Int(image.size.height), 217 | bitsPerComponent: 8, 218 | bytesPerRow: CVPixelBufferGetBytesPerRow(pixelBuffer), 219 | space: rgbColorSpace, 220 | bitmapInfo: CGImageAlphaInfo.premultipliedFirst.rawValue 221 | ) 222 | 223 | context?.clear(CGRect(x: 0, y: 0, width: CVPixelBufferGetWidth(pixelBuffer), height: CVPixelBufferGetHeight(pixelBuffer))) 224 | context?.draw(image.cgImage!, in: CGRect(x: 0, y: 0, width: image.size.width, height: image.size.height)) 225 | 226 | CVPixelBufferUnlockBaseAddress(pixelBuffer, CVPixelBufferLockFlags(rawValue: 0)) 227 | } 228 | } 229 | 230 | #if os(macOS) 231 | extension NSImage { 232 | var cgImage: CGImage? { 233 | var proposedRect = CGRect(origin: .zero, size: size) 234 | 235 | return cgImage(forProposedRect: &proposedRect, 236 | context: nil, 237 | hints: nil) 238 | } 239 | } 240 | #endif 241 | -------------------------------------------------------------------------------- /TimeLapseBuilder-Common/TimeLapseBuilderTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TimeLapseBuilderTests.swift 3 | // TimeLapseBuilderTests 4 | // 5 | // Created by Adam Jensen on 11/18/16. 6 | // 7 | // 8 | 9 | import AVKit 10 | import XCTest 11 | @testable import TimeLapseBuilder 12 | 13 | class TimeLapseBuilderTests: XCTestCase { 14 | func testWhenGivenASeriesOfImages_producesAnOutputFile() { 15 | let expectation = self.expectation(description: "Build timelapse") 16 | let testDelegate = TestDelegate(progress: { (progress: Progress) in 17 | // Ignore 18 | }, finished: { url in 19 | XCTAssertTrue(FileManager.default.fileExists(atPath: url.relativePath)) 20 | expectation.fulfill() 21 | }, failed: { error in 22 | XCTFail("unexpected failure: \(error)") 23 | }) 24 | let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as NSString 25 | let outputPath = documentsPath.appendingPathComponent("AssembledVideo.mov") 26 | 27 | let timelapseBuilder = TimeLapseBuilder(delegate: testDelegate) 28 | let assets = assetList(count: 3) 29 | 30 | timelapseBuilder.build(with: assets, atFrameRate: 30, type: .mov, toOutputPath: outputPath) 31 | 32 | waitForExpectations(timeout: 5, handler: nil) 33 | } 34 | 35 | func testWhenGivenASeriesOfImages_reportsProgressCorrectly() { 36 | let expectation = self.expectation(description: "Build timelapse") 37 | var mostRecentCompletedUnitCount: Int64 = 0 38 | let testDelegate = TestDelegate(progress: { (progress: Progress) in 39 | XCTAssertEqual(progress.completedUnitCount, mostRecentCompletedUnitCount + 1) 40 | mostRecentCompletedUnitCount += 1 41 | 42 | if progress.isFinished { 43 | expectation.fulfill() 44 | } 45 | }, finished: { url in 46 | // Ignore 47 | }, failed: { error in 48 | XCTFail("unexpected failure: \(error)") 49 | }) 50 | let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as NSString 51 | let outputPath = documentsPath.appendingPathComponent("AssembledVideo.mov") 52 | 53 | let assets = assetList(count: 3) 54 | let timelapseBuilder = TimeLapseBuilder(delegate: testDelegate) 55 | timelapseBuilder.build(with: assets, atFrameRate: 30, type: .mov, toOutputPath: outputPath) 56 | 57 | waitForExpectations(timeout: 5, handler: nil) 58 | } 59 | 60 | func testWhenGivenASeriesOfImages_producesVideoOfExpectedDuration() { 61 | let expectation = self.expectation(description: "Build timelapse") 62 | let testDelegate = TestDelegate(progress: { progress in 63 | // Ignore 64 | }, finished: { url in 65 | let asset = AVURLAsset(url: url) 66 | var frameCount = 0 67 | do { 68 | frameCount = try asset.getNumberOfFrames() 69 | } catch { 70 | XCTFail("failed to get frame count: \(error)") 71 | } 72 | 73 | XCTAssertEqual(asset.duration.seconds, 1.0, "Unexpected video duration") 74 | XCTAssertEqual(frameCount, 34, "Unexpected frame count") 75 | 76 | expectation.fulfill() 77 | }, failed: { error in 78 | XCTFail("unexpected failure: \(error)") 79 | }) 80 | let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as NSString 81 | let outputPath = documentsPath.appendingPathComponent("AssembledVideo.mov") 82 | 83 | let assets = assetList(count: 30) 84 | let timelapseBuilder = TimeLapseBuilder(delegate: testDelegate) 85 | timelapseBuilder.build(with: assets, atFrameRate: 30, type: .mov, toOutputPath: outputPath) 86 | 87 | waitForExpectations(timeout: 5, handler: nil) 88 | } 89 | 90 | func testWhenGivenAnInvalidFirstAssetPath_returnsAnError() { 91 | let expectation = self.expectation(description: "Build timelapse") 92 | let testDelegate = TestDelegate(progress: { progress in 93 | // Ignore 94 | }, finished: { url in 95 | XCTFail("Should have failed, but succeeded instead") 96 | }, failed: { error in 97 | expectation.fulfill() 98 | }) 99 | let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as NSString 100 | let outputPath = documentsPath.appendingPathComponent("AssembledVideo.mov") 101 | 102 | let assets = ["file:///invalid/path"] 103 | let timelapseBuilder = TimeLapseBuilder(delegate: testDelegate) 104 | timelapseBuilder.build(with: assets, atFrameRate: 30, type: .mov, toOutputPath: outputPath) 105 | 106 | waitForExpectations(timeout: 5, handler: nil) 107 | } 108 | 109 | func testWhenGivenAnInvalidSubsequentAssetPath_returnsAnError() { 110 | let expectation = self.expectation(description: "Build timelapse") 111 | let testDelegate = TestDelegate(progress: { progress in 112 | // Ignore 113 | }, finished: { url in 114 | XCTFail("Should have failed, but succeeded instead") 115 | }, failed: { error in 116 | expectation.fulfill() 117 | }) 118 | let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as NSString 119 | let outputPath = documentsPath.appendingPathComponent("AssembledVideo.mov") 120 | 121 | var assets = assetList(count: 1) 122 | assets.append("file:///invalid/path") 123 | let timelapseBuilder = TimeLapseBuilder(delegate: testDelegate) 124 | timelapseBuilder.build(with: assets, atFrameRate: 30, type: .mov, toOutputPath: outputPath) 125 | 126 | waitForExpectations(timeout: 5, handler: nil) 127 | } 128 | 129 | private func assetList(count: Int) -> [String] { 130 | let assetType = "jpg" 131 | let bundle = Bundle(for: type(of: self)) 132 | let urls = [ 133 | bundle.url(forResource: "red", withExtension: assetType)!.absoluteString, 134 | bundle.url(forResource: "white", withExtension: assetType)!.absoluteString, 135 | bundle.url(forResource: "blue", withExtension: assetType)!.absoluteString, 136 | ] 137 | 138 | var assets = [String]() 139 | 140 | for i in 1...count { 141 | assets.append(urls[i % urls.count]) 142 | } 143 | 144 | return assets 145 | } 146 | } 147 | 148 | extension AVURLAsset { 149 | func getNumberOfFrames() throws -> Int { 150 | let reader = try AVAssetReader(asset: self) 151 | let videoTrack = self.tracks(withMediaType: AVMediaType.video)[0] 152 | let readerOutput = AVAssetReaderTrackOutput(track: videoTrack, outputSettings: nil) 153 | reader.add(readerOutput) 154 | reader.startReading() 155 | 156 | var frameCount = 0 157 | while true { 158 | guard 159 | readerOutput.copyNextSampleBuffer() != nil 160 | else { 161 | break 162 | } 163 | frameCount = frameCount + 1 164 | } 165 | 166 | return frameCount 167 | } 168 | } 169 | -------------------------------------------------------------------------------- /TimeLapseBuilder-Common/blue.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acj/TimeLapseBuilder-Swift/93b0d620443578811f8a2fb6cb0f4b0fd356b150/TimeLapseBuilder-Common/blue.jpg -------------------------------------------------------------------------------- /TimeLapseBuilder-Common/red.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acj/TimeLapseBuilder-Swift/93b0d620443578811f8a2fb6cb0f4b0fd356b150/TimeLapseBuilder-Common/red.jpg -------------------------------------------------------------------------------- /TimeLapseBuilder-Common/white.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acj/TimeLapseBuilder-Swift/93b0d620443578811f8a2fb6cb0f4b0fd356b150/TimeLapseBuilder-Common/white.jpg -------------------------------------------------------------------------------- /TimeLapseBuilder-iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | TimeLapseBuilder-iOS 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | 24 | 25 | -------------------------------------------------------------------------------- /TimeLapseBuilder-iOS/TimeLapseBuilder_iOS.h: -------------------------------------------------------------------------------- 1 | // 2 | // TimeLapseBuilder_iOS.h 3 | // TimeLapseBuilder-iOS 4 | // 5 | // Created by Adam Jensen on 12/13/20. 6 | // 7 | 8 | #import 9 | 10 | //! Project version number for TimeLapseBuilder_iOS. 11 | FOUNDATION_EXPORT double TimeLapseBuilder_iOSVersionNumber; 12 | 13 | //! Project version string for TimeLapseBuilder_iOS. 14 | FOUNDATION_EXPORT const unsigned char TimeLapseBuilder_iOSVersionString[]; 15 | 16 | // In this header, you should import all the public headers of your framework using statements like #import 17 | 18 | 19 | -------------------------------------------------------------------------------- /TimeLapseBuilder-iOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /TimeLapseBuilder-iOSTests/TimeLapseBuilder_iOSTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TimeLapseBuilder_iOSTests.swift 3 | // TimeLapseBuilder-iOSTests 4 | // 5 | // Created by Adam Jensen on 12/13/20. 6 | // 7 | 8 | import XCTest 9 | @testable import TimeLapseBuilder_iOS 10 | 11 | class TimeLapseBuilder_iOSTests: XCTestCase { 12 | 13 | override func setUpWithError() throws { 14 | // Put setup code here. This method is called before the invocation of each test method in the class. 15 | } 16 | 17 | override func tearDownWithError() throws { 18 | // Put teardown code here. This method is called after the invocation of each test method in the class. 19 | } 20 | 21 | func testExample() throws { 22 | // This is an example of a functional test case. 23 | // Use XCTAssert and related functions to verify your tests produce the correct results. 24 | } 25 | 26 | func testPerformanceExample() throws { 27 | // This is an example of a performance test case. 28 | self.measure { 29 | // Put the code you want to measure the time of here. 30 | } 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /TimeLapseBuilder-macOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /TimeLapseBuilder-macOS/TimeLapseBuilder_macOS.h: -------------------------------------------------------------------------------- 1 | // 2 | // TimeLapseBuilder_macOS.h 3 | // TimeLapseBuilder-macOS 4 | // 5 | // Created by Adam Jensen on 12/13/20. 6 | // 7 | 8 | #import 9 | 10 | //! Project version number for TimeLapseBuilder_macOS. 11 | FOUNDATION_EXPORT double TimeLapseBuilder_macOSVersionNumber; 12 | 13 | //! Project version string for TimeLapseBuilder_macOS. 14 | FOUNDATION_EXPORT const unsigned char TimeLapseBuilder_macOSVersionString[]; 15 | 16 | // In this header, you should import all the public headers of your framework using statements like #import 17 | 18 | 19 | -------------------------------------------------------------------------------- /TimeLapseBuilder-macOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /TimeLapseBuilder-macOSTests/TimeLapseBuilder_macOSTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TimeLapseBuilder_macOSTests.swift 3 | // TimeLapseBuilder-macOSTests 4 | // 5 | // Created by Adam Jensen on 12/13/20. 6 | // 7 | 8 | import XCTest 9 | @testable import TimeLapseBuilder_macOS 10 | 11 | class TimeLapseBuilder_macOSTests: XCTestCase { 12 | 13 | override func setUpWithError() throws { 14 | // Put setup code here. This method is called before the invocation of each test method in the class. 15 | } 16 | 17 | override func tearDownWithError() throws { 18 | // Put teardown code here. This method is called after the invocation of each test method in the class. 19 | } 20 | 21 | func testExample() throws { 22 | // This is an example of a functional test case. 23 | // Use XCTAssert and related functions to verify your tests produce the correct results. 24 | } 25 | 26 | func testPerformanceExample() throws { 27 | // This is an example of a performance test case. 28 | self.measure { 29 | // Put the code you want to measure the time of here. 30 | } 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /TimeLapseBuilder.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 640B4BA71DDF3C4F003F10E4 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 640B4BA61DDF3C4F003F10E4 /* ViewController.swift */; }; 11 | 640B4BAA1DDF3C4F003F10E4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 640B4BA81DDF3C4F003F10E4 /* Main.storyboard */; }; 12 | 640B4BAF1DDF3C4F003F10E4 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 640B4BAD1DDF3C4F003F10E4 /* LaunchScreen.storyboard */; }; 13 | 640BD6961E75CB310089B27A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 640BD6951E75CB310089B27A /* AppDelegate.swift */; }; 14 | 64C76B582585AD4C007D758A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 640B4BAB1DDF3C4F003F10E4 /* Assets.xcassets */; }; 15 | 64C76B722586717E007D758A /* blue.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 64C76B662585B3B2007D758A /* blue.jpg */; }; 16 | 64C76B732586717E007D758A /* red.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 64C76B642585B3B2007D758A /* red.jpg */; }; 17 | 64C76B742586717E007D758A /* white.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 64C76B652585B3B2007D758A /* white.jpg */; }; 18 | 64C76C0B2586B5A8007D758A /* TimeLapseBuilder.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C76C022586B5A8007D758A /* TimeLapseBuilder.framework */; }; 19 | 64C76C142586B5A8007D758A /* TimeLapseBuilder_iOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 64C76C042586B5A8007D758A /* TimeLapseBuilder_iOS.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | 64C76C172586B5A8007D758A /* TimeLapseBuilder.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C76C022586B5A8007D758A /* TimeLapseBuilder.framework */; }; 21 | 64C76C192586B5A8007D758A /* TimeLapseBuilder.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 64C76C022586B5A8007D758A /* TimeLapseBuilder.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 22 | 64C76C2A2586B5D7007D758A /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64C76C292586B5D7007D758A /* main.swift */; }; 23 | 64C76C402586B65D007D758A /* TimeLapseBuilder.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C76C372586B65D007D758A /* TimeLapseBuilder.framework */; }; 24 | 64C76C472586B65D007D758A /* TimeLapseBuilder_macOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 64C76C392586B65D007D758A /* TimeLapseBuilder_macOS.h */; settings = {ATTRIBUTES = (Public, ); }; }; 25 | 64C76C612586B693007D758A /* TimeLapseBuilder.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64C76C372586B65D007D758A /* TimeLapseBuilder.framework */; }; 26 | 64C76C6F2586B8FF007D758A /* TimeLapseBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 640B4BC41DDF3C69003F10E4 /* TimeLapseBuilder.swift */; }; 27 | 64C76C762586B908007D758A /* TimeLapseBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 640B4BC41DDF3C69003F10E4 /* TimeLapseBuilder.swift */; }; 28 | 64C76C952586BC3B007D758A /* TestDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64C76B772586855F007D758A /* TestDelegate.swift */; }; 29 | 64C76CA22586BC66007D758A /* TimeLapseBuilderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 640B4BB91DDF3C4F003F10E4 /* TimeLapseBuilderTests.swift */; }; 30 | 64C76CAF2586BC75007D758A /* TimeLapseBuilderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 640B4BB91DDF3C4F003F10E4 /* TimeLapseBuilderTests.swift */; }; 31 | 64C76CB62586BC77007D758A /* TestDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64C76B772586855F007D758A /* TestDelegate.swift */; }; 32 | 64C76D0E2586C04F007D758A /* red.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 64C76B642585B3B2007D758A /* red.jpg */; }; 33 | 64C76D152586C052007D758A /* white.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 64C76B652585B3B2007D758A /* white.jpg */; }; 34 | 64C76D1C2586C055007D758A /* blue.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 64C76B662585B3B2007D758A /* blue.jpg */; }; 35 | 64C76D312586C0E0007D758A /* red.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 64C76B642585B3B2007D758A /* red.jpg */; }; 36 | 64C76D382586C0E3007D758A /* white.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 64C76B652585B3B2007D758A /* white.jpg */; }; 37 | 64C76D3F2586C0E5007D758A /* blue.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 64C76B662585B3B2007D758A /* blue.jpg */; }; 38 | 64C76D922586C9D5007D758A /* blue.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 64C76B662585B3B2007D758A /* blue.jpg */; }; 39 | 64C76D992586C9D7007D758A /* red.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 64C76B642585B3B2007D758A /* red.jpg */; }; 40 | 64C76DA02586C9DA007D758A /* white.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 64C76B652585B3B2007D758A /* white.jpg */; }; 41 | 64C76DA72586C9FC007D758A /* SampleFixtures.bundle in CopyFiles */ = {isa = PBXBuildFile; fileRef = 64C76D862586C98E007D758A /* SampleFixtures.bundle */; }; 42 | /* End PBXBuildFile section */ 43 | 44 | /* Begin PBXContainerItemProxy section */ 45 | 64C76C0C2586B5A8007D758A /* PBXContainerItemProxy */ = { 46 | isa = PBXContainerItemProxy; 47 | containerPortal = 640B4B991DDF3C4F003F10E4 /* Project object */; 48 | proxyType = 1; 49 | remoteGlobalIDString = 64C76C012586B5A8007D758A; 50 | remoteInfo = "TimeLapseBuilder-iOS"; 51 | }; 52 | 64C76C0E2586B5A8007D758A /* PBXContainerItemProxy */ = { 53 | isa = PBXContainerItemProxy; 54 | containerPortal = 640B4B991DDF3C4F003F10E4 /* Project object */; 55 | proxyType = 1; 56 | remoteGlobalIDString = 640B4BA01DDF3C4F003F10E4; 57 | remoteInfo = "SampleApp-iOS"; 58 | }; 59 | 64C76C152586B5A8007D758A /* PBXContainerItemProxy */ = { 60 | isa = PBXContainerItemProxy; 61 | containerPortal = 640B4B991DDF3C4F003F10E4 /* Project object */; 62 | proxyType = 1; 63 | remoteGlobalIDString = 64C76C012586B5A8007D758A; 64 | remoteInfo = "TimeLapseBuilder-iOS"; 65 | }; 66 | 64C76C412586B65D007D758A /* PBXContainerItemProxy */ = { 67 | isa = PBXContainerItemProxy; 68 | containerPortal = 640B4B991DDF3C4F003F10E4 /* Project object */; 69 | proxyType = 1; 70 | remoteGlobalIDString = 64C76C362586B65D007D758A; 71 | remoteInfo = "TimeLapseBuilder-macOS"; 72 | }; 73 | 64C76DB52586CB5A007D758A /* PBXContainerItemProxy */ = { 74 | isa = PBXContainerItemProxy; 75 | containerPortal = 640B4B991DDF3C4F003F10E4 /* Project object */; 76 | proxyType = 1; 77 | remoteGlobalIDString = 64C76C362586B65D007D758A; 78 | remoteInfo = "TimeLapseBuilder-macOS"; 79 | }; 80 | 64C76DB72586CB6C007D758A /* PBXContainerItemProxy */ = { 81 | isa = PBXContainerItemProxy; 82 | containerPortal = 640B4B991DDF3C4F003F10E4 /* Project object */; 83 | proxyType = 1; 84 | remoteGlobalIDString = 64C76D852586C98E007D758A; 85 | remoteInfo = SampleFixtures; 86 | }; 87 | /* End PBXContainerItemProxy section */ 88 | 89 | /* Begin PBXCopyFilesBuildPhase section */ 90 | 64C76C182586B5A8007D758A /* Embed Frameworks */ = { 91 | isa = PBXCopyFilesBuildPhase; 92 | buildActionMask = 2147483647; 93 | dstPath = ""; 94 | dstSubfolderSpec = 10; 95 | files = ( 96 | 64C76C192586B5A8007D758A /* TimeLapseBuilder.framework in Embed Frameworks */, 97 | ); 98 | name = "Embed Frameworks"; 99 | runOnlyForDeploymentPostprocessing = 0; 100 | }; 101 | 64C76C252586B5D7007D758A /* CopyFiles */ = { 102 | isa = PBXCopyFilesBuildPhase; 103 | buildActionMask = 2147483647; 104 | dstPath = /usr/share/man/man1; 105 | dstSubfolderSpec = 0; 106 | files = ( 107 | 64C76DA72586C9FC007D758A /* SampleFixtures.bundle in CopyFiles */, 108 | ); 109 | runOnlyForDeploymentPostprocessing = 1; 110 | }; 111 | /* End PBXCopyFilesBuildPhase section */ 112 | 113 | /* Begin PBXFileReference section */ 114 | 640B4BA11DDF3C4F003F10E4 /* SampleApp-iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SampleApp-iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 115 | 640B4BA61DDF3C4F003F10E4 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 116 | 640B4BA91DDF3C4F003F10E4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 117 | 640B4BAB1DDF3C4F003F10E4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 118 | 640B4BAE1DDF3C4F003F10E4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 119 | 640B4BB01DDF3C4F003F10E4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 120 | 640B4BB91DDF3C4F003F10E4 /* TimeLapseBuilderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimeLapseBuilderTests.swift; sourceTree = ""; }; 121 | 640B4BC41DDF3C69003F10E4 /* TimeLapseBuilder.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TimeLapseBuilder.swift; sourceTree = ""; }; 122 | 640BD6951E75CB310089B27A /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 123 | 64C76B642585B3B2007D758A /* red.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = red.jpg; sourceTree = ""; }; 124 | 64C76B652585B3B2007D758A /* white.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = white.jpg; sourceTree = ""; }; 125 | 64C76B662585B3B2007D758A /* blue.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = blue.jpg; sourceTree = ""; }; 126 | 64C76B772586855F007D758A /* TestDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestDelegate.swift; sourceTree = ""; }; 127 | 64C76C022586B5A8007D758A /* TimeLapseBuilder.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = TimeLapseBuilder.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 128 | 64C76C042586B5A8007D758A /* TimeLapseBuilder_iOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TimeLapseBuilder_iOS.h; sourceTree = ""; }; 129 | 64C76C052586B5A8007D758A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 130 | 64C76C0A2586B5A8007D758A /* TimeLapseBuilder-iOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "TimeLapseBuilder-iOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 131 | 64C76C132586B5A8007D758A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 132 | 64C76C272586B5D7007D758A /* SampleApp-macOS */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "SampleApp-macOS"; sourceTree = BUILT_PRODUCTS_DIR; }; 133 | 64C76C292586B5D7007D758A /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = ""; }; 134 | 64C76C372586B65D007D758A /* TimeLapseBuilder.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = TimeLapseBuilder.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 135 | 64C76C392586B65D007D758A /* TimeLapseBuilder_macOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TimeLapseBuilder_macOS.h; sourceTree = ""; }; 136 | 64C76C3A2586B65D007D758A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 137 | 64C76C3F2586B65D007D758A /* TimeLapseBuilder-macOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "TimeLapseBuilder-macOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 138 | 64C76C442586B65D007D758A /* TimeLapseBuilder_macOSTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimeLapseBuilder_macOSTests.swift; sourceTree = ""; }; 139 | 64C76C462586B65D007D758A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 140 | 64C76D862586C98E007D758A /* SampleFixtures.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SampleFixtures.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 141 | 64C76D882586C98E007D758A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 142 | /* End PBXFileReference section */ 143 | 144 | /* Begin PBXFrameworksBuildPhase section */ 145 | 640B4B9E1DDF3C4F003F10E4 /* Frameworks */ = { 146 | isa = PBXFrameworksBuildPhase; 147 | buildActionMask = 2147483647; 148 | files = ( 149 | 64C76C172586B5A8007D758A /* TimeLapseBuilder.framework in Frameworks */, 150 | ); 151 | runOnlyForDeploymentPostprocessing = 0; 152 | }; 153 | 64C76BFF2586B5A8007D758A /* Frameworks */ = { 154 | isa = PBXFrameworksBuildPhase; 155 | buildActionMask = 2147483647; 156 | files = ( 157 | ); 158 | runOnlyForDeploymentPostprocessing = 0; 159 | }; 160 | 64C76C072586B5A8007D758A /* Frameworks */ = { 161 | isa = PBXFrameworksBuildPhase; 162 | buildActionMask = 2147483647; 163 | files = ( 164 | 64C76C0B2586B5A8007D758A /* TimeLapseBuilder.framework in Frameworks */, 165 | ); 166 | runOnlyForDeploymentPostprocessing = 0; 167 | }; 168 | 64C76C242586B5D7007D758A /* Frameworks */ = { 169 | isa = PBXFrameworksBuildPhase; 170 | buildActionMask = 2147483647; 171 | files = ( 172 | 64C76C612586B693007D758A /* TimeLapseBuilder.framework in Frameworks */, 173 | ); 174 | runOnlyForDeploymentPostprocessing = 0; 175 | }; 176 | 64C76C342586B65D007D758A /* Frameworks */ = { 177 | isa = PBXFrameworksBuildPhase; 178 | buildActionMask = 2147483647; 179 | files = ( 180 | ); 181 | runOnlyForDeploymentPostprocessing = 0; 182 | }; 183 | 64C76C3C2586B65D007D758A /* Frameworks */ = { 184 | isa = PBXFrameworksBuildPhase; 185 | buildActionMask = 2147483647; 186 | files = ( 187 | 64C76C402586B65D007D758A /* TimeLapseBuilder.framework in Frameworks */, 188 | ); 189 | runOnlyForDeploymentPostprocessing = 0; 190 | }; 191 | 64C76D832586C98E007D758A /* Frameworks */ = { 192 | isa = PBXFrameworksBuildPhase; 193 | buildActionMask = 2147483647; 194 | files = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXFrameworksBuildPhase section */ 199 | 200 | /* Begin PBXGroup section */ 201 | 640B4B981DDF3C4F003F10E4 = { 202 | isa = PBXGroup; 203 | children = ( 204 | 640B4BA31DDF3C4F003F10E4 /* SampleApp-iOS */, 205 | 64C76C032586B5A8007D758A /* TimeLapseBuilder-iOS */, 206 | 64C76C102586B5A8007D758A /* TimeLapseBuilder-iOSTests */, 207 | 64C76C282586B5D7007D758A /* SampleApp-macOS */, 208 | 64C76C382586B65D007D758A /* TimeLapseBuilder-macOS */, 209 | 64C76C432586B65D007D758A /* TimeLapseBuilder-macOSTests */, 210 | 64C76C6E2586B8C8007D758A /* TimeLapseBuilder-Common */, 211 | 64C76D872586C98E007D758A /* SampleFixtures */, 212 | 640B4BA21DDF3C4F003F10E4 /* Products */, 213 | 64C76C602586B693007D758A /* Frameworks */, 214 | ); 215 | sourceTree = ""; 216 | }; 217 | 640B4BA21DDF3C4F003F10E4 /* Products */ = { 218 | isa = PBXGroup; 219 | children = ( 220 | 640B4BA11DDF3C4F003F10E4 /* SampleApp-iOS.app */, 221 | 64C76C022586B5A8007D758A /* TimeLapseBuilder.framework */, 222 | 64C76C0A2586B5A8007D758A /* TimeLapseBuilder-iOSTests.xctest */, 223 | 64C76C272586B5D7007D758A /* SampleApp-macOS */, 224 | 64C76C372586B65D007D758A /* TimeLapseBuilder.framework */, 225 | 64C76C3F2586B65D007D758A /* TimeLapseBuilder-macOSTests.xctest */, 226 | 64C76D862586C98E007D758A /* SampleFixtures.bundle */, 227 | ); 228 | name = Products; 229 | sourceTree = ""; 230 | }; 231 | 640B4BA31DDF3C4F003F10E4 /* SampleApp-iOS */ = { 232 | isa = PBXGroup; 233 | children = ( 234 | 640BD6951E75CB310089B27A /* AppDelegate.swift */, 235 | 640B4BA61DDF3C4F003F10E4 /* ViewController.swift */, 236 | 640B4BA81DDF3C4F003F10E4 /* Main.storyboard */, 237 | 640B4BAB1DDF3C4F003F10E4 /* Assets.xcassets */, 238 | 640B4BAD1DDF3C4F003F10E4 /* LaunchScreen.storyboard */, 239 | 640B4BB01DDF3C4F003F10E4 /* Info.plist */, 240 | ); 241 | path = "SampleApp-iOS"; 242 | sourceTree = ""; 243 | }; 244 | 6486ABFF25898ED700E29190 /* Fixtures */ = { 245 | isa = PBXGroup; 246 | children = ( 247 | 64C76B662585B3B2007D758A /* blue.jpg */, 248 | 64C76B642585B3B2007D758A /* red.jpg */, 249 | 64C76B652585B3B2007D758A /* white.jpg */, 250 | ); 251 | name = Fixtures; 252 | sourceTree = ""; 253 | }; 254 | 64C76C032586B5A8007D758A /* TimeLapseBuilder-iOS */ = { 255 | isa = PBXGroup; 256 | children = ( 257 | 64C76C042586B5A8007D758A /* TimeLapseBuilder_iOS.h */, 258 | 64C76C052586B5A8007D758A /* Info.plist */, 259 | ); 260 | path = "TimeLapseBuilder-iOS"; 261 | sourceTree = ""; 262 | }; 263 | 64C76C102586B5A8007D758A /* TimeLapseBuilder-iOSTests */ = { 264 | isa = PBXGroup; 265 | children = ( 266 | 64C76C132586B5A8007D758A /* Info.plist */, 267 | ); 268 | path = "TimeLapseBuilder-iOSTests"; 269 | sourceTree = ""; 270 | }; 271 | 64C76C282586B5D7007D758A /* SampleApp-macOS */ = { 272 | isa = PBXGroup; 273 | children = ( 274 | 64C76C292586B5D7007D758A /* main.swift */, 275 | ); 276 | path = "SampleApp-macOS"; 277 | sourceTree = ""; 278 | }; 279 | 64C76C382586B65D007D758A /* TimeLapseBuilder-macOS */ = { 280 | isa = PBXGroup; 281 | children = ( 282 | 64C76C392586B65D007D758A /* TimeLapseBuilder_macOS.h */, 283 | 64C76C3A2586B65D007D758A /* Info.plist */, 284 | ); 285 | path = "TimeLapseBuilder-macOS"; 286 | sourceTree = ""; 287 | }; 288 | 64C76C432586B65D007D758A /* TimeLapseBuilder-macOSTests */ = { 289 | isa = PBXGroup; 290 | children = ( 291 | 64C76C442586B65D007D758A /* TimeLapseBuilder_macOSTests.swift */, 292 | 64C76C462586B65D007D758A /* Info.plist */, 293 | ); 294 | path = "TimeLapseBuilder-macOSTests"; 295 | sourceTree = ""; 296 | }; 297 | 64C76C602586B693007D758A /* Frameworks */ = { 298 | isa = PBXGroup; 299 | children = ( 300 | ); 301 | name = Frameworks; 302 | sourceTree = ""; 303 | }; 304 | 64C76C6E2586B8C8007D758A /* TimeLapseBuilder-Common */ = { 305 | isa = PBXGroup; 306 | children = ( 307 | 6486ABFF25898ED700E29190 /* Fixtures */, 308 | 64C76B772586855F007D758A /* TestDelegate.swift */, 309 | 640B4BC41DDF3C69003F10E4 /* TimeLapseBuilder.swift */, 310 | 640B4BB91DDF3C4F003F10E4 /* TimeLapseBuilderTests.swift */, 311 | ); 312 | path = "TimeLapseBuilder-Common"; 313 | sourceTree = ""; 314 | }; 315 | 64C76D872586C98E007D758A /* SampleFixtures */ = { 316 | isa = PBXGroup; 317 | children = ( 318 | 64C76D882586C98E007D758A /* Info.plist */, 319 | ); 320 | path = SampleFixtures; 321 | sourceTree = ""; 322 | }; 323 | /* End PBXGroup section */ 324 | 325 | /* Begin PBXHeadersBuildPhase section */ 326 | 64C76BFD2586B5A8007D758A /* Headers */ = { 327 | isa = PBXHeadersBuildPhase; 328 | buildActionMask = 2147483647; 329 | files = ( 330 | 64C76C142586B5A8007D758A /* TimeLapseBuilder_iOS.h in Headers */, 331 | ); 332 | runOnlyForDeploymentPostprocessing = 0; 333 | }; 334 | 64C76C322586B65D007D758A /* Headers */ = { 335 | isa = PBXHeadersBuildPhase; 336 | buildActionMask = 2147483647; 337 | files = ( 338 | 64C76C472586B65D007D758A /* TimeLapseBuilder_macOS.h in Headers */, 339 | ); 340 | runOnlyForDeploymentPostprocessing = 0; 341 | }; 342 | /* End PBXHeadersBuildPhase section */ 343 | 344 | /* Begin PBXNativeTarget section */ 345 | 640B4BA01DDF3C4F003F10E4 /* SampleApp-iOS */ = { 346 | isa = PBXNativeTarget; 347 | buildConfigurationList = 640B4BBE1DDF3C4F003F10E4 /* Build configuration list for PBXNativeTarget "SampleApp-iOS" */; 348 | buildPhases = ( 349 | 640B4B9D1DDF3C4F003F10E4 /* Sources */, 350 | 640B4B9E1DDF3C4F003F10E4 /* Frameworks */, 351 | 640B4B9F1DDF3C4F003F10E4 /* Resources */, 352 | 64C76C182586B5A8007D758A /* Embed Frameworks */, 353 | ); 354 | buildRules = ( 355 | ); 356 | dependencies = ( 357 | 64C76C162586B5A8007D758A /* PBXTargetDependency */, 358 | ); 359 | name = "SampleApp-iOS"; 360 | productName = TimeLapseBuilder; 361 | productReference = 640B4BA11DDF3C4F003F10E4 /* SampleApp-iOS.app */; 362 | productType = "com.apple.product-type.application"; 363 | }; 364 | 64C76C012586B5A8007D758A /* TimeLapseBuilder-iOS */ = { 365 | isa = PBXNativeTarget; 366 | buildConfigurationList = 64C76C1A2586B5A8007D758A /* Build configuration list for PBXNativeTarget "TimeLapseBuilder-iOS" */; 367 | buildPhases = ( 368 | 64C76BFD2586B5A8007D758A /* Headers */, 369 | 64C76BFE2586B5A8007D758A /* Sources */, 370 | 64C76BFF2586B5A8007D758A /* Frameworks */, 371 | 64C76C002586B5A8007D758A /* Resources */, 372 | ); 373 | buildRules = ( 374 | ); 375 | dependencies = ( 376 | ); 377 | name = "TimeLapseBuilder-iOS"; 378 | productName = "TimeLapseBuilder-iOS"; 379 | productReference = 64C76C022586B5A8007D758A /* TimeLapseBuilder.framework */; 380 | productType = "com.apple.product-type.framework"; 381 | }; 382 | 64C76C092586B5A8007D758A /* TimeLapseBuilder-iOSTests */ = { 383 | isa = PBXNativeTarget; 384 | buildConfigurationList = 64C76C1D2586B5A8007D758A /* Build configuration list for PBXNativeTarget "TimeLapseBuilder-iOSTests" */; 385 | buildPhases = ( 386 | 64C76C062586B5A8007D758A /* Sources */, 387 | 64C76C072586B5A8007D758A /* Frameworks */, 388 | 64C76C082586B5A8007D758A /* Resources */, 389 | ); 390 | buildRules = ( 391 | ); 392 | dependencies = ( 393 | 64C76C0D2586B5A8007D758A /* PBXTargetDependency */, 394 | 64C76C0F2586B5A8007D758A /* PBXTargetDependency */, 395 | ); 396 | name = "TimeLapseBuilder-iOSTests"; 397 | productName = "TimeLapseBuilder-iOSTests"; 398 | productReference = 64C76C0A2586B5A8007D758A /* TimeLapseBuilder-iOSTests.xctest */; 399 | productType = "com.apple.product-type.bundle.unit-test"; 400 | }; 401 | 64C76C262586B5D7007D758A /* SampleApp-macOS */ = { 402 | isa = PBXNativeTarget; 403 | buildConfigurationList = 64C76C2B2586B5D7007D758A /* Build configuration list for PBXNativeTarget "SampleApp-macOS" */; 404 | buildPhases = ( 405 | 64C76C232586B5D7007D758A /* Sources */, 406 | 64C76C242586B5D7007D758A /* Frameworks */, 407 | 64C76C252586B5D7007D758A /* CopyFiles */, 408 | ); 409 | buildRules = ( 410 | ); 411 | dependencies = ( 412 | 64C76DB82586CB6C007D758A /* PBXTargetDependency */, 413 | 64C76DB62586CB5A007D758A /* PBXTargetDependency */, 414 | ); 415 | name = "SampleApp-macOS"; 416 | productName = "SampleApp-macOS"; 417 | productReference = 64C76C272586B5D7007D758A /* SampleApp-macOS */; 418 | productType = "com.apple.product-type.tool"; 419 | }; 420 | 64C76C362586B65D007D758A /* TimeLapseBuilder-macOS */ = { 421 | isa = PBXNativeTarget; 422 | buildConfigurationList = 64C76C482586B65D007D758A /* Build configuration list for PBXNativeTarget "TimeLapseBuilder-macOS" */; 423 | buildPhases = ( 424 | 64C76C322586B65D007D758A /* Headers */, 425 | 64C76C332586B65D007D758A /* Sources */, 426 | 64C76C342586B65D007D758A /* Frameworks */, 427 | 64C76C352586B65D007D758A /* Resources */, 428 | ); 429 | buildRules = ( 430 | ); 431 | dependencies = ( 432 | ); 433 | name = "TimeLapseBuilder-macOS"; 434 | productName = "TimeLapseBuilder-macOS"; 435 | productReference = 64C76C372586B65D007D758A /* TimeLapseBuilder.framework */; 436 | productType = "com.apple.product-type.framework"; 437 | }; 438 | 64C76C3E2586B65D007D758A /* TimeLapseBuilder-macOSTests */ = { 439 | isa = PBXNativeTarget; 440 | buildConfigurationList = 64C76C4B2586B65D007D758A /* Build configuration list for PBXNativeTarget "TimeLapseBuilder-macOSTests" */; 441 | buildPhases = ( 442 | 64C76C3B2586B65D007D758A /* Sources */, 443 | 64C76C3C2586B65D007D758A /* Frameworks */, 444 | 64C76C3D2586B65D007D758A /* Resources */, 445 | ); 446 | buildRules = ( 447 | ); 448 | dependencies = ( 449 | 64C76C422586B65D007D758A /* PBXTargetDependency */, 450 | ); 451 | name = "TimeLapseBuilder-macOSTests"; 452 | productName = "TimeLapseBuilder-macOSTests"; 453 | productReference = 64C76C3F2586B65D007D758A /* TimeLapseBuilder-macOSTests.xctest */; 454 | productType = "com.apple.product-type.bundle.unit-test"; 455 | }; 456 | 64C76D852586C98E007D758A /* SampleFixtures */ = { 457 | isa = PBXNativeTarget; 458 | buildConfigurationList = 64C76D892586C98E007D758A /* Build configuration list for PBXNativeTarget "SampleFixtures" */; 459 | buildPhases = ( 460 | 64C76D822586C98E007D758A /* Sources */, 461 | 64C76D832586C98E007D758A /* Frameworks */, 462 | 64C76D842586C98E007D758A /* Resources */, 463 | ); 464 | buildRules = ( 465 | ); 466 | dependencies = ( 467 | ); 468 | name = SampleFixtures; 469 | productName = SampleFixtures; 470 | productReference = 64C76D862586C98E007D758A /* SampleFixtures.bundle */; 471 | productType = "com.apple.product-type.bundle"; 472 | }; 473 | /* End PBXNativeTarget section */ 474 | 475 | /* Begin PBXProject section */ 476 | 640B4B991DDF3C4F003F10E4 /* Project object */ = { 477 | isa = PBXProject; 478 | attributes = { 479 | LastSwiftUpdateCheck = 1220; 480 | LastUpgradeCheck = 1250; 481 | TargetAttributes = { 482 | 640B4BA01DDF3C4F003F10E4 = { 483 | CreatedOnToolsVersion = 8.1; 484 | DevelopmentTeam = BFEG4H6KA5; 485 | LastSwiftMigration = 1220; 486 | ProvisioningStyle = Automatic; 487 | }; 488 | 64C76C012586B5A8007D758A = { 489 | CreatedOnToolsVersion = 12.2; 490 | ProvisioningStyle = Automatic; 491 | }; 492 | 64C76C092586B5A8007D758A = { 493 | CreatedOnToolsVersion = 12.2; 494 | ProvisioningStyle = Automatic; 495 | TestTargetID = 640B4BA01DDF3C4F003F10E4; 496 | }; 497 | 64C76C262586B5D7007D758A = { 498 | CreatedOnToolsVersion = 12.2; 499 | ProvisioningStyle = Automatic; 500 | }; 501 | 64C76C362586B65D007D758A = { 502 | CreatedOnToolsVersion = 12.2; 503 | ProvisioningStyle = Automatic; 504 | }; 505 | 64C76C3E2586B65D007D758A = { 506 | CreatedOnToolsVersion = 12.2; 507 | ProvisioningStyle = Automatic; 508 | }; 509 | 64C76D852586C98E007D758A = { 510 | CreatedOnToolsVersion = 12.2; 511 | ProvisioningStyle = Automatic; 512 | }; 513 | }; 514 | }; 515 | buildConfigurationList = 640B4B9C1DDF3C4F003F10E4 /* Build configuration list for PBXProject "TimeLapseBuilder" */; 516 | compatibilityVersion = "Xcode 3.2"; 517 | developmentRegion = en; 518 | hasScannedForEncodings = 0; 519 | knownRegions = ( 520 | en, 521 | Base, 522 | ); 523 | mainGroup = 640B4B981DDF3C4F003F10E4; 524 | productRefGroup = 640B4BA21DDF3C4F003F10E4 /* Products */; 525 | projectDirPath = ""; 526 | projectRoot = ""; 527 | targets = ( 528 | 640B4BA01DDF3C4F003F10E4 /* SampleApp-iOS */, 529 | 64C76C012586B5A8007D758A /* TimeLapseBuilder-iOS */, 530 | 64C76C092586B5A8007D758A /* TimeLapseBuilder-iOSTests */, 531 | 64C76C262586B5D7007D758A /* SampleApp-macOS */, 532 | 64C76C362586B65D007D758A /* TimeLapseBuilder-macOS */, 533 | 64C76C3E2586B65D007D758A /* TimeLapseBuilder-macOSTests */, 534 | 64C76D852586C98E007D758A /* SampleFixtures */, 535 | ); 536 | }; 537 | /* End PBXProject section */ 538 | 539 | /* Begin PBXResourcesBuildPhase section */ 540 | 640B4B9F1DDF3C4F003F10E4 /* Resources */ = { 541 | isa = PBXResourcesBuildPhase; 542 | buildActionMask = 2147483647; 543 | files = ( 544 | 64C76B722586717E007D758A /* blue.jpg in Resources */, 545 | 64C76B732586717E007D758A /* red.jpg in Resources */, 546 | 64C76B742586717E007D758A /* white.jpg in Resources */, 547 | 640B4BAF1DDF3C4F003F10E4 /* LaunchScreen.storyboard in Resources */, 548 | 64C76B582585AD4C007D758A /* Assets.xcassets in Resources */, 549 | 640B4BAA1DDF3C4F003F10E4 /* Main.storyboard in Resources */, 550 | ); 551 | runOnlyForDeploymentPostprocessing = 0; 552 | }; 553 | 64C76C002586B5A8007D758A /* Resources */ = { 554 | isa = PBXResourcesBuildPhase; 555 | buildActionMask = 2147483647; 556 | files = ( 557 | ); 558 | runOnlyForDeploymentPostprocessing = 0; 559 | }; 560 | 64C76C082586B5A8007D758A /* Resources */ = { 561 | isa = PBXResourcesBuildPhase; 562 | buildActionMask = 2147483647; 563 | files = ( 564 | 64C76D0E2586C04F007D758A /* red.jpg in Resources */, 565 | 64C76D152586C052007D758A /* white.jpg in Resources */, 566 | 64C76D1C2586C055007D758A /* blue.jpg in Resources */, 567 | ); 568 | runOnlyForDeploymentPostprocessing = 0; 569 | }; 570 | 64C76C352586B65D007D758A /* Resources */ = { 571 | isa = PBXResourcesBuildPhase; 572 | buildActionMask = 2147483647; 573 | files = ( 574 | ); 575 | runOnlyForDeploymentPostprocessing = 0; 576 | }; 577 | 64C76C3D2586B65D007D758A /* Resources */ = { 578 | isa = PBXResourcesBuildPhase; 579 | buildActionMask = 2147483647; 580 | files = ( 581 | 64C76D312586C0E0007D758A /* red.jpg in Resources */, 582 | 64C76D382586C0E3007D758A /* white.jpg in Resources */, 583 | 64C76D3F2586C0E5007D758A /* blue.jpg in Resources */, 584 | ); 585 | runOnlyForDeploymentPostprocessing = 0; 586 | }; 587 | 64C76D842586C98E007D758A /* Resources */ = { 588 | isa = PBXResourcesBuildPhase; 589 | buildActionMask = 2147483647; 590 | files = ( 591 | 64C76D992586C9D7007D758A /* red.jpg in Resources */, 592 | 64C76DA02586C9DA007D758A /* white.jpg in Resources */, 593 | 64C76D922586C9D5007D758A /* blue.jpg in Resources */, 594 | ); 595 | runOnlyForDeploymentPostprocessing = 0; 596 | }; 597 | /* End PBXResourcesBuildPhase section */ 598 | 599 | /* Begin PBXSourcesBuildPhase section */ 600 | 640B4B9D1DDF3C4F003F10E4 /* Sources */ = { 601 | isa = PBXSourcesBuildPhase; 602 | buildActionMask = 2147483647; 603 | files = ( 604 | 640BD6961E75CB310089B27A /* AppDelegate.swift in Sources */, 605 | 640B4BA71DDF3C4F003F10E4 /* ViewController.swift in Sources */, 606 | ); 607 | runOnlyForDeploymentPostprocessing = 0; 608 | }; 609 | 64C76BFE2586B5A8007D758A /* Sources */ = { 610 | isa = PBXSourcesBuildPhase; 611 | buildActionMask = 2147483647; 612 | files = ( 613 | 64C76C6F2586B8FF007D758A /* TimeLapseBuilder.swift in Sources */, 614 | ); 615 | runOnlyForDeploymentPostprocessing = 0; 616 | }; 617 | 64C76C062586B5A8007D758A /* Sources */ = { 618 | isa = PBXSourcesBuildPhase; 619 | buildActionMask = 2147483647; 620 | files = ( 621 | 64C76C952586BC3B007D758A /* TestDelegate.swift in Sources */, 622 | 64C76CA22586BC66007D758A /* TimeLapseBuilderTests.swift in Sources */, 623 | ); 624 | runOnlyForDeploymentPostprocessing = 0; 625 | }; 626 | 64C76C232586B5D7007D758A /* Sources */ = { 627 | isa = PBXSourcesBuildPhase; 628 | buildActionMask = 2147483647; 629 | files = ( 630 | 64C76C2A2586B5D7007D758A /* main.swift in Sources */, 631 | ); 632 | runOnlyForDeploymentPostprocessing = 0; 633 | }; 634 | 64C76C332586B65D007D758A /* Sources */ = { 635 | isa = PBXSourcesBuildPhase; 636 | buildActionMask = 2147483647; 637 | files = ( 638 | 64C76C762586B908007D758A /* TimeLapseBuilder.swift in Sources */, 639 | ); 640 | runOnlyForDeploymentPostprocessing = 0; 641 | }; 642 | 64C76C3B2586B65D007D758A /* Sources */ = { 643 | isa = PBXSourcesBuildPhase; 644 | buildActionMask = 2147483647; 645 | files = ( 646 | 64C76CAF2586BC75007D758A /* TimeLapseBuilderTests.swift in Sources */, 647 | 64C76CB62586BC77007D758A /* TestDelegate.swift in Sources */, 648 | ); 649 | runOnlyForDeploymentPostprocessing = 0; 650 | }; 651 | 64C76D822586C98E007D758A /* Sources */ = { 652 | isa = PBXSourcesBuildPhase; 653 | buildActionMask = 2147483647; 654 | files = ( 655 | ); 656 | runOnlyForDeploymentPostprocessing = 0; 657 | }; 658 | /* End PBXSourcesBuildPhase section */ 659 | 660 | /* Begin PBXTargetDependency section */ 661 | 64C76C0D2586B5A8007D758A /* PBXTargetDependency */ = { 662 | isa = PBXTargetDependency; 663 | target = 64C76C012586B5A8007D758A /* TimeLapseBuilder-iOS */; 664 | targetProxy = 64C76C0C2586B5A8007D758A /* PBXContainerItemProxy */; 665 | }; 666 | 64C76C0F2586B5A8007D758A /* PBXTargetDependency */ = { 667 | isa = PBXTargetDependency; 668 | target = 640B4BA01DDF3C4F003F10E4 /* SampleApp-iOS */; 669 | targetProxy = 64C76C0E2586B5A8007D758A /* PBXContainerItemProxy */; 670 | }; 671 | 64C76C162586B5A8007D758A /* PBXTargetDependency */ = { 672 | isa = PBXTargetDependency; 673 | target = 64C76C012586B5A8007D758A /* TimeLapseBuilder-iOS */; 674 | targetProxy = 64C76C152586B5A8007D758A /* PBXContainerItemProxy */; 675 | }; 676 | 64C76C422586B65D007D758A /* PBXTargetDependency */ = { 677 | isa = PBXTargetDependency; 678 | target = 64C76C362586B65D007D758A /* TimeLapseBuilder-macOS */; 679 | targetProxy = 64C76C412586B65D007D758A /* PBXContainerItemProxy */; 680 | }; 681 | 64C76DB62586CB5A007D758A /* PBXTargetDependency */ = { 682 | isa = PBXTargetDependency; 683 | target = 64C76C362586B65D007D758A /* TimeLapseBuilder-macOS */; 684 | targetProxy = 64C76DB52586CB5A007D758A /* PBXContainerItemProxy */; 685 | }; 686 | 64C76DB82586CB6C007D758A /* PBXTargetDependency */ = { 687 | isa = PBXTargetDependency; 688 | target = 64C76D852586C98E007D758A /* SampleFixtures */; 689 | targetProxy = 64C76DB72586CB6C007D758A /* PBXContainerItemProxy */; 690 | }; 691 | /* End PBXTargetDependency section */ 692 | 693 | /* Begin PBXVariantGroup section */ 694 | 640B4BA81DDF3C4F003F10E4 /* Main.storyboard */ = { 695 | isa = PBXVariantGroup; 696 | children = ( 697 | 640B4BA91DDF3C4F003F10E4 /* Base */, 698 | ); 699 | name = Main.storyboard; 700 | sourceTree = ""; 701 | }; 702 | 640B4BAD1DDF3C4F003F10E4 /* LaunchScreen.storyboard */ = { 703 | isa = PBXVariantGroup; 704 | children = ( 705 | 640B4BAE1DDF3C4F003F10E4 /* Base */, 706 | ); 707 | name = LaunchScreen.storyboard; 708 | sourceTree = ""; 709 | }; 710 | /* End PBXVariantGroup section */ 711 | 712 | /* Begin XCBuildConfiguration section */ 713 | 640B4BBC1DDF3C4F003F10E4 /* Debug */ = { 714 | isa = XCBuildConfiguration; 715 | buildSettings = { 716 | ALWAYS_SEARCH_USER_PATHS = NO; 717 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 718 | CLANG_ANALYZER_NONNULL = YES; 719 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 720 | CLANG_CXX_LIBRARY = "libc++"; 721 | CLANG_ENABLE_MODULES = YES; 722 | CLANG_ENABLE_OBJC_ARC = YES; 723 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 724 | CLANG_WARN_BOOL_CONVERSION = YES; 725 | CLANG_WARN_COMMA = YES; 726 | CLANG_WARN_CONSTANT_CONVERSION = YES; 727 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 728 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 729 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 730 | CLANG_WARN_EMPTY_BODY = YES; 731 | CLANG_WARN_ENUM_CONVERSION = YES; 732 | CLANG_WARN_INFINITE_RECURSION = YES; 733 | CLANG_WARN_INT_CONVERSION = YES; 734 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 735 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 736 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 737 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 738 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 739 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 740 | CLANG_WARN_STRICT_PROTOTYPES = YES; 741 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 742 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 743 | CLANG_WARN_UNREACHABLE_CODE = YES; 744 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 745 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 746 | COPY_PHASE_STRIP = NO; 747 | DEBUG_INFORMATION_FORMAT = dwarf; 748 | ENABLE_STRICT_OBJC_MSGSEND = YES; 749 | ENABLE_TESTABILITY = YES; 750 | GCC_C_LANGUAGE_STANDARD = gnu99; 751 | GCC_DYNAMIC_NO_PIC = NO; 752 | GCC_NO_COMMON_BLOCKS = YES; 753 | GCC_OPTIMIZATION_LEVEL = 0; 754 | GCC_PREPROCESSOR_DEFINITIONS = ( 755 | "DEBUG=1", 756 | "$(inherited)", 757 | ); 758 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 759 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 760 | GCC_WARN_UNDECLARED_SELECTOR = YES; 761 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 762 | GCC_WARN_UNUSED_FUNCTION = YES; 763 | GCC_WARN_UNUSED_VARIABLE = YES; 764 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 765 | MACOSX_DEPLOYMENT_TARGET = 10.15; 766 | MTL_ENABLE_DEBUG_INFO = YES; 767 | ONLY_ACTIVE_ARCH = YES; 768 | SDKROOT = iphoneos; 769 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 770 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 771 | TARGETED_DEVICE_FAMILY = "1,2"; 772 | }; 773 | name = Debug; 774 | }; 775 | 640B4BBD1DDF3C4F003F10E4 /* Release */ = { 776 | isa = XCBuildConfiguration; 777 | buildSettings = { 778 | ALWAYS_SEARCH_USER_PATHS = NO; 779 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 780 | CLANG_ANALYZER_NONNULL = YES; 781 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 782 | CLANG_CXX_LIBRARY = "libc++"; 783 | CLANG_ENABLE_MODULES = YES; 784 | CLANG_ENABLE_OBJC_ARC = YES; 785 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 786 | CLANG_WARN_BOOL_CONVERSION = YES; 787 | CLANG_WARN_COMMA = YES; 788 | CLANG_WARN_CONSTANT_CONVERSION = YES; 789 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 790 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 791 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 792 | CLANG_WARN_EMPTY_BODY = YES; 793 | CLANG_WARN_ENUM_CONVERSION = YES; 794 | CLANG_WARN_INFINITE_RECURSION = YES; 795 | CLANG_WARN_INT_CONVERSION = YES; 796 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 797 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 798 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 799 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 800 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 801 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 802 | CLANG_WARN_STRICT_PROTOTYPES = YES; 803 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 804 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 805 | CLANG_WARN_UNREACHABLE_CODE = YES; 806 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 807 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 808 | COPY_PHASE_STRIP = NO; 809 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 810 | ENABLE_NS_ASSERTIONS = NO; 811 | ENABLE_STRICT_OBJC_MSGSEND = YES; 812 | GCC_C_LANGUAGE_STANDARD = gnu99; 813 | GCC_NO_COMMON_BLOCKS = YES; 814 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 815 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 816 | GCC_WARN_UNDECLARED_SELECTOR = YES; 817 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 818 | GCC_WARN_UNUSED_FUNCTION = YES; 819 | GCC_WARN_UNUSED_VARIABLE = YES; 820 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 821 | MACOSX_DEPLOYMENT_TARGET = 10.15; 822 | MTL_ENABLE_DEBUG_INFO = NO; 823 | SDKROOT = iphoneos; 824 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 825 | TARGETED_DEVICE_FAMILY = "1,2"; 826 | VALIDATE_PRODUCT = YES; 827 | }; 828 | name = Release; 829 | }; 830 | 640B4BBF1DDF3C4F003F10E4 /* Debug */ = { 831 | isa = XCBuildConfiguration; 832 | buildSettings = { 833 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 834 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 835 | DEVELOPMENT_TEAM = BFEG4H6KA5; 836 | INFOPLIST_FILE = "SampleApp-iOS/Info.plist"; 837 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 838 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 839 | PRODUCT_BUNDLE_IDENTIFIER = io.github.acj.TimeLapseBuilderSwift; 840 | PRODUCT_NAME = "$(TARGET_NAME)"; 841 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 842 | SWIFT_VERSION = 5.0; 843 | }; 844 | name = Debug; 845 | }; 846 | 640B4BC01DDF3C4F003F10E4 /* Release */ = { 847 | isa = XCBuildConfiguration; 848 | buildSettings = { 849 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 850 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 851 | DEVELOPMENT_TEAM = BFEG4H6KA5; 852 | INFOPLIST_FILE = "SampleApp-iOS/Info.plist"; 853 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 854 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 855 | PRODUCT_BUNDLE_IDENTIFIER = io.github.acj.TimeLapseBuilderSwift; 856 | PRODUCT_NAME = "$(TARGET_NAME)"; 857 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 858 | SWIFT_VERSION = 5.0; 859 | }; 860 | name = Release; 861 | }; 862 | 64C76C1B2586B5A8007D758A /* Debug */ = { 863 | isa = XCBuildConfiguration; 864 | buildSettings = { 865 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 866 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 867 | CLANG_ENABLE_OBJC_WEAK = YES; 868 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 869 | CODE_SIGN_STYLE = Automatic; 870 | CURRENT_PROJECT_VERSION = 1; 871 | DEFINES_MODULE = YES; 872 | DEVELOPMENT_TEAM = ""; 873 | DYLIB_COMPATIBILITY_VERSION = 1; 874 | DYLIB_CURRENT_VERSION = 1; 875 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 876 | GCC_C_LANGUAGE_STANDARD = gnu11; 877 | INFOPLIST_FILE = "TimeLapseBuilder-iOS/Info.plist"; 878 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 879 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 880 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 881 | MACH_O_TYPE = mh_dylib; 882 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 883 | MTL_FAST_MATH = YES; 884 | PRODUCT_BUNDLE_IDENTIFIER = "org.linuxguy.TimeLapseBuilder-iOS"; 885 | PRODUCT_NAME = TimeLapseBuilder; 886 | SKIP_INSTALL = YES; 887 | SWIFT_VERSION = 5.0; 888 | TARGETED_DEVICE_FAMILY = "1,2"; 889 | VERSIONING_SYSTEM = "apple-generic"; 890 | VERSION_INFO_PREFIX = ""; 891 | }; 892 | name = Debug; 893 | }; 894 | 64C76C1C2586B5A8007D758A /* Release */ = { 895 | isa = XCBuildConfiguration; 896 | buildSettings = { 897 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 898 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 899 | CLANG_ENABLE_OBJC_WEAK = YES; 900 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 901 | CODE_SIGN_STYLE = Automatic; 902 | CURRENT_PROJECT_VERSION = 1; 903 | DEFINES_MODULE = YES; 904 | DEVELOPMENT_TEAM = ""; 905 | DYLIB_COMPATIBILITY_VERSION = 1; 906 | DYLIB_CURRENT_VERSION = 1; 907 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 908 | GCC_C_LANGUAGE_STANDARD = gnu11; 909 | INFOPLIST_FILE = "TimeLapseBuilder-iOS/Info.plist"; 910 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 911 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 912 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 913 | MACH_O_TYPE = mh_dylib; 914 | MTL_FAST_MATH = YES; 915 | PRODUCT_BUNDLE_IDENTIFIER = "org.linuxguy.TimeLapseBuilder-iOS"; 916 | PRODUCT_NAME = TimeLapseBuilder; 917 | SKIP_INSTALL = YES; 918 | SWIFT_VERSION = 5.0; 919 | TARGETED_DEVICE_FAMILY = "1,2"; 920 | VERSIONING_SYSTEM = "apple-generic"; 921 | VERSION_INFO_PREFIX = ""; 922 | }; 923 | name = Release; 924 | }; 925 | 64C76C1E2586B5A8007D758A /* Debug */ = { 926 | isa = XCBuildConfiguration; 927 | buildSettings = { 928 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 929 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 930 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 931 | CLANG_ENABLE_OBJC_WEAK = YES; 932 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 933 | CODE_SIGN_STYLE = Automatic; 934 | DEVELOPMENT_TEAM = ""; 935 | GCC_C_LANGUAGE_STANDARD = gnu11; 936 | INFOPLIST_FILE = "TimeLapseBuilder-iOSTests/Info.plist"; 937 | IPHONEOS_DEPLOYMENT_TARGET = 14.2; 938 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 939 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 940 | MTL_FAST_MATH = YES; 941 | PRODUCT_BUNDLE_IDENTIFIER = "org.linuxguy.TimeLapseBuilder-iOSTests"; 942 | PRODUCT_NAME = "$(TARGET_NAME)"; 943 | SWIFT_VERSION = 5.0; 944 | TARGETED_DEVICE_FAMILY = "1,2"; 945 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SampleApp-iOS.app/SampleApp-iOS"; 946 | }; 947 | name = Debug; 948 | }; 949 | 64C76C1F2586B5A8007D758A /* Release */ = { 950 | isa = XCBuildConfiguration; 951 | buildSettings = { 952 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 953 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 954 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 955 | CLANG_ENABLE_OBJC_WEAK = YES; 956 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 957 | CODE_SIGN_STYLE = Automatic; 958 | DEVELOPMENT_TEAM = ""; 959 | GCC_C_LANGUAGE_STANDARD = gnu11; 960 | INFOPLIST_FILE = "TimeLapseBuilder-iOSTests/Info.plist"; 961 | IPHONEOS_DEPLOYMENT_TARGET = 14.2; 962 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 963 | MTL_FAST_MATH = YES; 964 | PRODUCT_BUNDLE_IDENTIFIER = "org.linuxguy.TimeLapseBuilder-iOSTests"; 965 | PRODUCT_NAME = "$(TARGET_NAME)"; 966 | SWIFT_VERSION = 5.0; 967 | TARGETED_DEVICE_FAMILY = "1,2"; 968 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SampleApp-iOS.app/SampleApp-iOS"; 969 | }; 970 | name = Release; 971 | }; 972 | 64C76C2C2586B5D7007D758A /* Debug */ = { 973 | isa = XCBuildConfiguration; 974 | buildSettings = { 975 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 976 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 977 | CLANG_ENABLE_OBJC_WEAK = YES; 978 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 979 | CODE_SIGN_IDENTITY = "-"; 980 | CODE_SIGN_STYLE = Automatic; 981 | GCC_C_LANGUAGE_STANDARD = gnu11; 982 | MACOSX_DEPLOYMENT_TARGET = 10.14; 983 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 984 | MTL_FAST_MATH = YES; 985 | PRODUCT_NAME = "$(TARGET_NAME)"; 986 | SDKROOT = macosx; 987 | SWIFT_VERSION = 5.0; 988 | }; 989 | name = Debug; 990 | }; 991 | 64C76C2D2586B5D7007D758A /* Release */ = { 992 | isa = XCBuildConfiguration; 993 | buildSettings = { 994 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 995 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 996 | CLANG_ENABLE_OBJC_WEAK = YES; 997 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 998 | CODE_SIGN_IDENTITY = "-"; 999 | CODE_SIGN_STYLE = Automatic; 1000 | GCC_C_LANGUAGE_STANDARD = gnu11; 1001 | MACOSX_DEPLOYMENT_TARGET = 10.14; 1002 | MTL_FAST_MATH = YES; 1003 | PRODUCT_NAME = "$(TARGET_NAME)"; 1004 | SDKROOT = macosx; 1005 | SWIFT_VERSION = 5.0; 1006 | }; 1007 | name = Release; 1008 | }; 1009 | 64C76C492586B65D007D758A /* Debug */ = { 1010 | isa = XCBuildConfiguration; 1011 | buildSettings = { 1012 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 1013 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 1014 | CLANG_ENABLE_OBJC_WEAK = YES; 1015 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 1016 | CODE_SIGN_STYLE = Automatic; 1017 | COMBINE_HIDPI_IMAGES = YES; 1018 | CURRENT_PROJECT_VERSION = 1; 1019 | DEFINES_MODULE = YES; 1020 | DYLIB_COMPATIBILITY_VERSION = 1; 1021 | DYLIB_CURRENT_VERSION = 1; 1022 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 1023 | GCC_C_LANGUAGE_STANDARD = gnu11; 1024 | INFOPLIST_FILE = "TimeLapseBuilder-macOS/Info.plist"; 1025 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 1026 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks"; 1027 | MACH_O_TYPE = mh_dylib; 1028 | MACOSX_DEPLOYMENT_TARGET = 10.14; 1029 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 1030 | MTL_FAST_MATH = YES; 1031 | PRODUCT_BUNDLE_IDENTIFIER = "org.linuxguy.TimeLapseBuilder-macOS"; 1032 | PRODUCT_NAME = TimeLapseBuilder; 1033 | SDKROOT = macosx; 1034 | SKIP_INSTALL = YES; 1035 | SWIFT_VERSION = 5.0; 1036 | VERSIONING_SYSTEM = "apple-generic"; 1037 | VERSION_INFO_PREFIX = ""; 1038 | }; 1039 | name = Debug; 1040 | }; 1041 | 64C76C4A2586B65D007D758A /* Release */ = { 1042 | isa = XCBuildConfiguration; 1043 | buildSettings = { 1044 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 1045 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 1046 | CLANG_ENABLE_OBJC_WEAK = YES; 1047 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 1048 | CODE_SIGN_STYLE = Automatic; 1049 | COMBINE_HIDPI_IMAGES = YES; 1050 | CURRENT_PROJECT_VERSION = 1; 1051 | DEFINES_MODULE = YES; 1052 | DYLIB_COMPATIBILITY_VERSION = 1; 1053 | DYLIB_CURRENT_VERSION = 1; 1054 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 1055 | GCC_C_LANGUAGE_STANDARD = gnu11; 1056 | INFOPLIST_FILE = "TimeLapseBuilder-macOS/Info.plist"; 1057 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 1058 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks"; 1059 | MACH_O_TYPE = mh_dylib; 1060 | MACOSX_DEPLOYMENT_TARGET = 10.14; 1061 | MTL_FAST_MATH = YES; 1062 | PRODUCT_BUNDLE_IDENTIFIER = "org.linuxguy.TimeLapseBuilder-macOS"; 1063 | PRODUCT_NAME = TimeLapseBuilder; 1064 | SDKROOT = macosx; 1065 | SKIP_INSTALL = YES; 1066 | SWIFT_VERSION = 5.0; 1067 | VERSIONING_SYSTEM = "apple-generic"; 1068 | VERSION_INFO_PREFIX = ""; 1069 | }; 1070 | name = Release; 1071 | }; 1072 | 64C76C4C2586B65D007D758A /* Debug */ = { 1073 | isa = XCBuildConfiguration; 1074 | buildSettings = { 1075 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 1076 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 1077 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 1078 | CLANG_ENABLE_OBJC_WEAK = YES; 1079 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 1080 | CODE_SIGN_STYLE = Automatic; 1081 | COMBINE_HIDPI_IMAGES = YES; 1082 | GCC_C_LANGUAGE_STANDARD = gnu11; 1083 | INFOPLIST_FILE = "TimeLapseBuilder-macOSTests/Info.plist"; 1084 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 1085 | MACOSX_DEPLOYMENT_TARGET = 10.15; 1086 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 1087 | MTL_FAST_MATH = YES; 1088 | PRODUCT_BUNDLE_IDENTIFIER = "org.linuxguy.TimeLapseBuilder-macOSTests"; 1089 | PRODUCT_NAME = "$(TARGET_NAME)"; 1090 | SDKROOT = macosx; 1091 | SWIFT_VERSION = 5.0; 1092 | }; 1093 | name = Debug; 1094 | }; 1095 | 64C76C4D2586B65D007D758A /* Release */ = { 1096 | isa = XCBuildConfiguration; 1097 | buildSettings = { 1098 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 1099 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 1100 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 1101 | CLANG_ENABLE_OBJC_WEAK = YES; 1102 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 1103 | CODE_SIGN_STYLE = Automatic; 1104 | COMBINE_HIDPI_IMAGES = YES; 1105 | GCC_C_LANGUAGE_STANDARD = gnu11; 1106 | INFOPLIST_FILE = "TimeLapseBuilder-macOSTests/Info.plist"; 1107 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 1108 | MACOSX_DEPLOYMENT_TARGET = 10.15; 1109 | MTL_FAST_MATH = YES; 1110 | PRODUCT_BUNDLE_IDENTIFIER = "org.linuxguy.TimeLapseBuilder-macOSTests"; 1111 | PRODUCT_NAME = "$(TARGET_NAME)"; 1112 | SDKROOT = macosx; 1113 | SWIFT_VERSION = 5.0; 1114 | }; 1115 | name = Release; 1116 | }; 1117 | 64C76D8A2586C98E007D758A /* Debug */ = { 1118 | isa = XCBuildConfiguration; 1119 | buildSettings = { 1120 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 1121 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 1122 | CLANG_ENABLE_OBJC_WEAK = YES; 1123 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 1124 | CODE_SIGN_STYLE = Automatic; 1125 | COMBINE_HIDPI_IMAGES = YES; 1126 | GCC_C_LANGUAGE_STANDARD = gnu11; 1127 | INFOPLIST_FILE = SampleFixtures/Info.plist; 1128 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; 1129 | MACOSX_DEPLOYMENT_TARGET = 11.0; 1130 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 1131 | MTL_FAST_MATH = YES; 1132 | PRODUCT_BUNDLE_IDENTIFIER = org.linuxguy.SampleFixtures; 1133 | PRODUCT_NAME = "$(TARGET_NAME)"; 1134 | SDKROOT = macosx; 1135 | SKIP_INSTALL = YES; 1136 | WRAPPER_EXTENSION = bundle; 1137 | }; 1138 | name = Debug; 1139 | }; 1140 | 64C76D8B2586C98E007D758A /* Release */ = { 1141 | isa = XCBuildConfiguration; 1142 | buildSettings = { 1143 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 1144 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 1145 | CLANG_ENABLE_OBJC_WEAK = YES; 1146 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 1147 | CODE_SIGN_STYLE = Automatic; 1148 | COMBINE_HIDPI_IMAGES = YES; 1149 | GCC_C_LANGUAGE_STANDARD = gnu11; 1150 | INFOPLIST_FILE = SampleFixtures/Info.plist; 1151 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; 1152 | MACOSX_DEPLOYMENT_TARGET = 11.0; 1153 | MTL_FAST_MATH = YES; 1154 | PRODUCT_BUNDLE_IDENTIFIER = org.linuxguy.SampleFixtures; 1155 | PRODUCT_NAME = "$(TARGET_NAME)"; 1156 | SDKROOT = macosx; 1157 | SKIP_INSTALL = YES; 1158 | WRAPPER_EXTENSION = bundle; 1159 | }; 1160 | name = Release; 1161 | }; 1162 | /* End XCBuildConfiguration section */ 1163 | 1164 | /* Begin XCConfigurationList section */ 1165 | 640B4B9C1DDF3C4F003F10E4 /* Build configuration list for PBXProject "TimeLapseBuilder" */ = { 1166 | isa = XCConfigurationList; 1167 | buildConfigurations = ( 1168 | 640B4BBC1DDF3C4F003F10E4 /* Debug */, 1169 | 640B4BBD1DDF3C4F003F10E4 /* Release */, 1170 | ); 1171 | defaultConfigurationIsVisible = 0; 1172 | defaultConfigurationName = Release; 1173 | }; 1174 | 640B4BBE1DDF3C4F003F10E4 /* Build configuration list for PBXNativeTarget "SampleApp-iOS" */ = { 1175 | isa = XCConfigurationList; 1176 | buildConfigurations = ( 1177 | 640B4BBF1DDF3C4F003F10E4 /* Debug */, 1178 | 640B4BC01DDF3C4F003F10E4 /* Release */, 1179 | ); 1180 | defaultConfigurationIsVisible = 0; 1181 | defaultConfigurationName = Release; 1182 | }; 1183 | 64C76C1A2586B5A8007D758A /* Build configuration list for PBXNativeTarget "TimeLapseBuilder-iOS" */ = { 1184 | isa = XCConfigurationList; 1185 | buildConfigurations = ( 1186 | 64C76C1B2586B5A8007D758A /* Debug */, 1187 | 64C76C1C2586B5A8007D758A /* Release */, 1188 | ); 1189 | defaultConfigurationIsVisible = 0; 1190 | defaultConfigurationName = Release; 1191 | }; 1192 | 64C76C1D2586B5A8007D758A /* Build configuration list for PBXNativeTarget "TimeLapseBuilder-iOSTests" */ = { 1193 | isa = XCConfigurationList; 1194 | buildConfigurations = ( 1195 | 64C76C1E2586B5A8007D758A /* Debug */, 1196 | 64C76C1F2586B5A8007D758A /* Release */, 1197 | ); 1198 | defaultConfigurationIsVisible = 0; 1199 | defaultConfigurationName = Release; 1200 | }; 1201 | 64C76C2B2586B5D7007D758A /* Build configuration list for PBXNativeTarget "SampleApp-macOS" */ = { 1202 | isa = XCConfigurationList; 1203 | buildConfigurations = ( 1204 | 64C76C2C2586B5D7007D758A /* Debug */, 1205 | 64C76C2D2586B5D7007D758A /* Release */, 1206 | ); 1207 | defaultConfigurationIsVisible = 0; 1208 | defaultConfigurationName = Release; 1209 | }; 1210 | 64C76C482586B65D007D758A /* Build configuration list for PBXNativeTarget "TimeLapseBuilder-macOS" */ = { 1211 | isa = XCConfigurationList; 1212 | buildConfigurations = ( 1213 | 64C76C492586B65D007D758A /* Debug */, 1214 | 64C76C4A2586B65D007D758A /* Release */, 1215 | ); 1216 | defaultConfigurationIsVisible = 0; 1217 | defaultConfigurationName = Release; 1218 | }; 1219 | 64C76C4B2586B65D007D758A /* Build configuration list for PBXNativeTarget "TimeLapseBuilder-macOSTests" */ = { 1220 | isa = XCConfigurationList; 1221 | buildConfigurations = ( 1222 | 64C76C4C2586B65D007D758A /* Debug */, 1223 | 64C76C4D2586B65D007D758A /* Release */, 1224 | ); 1225 | defaultConfigurationIsVisible = 0; 1226 | defaultConfigurationName = Release; 1227 | }; 1228 | 64C76D892586C98E007D758A /* Build configuration list for PBXNativeTarget "SampleFixtures" */ = { 1229 | isa = XCConfigurationList; 1230 | buildConfigurations = ( 1231 | 64C76D8A2586C98E007D758A /* Debug */, 1232 | 64C76D8B2586C98E007D758A /* Release */, 1233 | ); 1234 | defaultConfigurationIsVisible = 0; 1235 | defaultConfigurationName = Release; 1236 | }; 1237 | /* End XCConfigurationList section */ 1238 | }; 1239 | rootObject = 640B4B991DDF3C4F003F10E4 /* Project object */; 1240 | } 1241 | -------------------------------------------------------------------------------- /TimeLapseBuilder.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /TimeLapseBuilder.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /TimeLapseBuilder.xcodeproj/xcshareddata/xcschemes/SampleApp-macOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 60 | 62 | 68 | 69 | 70 | 71 | 73 | 74 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /TimeLapseBuilder.xcodeproj/xcshareddata/xcschemes/TimeLapseBuilder-iOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 67 | 68 | 74 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /TimeLapseBuilder.xcodeproj/xcshareddata/xcschemes/TimeLapseBuilder-macOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 54 | 60 | 61 | 67 | 68 | 69 | 70 | 72 | 73 | 76 | 77 | 78 | --------------------------------------------------------------------------------