├── MindfulMinuteDemo ├── Assets.xcassets │ ├── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── MindfulMinuteDemo.entitlements ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── AppDelegate.swift └── ViewController.swift ├── MindfulMinuteDemo.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── xcuserdata │ └── bechurch.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist └── project.pbxproj ├── README.md ├── MindfulMinuteDemoTests ├── Info.plist └── MindfulMinuteDemoTests.swift ├── MindfulMinuteDemoUITests ├── Info.plist └── MindfulMinuteDemoUITests.swift └── .gitignore /MindfulMinuteDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /MindfulMinuteDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # iOS HealthKit Demo 2 | A tutorial meant to show how you can easily read and write from Apple's HealthKit 3 | 4 | ## Tutorial 5 | [How to read and write Mindful Minutes from iOS’s HealthKit with Swift](https://medium.freecodecamp.org/read-write-mindful-minutes-from-healthkit-with-swift-232b65118fe2) 6 | -------------------------------------------------------------------------------- /MindfulMinuteDemo/MindfulMinuteDemo.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.healthkit 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /MindfulMinuteDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /MindfulMinuteDemo.xcodeproj/xcuserdata/bechurch.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | MindfulMinuteDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /MindfulMinuteDemoTests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /MindfulMinuteDemoUITests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /MindfulMinuteDemoTests/MindfulMinuteDemoTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MindfulMinuteDemoTests.swift 3 | // MindfulMinuteDemoTests 4 | // 5 | // Created by Ben Church on 2018-07-05. 6 | // Copyright © 2018 Ben Church. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import MindfulMinuteDemo 11 | 12 | class MindfulMinuteDemoTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | // Use XCTAssert and related functions to verify your tests produce the correct results. 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measure { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /MindfulMinuteDemoUITests/MindfulMinuteDemoUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MindfulMinuteDemoUITests.swift 3 | // MindfulMinuteDemoUITests 4 | // 5 | // Created by Ben Church on 2018-07-05. 6 | // Copyright © 2018 Ben Church. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class MindfulMinuteDemoUITests: XCTestCase { 12 | 13 | override func setUp() { 14 | super.setUp() 15 | 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | 18 | // In UI tests it is usually best to stop immediately when a failure occurs. 19 | continueAfterFailure = false 20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 21 | XCUIApplication().launch() 22 | 23 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 24 | } 25 | 26 | override func tearDown() { 27 | // Put teardown code here. This method is called after the invocation of each test method in the class. 28 | super.tearDown() 29 | } 30 | 31 | func testExample() { 32 | // Use recording to get started writing UI tests. 33 | // Use XCTAssert and related functions to verify your tests produce the correct results. 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /MindfulMinuteDemo/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 | -------------------------------------------------------------------------------- /.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 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | ## Playgrounds 32 | timeline.xctimeline 33 | playground.xcworkspace 34 | 35 | # Swift Package Manager 36 | # 37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 38 | # Packages/ 39 | # Package.pins 40 | # Package.resolved 41 | .build/ 42 | 43 | # CocoaPods 44 | # 45 | # We recommend against adding the Pods directory to your .gitignore. However 46 | # you should judge for yourself, the pros and cons are mentioned at: 47 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 48 | # 49 | # Pods/ 50 | # 51 | # Add this line if you want to avoid checking in source code from the Xcode workspace 52 | *.xcworkspace 53 | 54 | # Carthage 55 | # 56 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 57 | # Carthage/Checkouts 58 | 59 | Carthage/Build 60 | 61 | # fastlane 62 | # 63 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 64 | # screenshots whenever they are needed. 65 | # For more information about the recommended setup visit: 66 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 67 | 68 | fastlane/report.xml 69 | fastlane/Preview.html 70 | fastlane/screenshots/**/*.png 71 | fastlane/test_output 72 | -------------------------------------------------------------------------------- /MindfulMinuteDemo/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 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | healthkit 31 | 32 | NSHealthShareUsageDescription 33 | I would like to access your Mindful Sessions for demoing to readers 34 | NSHealthUpdateUsageDescription 35 | I would like to update your Mindful Sessions for demoing to readers 36 | UISupportedInterfaceOrientations 37 | 38 | UIInterfaceOrientationPortrait 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UISupportedInterfaceOrientations~ipad 43 | 44 | UIInterfaceOrientationPortrait 45 | UIInterfaceOrientationPortraitUpsideDown 46 | UIInterfaceOrientationLandscapeLeft 47 | UIInterfaceOrientationLandscapeRight 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /MindfulMinuteDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /MindfulMinuteDemo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // MindfulMinuteDemo 4 | // 5 | // Created by Ben Church on 2018-07-05. 6 | // Copyright © 2018 Ben Church. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // 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. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // 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. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // 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. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /MindfulMinuteDemo/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // MindfulMinuteDemo 4 | // 5 | // Created by Ben Church on 2018-07-05. 6 | // Copyright © 2018 Ben Church. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import HealthKit 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var meditationMinutesLabel: UILabel! 15 | 16 | // Instantiate the HealthKit Store and Mindful Type 17 | let healthStore = HKHealthStore() 18 | let mindfulType = HKObjectType.categoryType(forIdentifier: .mindfulSession) 19 | 20 | @IBAction func addMinuteAct(_ sender: Any) { 21 | // Create a start and end time 1 minute apart 22 | let startTime = Date() 23 | let endTime = startTime.addingTimeInterval(1.0 * 60.0) 24 | 25 | self.saveMindfullAnalysis(startTime: startTime, endTime: endTime) 26 | } 27 | 28 | override func viewDidLoad() { 29 | super.viewDidLoad() 30 | self.activateHealthKit() 31 | } 32 | 33 | func activateHealthKit() { 34 | // Define what HealthKit data we want to ask to read 35 | let typestoRead = Set([ 36 | HKObjectType.categoryType(forIdentifier: HKCategoryTypeIdentifier.mindfulSession)! 37 | ]) 38 | 39 | // Define what HealthKit data we want to ask to write 40 | let typestoShare = Set([ 41 | HKObjectType.categoryType(forIdentifier: HKCategoryTypeIdentifier.mindfulSession)! 42 | ]) 43 | 44 | // Prompt the User for HealthKit Authorization 45 | self.healthStore.requestAuthorization(toShare: typestoShare, read: typestoRead) { (success, error) -> Void in 46 | if !success{ 47 | print("HealthKit Auth error\(error)") 48 | } 49 | self.retrieveMindFulMinutes() 50 | } 51 | } 52 | 53 | func calculateTotalTime(sample: HKSample) -> TimeInterval { 54 | let totalTime = sample.endDate.timeIntervalSince(sample.startDate) 55 | let wasUserEntered = sample.metadata?[HKMetadataKeyWasUserEntered] as? Bool ?? false 56 | 57 | print("\nHealthkit mindful entry: \(sample.startDate) \(sample.endDate) - value: \(totalTime) quantity: \(totalTime) user entered: \(wasUserEntered)\n") 58 | 59 | return totalTime 60 | } 61 | 62 | func updateMeditationTime(query: HKSampleQuery, results: [HKSample]?, error: Error?) { 63 | if error != nil {return} 64 | 65 | // Sum the meditation time 66 | let totalMeditationTime = results?.map(calculateTotalTime).reduce(0, { $0 + $1 }) ?? 0 67 | 68 | print("\n Total: \(totalMeditationTime)") 69 | 70 | renderMeditationMinuteText(totalMeditationSeconds: totalMeditationTime) 71 | 72 | } 73 | 74 | func renderMeditationMinuteText(totalMeditationSeconds: Double) { 75 | let minutes = Int(totalMeditationSeconds / 60) 76 | let labelText = "\(minutes) Mindful Minutes in the last 24 hours" 77 | DispatchQueue.main.async { 78 | self.meditationMinutesLabel.text = labelText 79 | } 80 | } 81 | 82 | func retrieveMindFulMinutes() { 83 | 84 | // Use a sortDescriptor to get the recent data first (optional) 85 | let sortDescriptor = NSSortDescriptor(key: HKSampleSortIdentifierEndDate, ascending: false) 86 | 87 | // Get all samples from the last 24 hours 88 | let endDate = Date() 89 | let startDate = endDate.addingTimeInterval(-1.0 * 60.0 * 60.0 * 24.0) 90 | let predicate = HKQuery.predicateForSamples(withStart: startDate, end: endDate, options: []) 91 | 92 | // Create the HealthKit Query 93 | let query = HKSampleQuery( 94 | sampleType: mindfulType!, 95 | predicate: predicate, 96 | limit: 0, 97 | sortDescriptors: [sortDescriptor], 98 | resultsHandler: updateMeditationTime 99 | ) 100 | // Execute our query 101 | healthStore.execute(query) 102 | } 103 | 104 | func saveMindfullAnalysis(startTime: Date, endTime: Date) { 105 | // Create a mindful session with the given start and end time 106 | let mindfullSample = HKCategorySample(type:mindfulType!, value: 0, start: startTime, end: endTime) 107 | 108 | // Save it to the health store 109 | healthStore.save(mindfullSample, withCompletion: { (success, error) -> Void in 110 | if error != nil {return} 111 | 112 | print("New data was saved in HealthKit: \(success)") 113 | self.retrieveMindFulMinutes() 114 | }) 115 | } 116 | 117 | } 118 | 119 | -------------------------------------------------------------------------------- /MindfulMinuteDemo/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 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /MindfulMinuteDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | D174EA0520EE172C00953F9E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D174EA0420EE172C00953F9E /* AppDelegate.swift */; }; 11 | D174EA0720EE172C00953F9E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D174EA0620EE172C00953F9E /* ViewController.swift */; }; 12 | D174EA0A20EE172C00953F9E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D174EA0820EE172C00953F9E /* Main.storyboard */; }; 13 | D174EA0C20EE172D00953F9E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D174EA0B20EE172D00953F9E /* Assets.xcassets */; }; 14 | D174EA0F20EE172D00953F9E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D174EA0D20EE172D00953F9E /* LaunchScreen.storyboard */; }; 15 | D174EA1A20EE172D00953F9E /* MindfulMinuteDemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D174EA1920EE172D00953F9E /* MindfulMinuteDemoTests.swift */; }; 16 | D174EA2520EE172D00953F9E /* MindfulMinuteDemoUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D174EA2420EE172D00953F9E /* MindfulMinuteDemoUITests.swift */; }; 17 | D174EA3420EE1AC300953F9E /* HealthKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D174EA3320EE1AC300953F9E /* HealthKit.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | D174EA1620EE172D00953F9E /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = D174E9F920EE172C00953F9E /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = D174EA0020EE172C00953F9E; 26 | remoteInfo = MindfulMinuteDemo; 27 | }; 28 | D174EA2120EE172D00953F9E /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = D174E9F920EE172C00953F9E /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = D174EA0020EE172C00953F9E; 33 | remoteInfo = MindfulMinuteDemo; 34 | }; 35 | /* End PBXContainerItemProxy section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | D174EA0120EE172C00953F9E /* MindfulMinuteDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MindfulMinuteDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | D174EA0420EE172C00953F9E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 40 | D174EA0620EE172C00953F9E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 41 | D174EA0920EE172C00953F9E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | D174EA0B20EE172D00953F9E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | D174EA0E20EE172D00953F9E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | D174EA1020EE172D00953F9E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | D174EA1520EE172D00953F9E /* MindfulMinuteDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MindfulMinuteDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | D174EA1920EE172D00953F9E /* MindfulMinuteDemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MindfulMinuteDemoTests.swift; sourceTree = ""; }; 47 | D174EA1B20EE172D00953F9E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | D174EA2020EE172D00953F9E /* MindfulMinuteDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MindfulMinuteDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | D174EA2420EE172D00953F9E /* MindfulMinuteDemoUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MindfulMinuteDemoUITests.swift; sourceTree = ""; }; 50 | D174EA2620EE172D00953F9E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | D174EA3320EE1AC300953F9E /* HealthKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = HealthKit.framework; path = System/Library/Frameworks/HealthKit.framework; sourceTree = SDKROOT; }; 52 | D174EA3520EE1AC300953F9E /* MindfulMinuteDemo.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = MindfulMinuteDemo.entitlements; sourceTree = ""; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | D174E9FE20EE172C00953F9E /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | D174EA3420EE1AC300953F9E /* HealthKit.framework in Frameworks */, 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | D174EA1220EE172D00953F9E /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | D174EA1D20EE172D00953F9E /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | /* End PBXFrameworksBuildPhase section */ 79 | 80 | /* Begin PBXGroup section */ 81 | D174E9F820EE172C00953F9E = { 82 | isa = PBXGroup; 83 | children = ( 84 | D174EA0320EE172C00953F9E /* MindfulMinuteDemo */, 85 | D174EA1820EE172D00953F9E /* MindfulMinuteDemoTests */, 86 | D174EA2320EE172D00953F9E /* MindfulMinuteDemoUITests */, 87 | D174EA0220EE172C00953F9E /* Products */, 88 | D174EA3220EE1AC300953F9E /* Frameworks */, 89 | ); 90 | sourceTree = ""; 91 | }; 92 | D174EA0220EE172C00953F9E /* Products */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | D174EA0120EE172C00953F9E /* MindfulMinuteDemo.app */, 96 | D174EA1520EE172D00953F9E /* MindfulMinuteDemoTests.xctest */, 97 | D174EA2020EE172D00953F9E /* MindfulMinuteDemoUITests.xctest */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | D174EA0320EE172C00953F9E /* MindfulMinuteDemo */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | D174EA3520EE1AC300953F9E /* MindfulMinuteDemo.entitlements */, 106 | D174EA0420EE172C00953F9E /* AppDelegate.swift */, 107 | D174EA0620EE172C00953F9E /* ViewController.swift */, 108 | D174EA0820EE172C00953F9E /* Main.storyboard */, 109 | D174EA0B20EE172D00953F9E /* Assets.xcassets */, 110 | D174EA0D20EE172D00953F9E /* LaunchScreen.storyboard */, 111 | D174EA1020EE172D00953F9E /* Info.plist */, 112 | ); 113 | path = MindfulMinuteDemo; 114 | sourceTree = ""; 115 | }; 116 | D174EA1820EE172D00953F9E /* MindfulMinuteDemoTests */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | D174EA1920EE172D00953F9E /* MindfulMinuteDemoTests.swift */, 120 | D174EA1B20EE172D00953F9E /* Info.plist */, 121 | ); 122 | path = MindfulMinuteDemoTests; 123 | sourceTree = ""; 124 | }; 125 | D174EA2320EE172D00953F9E /* MindfulMinuteDemoUITests */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | D174EA2420EE172D00953F9E /* MindfulMinuteDemoUITests.swift */, 129 | D174EA2620EE172D00953F9E /* Info.plist */, 130 | ); 131 | path = MindfulMinuteDemoUITests; 132 | sourceTree = ""; 133 | }; 134 | D174EA3220EE1AC300953F9E /* Frameworks */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | D174EA3320EE1AC300953F9E /* HealthKit.framework */, 138 | ); 139 | name = Frameworks; 140 | sourceTree = ""; 141 | }; 142 | /* End PBXGroup section */ 143 | 144 | /* Begin PBXNativeTarget section */ 145 | D174EA0020EE172C00953F9E /* MindfulMinuteDemo */ = { 146 | isa = PBXNativeTarget; 147 | buildConfigurationList = D174EA2920EE172D00953F9E /* Build configuration list for PBXNativeTarget "MindfulMinuteDemo" */; 148 | buildPhases = ( 149 | D174E9FD20EE172C00953F9E /* Sources */, 150 | D174E9FE20EE172C00953F9E /* Frameworks */, 151 | D174E9FF20EE172C00953F9E /* Resources */, 152 | ); 153 | buildRules = ( 154 | ); 155 | dependencies = ( 156 | ); 157 | name = MindfulMinuteDemo; 158 | productName = MindfulMinuteDemo; 159 | productReference = D174EA0120EE172C00953F9E /* MindfulMinuteDemo.app */; 160 | productType = "com.apple.product-type.application"; 161 | }; 162 | D174EA1420EE172D00953F9E /* MindfulMinuteDemoTests */ = { 163 | isa = PBXNativeTarget; 164 | buildConfigurationList = D174EA2C20EE172D00953F9E /* Build configuration list for PBXNativeTarget "MindfulMinuteDemoTests" */; 165 | buildPhases = ( 166 | D174EA1120EE172D00953F9E /* Sources */, 167 | D174EA1220EE172D00953F9E /* Frameworks */, 168 | D174EA1320EE172D00953F9E /* Resources */, 169 | ); 170 | buildRules = ( 171 | ); 172 | dependencies = ( 173 | D174EA1720EE172D00953F9E /* PBXTargetDependency */, 174 | ); 175 | name = MindfulMinuteDemoTests; 176 | productName = MindfulMinuteDemoTests; 177 | productReference = D174EA1520EE172D00953F9E /* MindfulMinuteDemoTests.xctest */; 178 | productType = "com.apple.product-type.bundle.unit-test"; 179 | }; 180 | D174EA1F20EE172D00953F9E /* MindfulMinuteDemoUITests */ = { 181 | isa = PBXNativeTarget; 182 | buildConfigurationList = D174EA2F20EE172D00953F9E /* Build configuration list for PBXNativeTarget "MindfulMinuteDemoUITests" */; 183 | buildPhases = ( 184 | D174EA1C20EE172D00953F9E /* Sources */, 185 | D174EA1D20EE172D00953F9E /* Frameworks */, 186 | D174EA1E20EE172D00953F9E /* Resources */, 187 | ); 188 | buildRules = ( 189 | ); 190 | dependencies = ( 191 | D174EA2220EE172D00953F9E /* PBXTargetDependency */, 192 | ); 193 | name = MindfulMinuteDemoUITests; 194 | productName = MindfulMinuteDemoUITests; 195 | productReference = D174EA2020EE172D00953F9E /* MindfulMinuteDemoUITests.xctest */; 196 | productType = "com.apple.product-type.bundle.ui-testing"; 197 | }; 198 | /* End PBXNativeTarget section */ 199 | 200 | /* Begin PBXProject section */ 201 | D174E9F920EE172C00953F9E /* Project object */ = { 202 | isa = PBXProject; 203 | attributes = { 204 | LastSwiftUpdateCheck = 0940; 205 | LastUpgradeCheck = 0940; 206 | ORGANIZATIONNAME = "Ben Church"; 207 | TargetAttributes = { 208 | D174EA0020EE172C00953F9E = { 209 | CreatedOnToolsVersion = 9.4.1; 210 | SystemCapabilities = { 211 | com.apple.HealthKit = { 212 | enabled = 1; 213 | }; 214 | }; 215 | }; 216 | D174EA1420EE172D00953F9E = { 217 | CreatedOnToolsVersion = 9.4.1; 218 | TestTargetID = D174EA0020EE172C00953F9E; 219 | }; 220 | D174EA1F20EE172D00953F9E = { 221 | CreatedOnToolsVersion = 9.4.1; 222 | TestTargetID = D174EA0020EE172C00953F9E; 223 | }; 224 | }; 225 | }; 226 | buildConfigurationList = D174E9FC20EE172C00953F9E /* Build configuration list for PBXProject "MindfulMinuteDemo" */; 227 | compatibilityVersion = "Xcode 9.3"; 228 | developmentRegion = en; 229 | hasScannedForEncodings = 0; 230 | knownRegions = ( 231 | en, 232 | Base, 233 | ); 234 | mainGroup = D174E9F820EE172C00953F9E; 235 | productRefGroup = D174EA0220EE172C00953F9E /* Products */; 236 | projectDirPath = ""; 237 | projectRoot = ""; 238 | targets = ( 239 | D174EA0020EE172C00953F9E /* MindfulMinuteDemo */, 240 | D174EA1420EE172D00953F9E /* MindfulMinuteDemoTests */, 241 | D174EA1F20EE172D00953F9E /* MindfulMinuteDemoUITests */, 242 | ); 243 | }; 244 | /* End PBXProject section */ 245 | 246 | /* Begin PBXResourcesBuildPhase section */ 247 | D174E9FF20EE172C00953F9E /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | D174EA0F20EE172D00953F9E /* LaunchScreen.storyboard in Resources */, 252 | D174EA0C20EE172D00953F9E /* Assets.xcassets in Resources */, 253 | D174EA0A20EE172C00953F9E /* Main.storyboard in Resources */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | D174EA1320EE172D00953F9E /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | D174EA1E20EE172D00953F9E /* Resources */ = { 265 | isa = PBXResourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | /* End PBXResourcesBuildPhase section */ 272 | 273 | /* Begin PBXSourcesBuildPhase section */ 274 | D174E9FD20EE172C00953F9E /* Sources */ = { 275 | isa = PBXSourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | D174EA0720EE172C00953F9E /* ViewController.swift in Sources */, 279 | D174EA0520EE172C00953F9E /* AppDelegate.swift in Sources */, 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | }; 283 | D174EA1120EE172D00953F9E /* Sources */ = { 284 | isa = PBXSourcesBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | D174EA1A20EE172D00953F9E /* MindfulMinuteDemoTests.swift in Sources */, 288 | ); 289 | runOnlyForDeploymentPostprocessing = 0; 290 | }; 291 | D174EA1C20EE172D00953F9E /* Sources */ = { 292 | isa = PBXSourcesBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | D174EA2520EE172D00953F9E /* MindfulMinuteDemoUITests.swift in Sources */, 296 | ); 297 | runOnlyForDeploymentPostprocessing = 0; 298 | }; 299 | /* End PBXSourcesBuildPhase section */ 300 | 301 | /* Begin PBXTargetDependency section */ 302 | D174EA1720EE172D00953F9E /* PBXTargetDependency */ = { 303 | isa = PBXTargetDependency; 304 | target = D174EA0020EE172C00953F9E /* MindfulMinuteDemo */; 305 | targetProxy = D174EA1620EE172D00953F9E /* PBXContainerItemProxy */; 306 | }; 307 | D174EA2220EE172D00953F9E /* PBXTargetDependency */ = { 308 | isa = PBXTargetDependency; 309 | target = D174EA0020EE172C00953F9E /* MindfulMinuteDemo */; 310 | targetProxy = D174EA2120EE172D00953F9E /* PBXContainerItemProxy */; 311 | }; 312 | /* End PBXTargetDependency section */ 313 | 314 | /* Begin PBXVariantGroup section */ 315 | D174EA0820EE172C00953F9E /* Main.storyboard */ = { 316 | isa = PBXVariantGroup; 317 | children = ( 318 | D174EA0920EE172C00953F9E /* Base */, 319 | ); 320 | name = Main.storyboard; 321 | sourceTree = ""; 322 | }; 323 | D174EA0D20EE172D00953F9E /* LaunchScreen.storyboard */ = { 324 | isa = PBXVariantGroup; 325 | children = ( 326 | D174EA0E20EE172D00953F9E /* Base */, 327 | ); 328 | name = LaunchScreen.storyboard; 329 | sourceTree = ""; 330 | }; 331 | /* End PBXVariantGroup section */ 332 | 333 | /* Begin XCBuildConfiguration section */ 334 | D174EA2720EE172D00953F9E /* Debug */ = { 335 | isa = XCBuildConfiguration; 336 | buildSettings = { 337 | ALWAYS_SEARCH_USER_PATHS = NO; 338 | CLANG_ANALYZER_NONNULL = YES; 339 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 340 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 341 | CLANG_CXX_LIBRARY = "libc++"; 342 | CLANG_ENABLE_MODULES = YES; 343 | CLANG_ENABLE_OBJC_ARC = YES; 344 | CLANG_ENABLE_OBJC_WEAK = YES; 345 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 346 | CLANG_WARN_BOOL_CONVERSION = YES; 347 | CLANG_WARN_COMMA = YES; 348 | CLANG_WARN_CONSTANT_CONVERSION = YES; 349 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 350 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 351 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 352 | CLANG_WARN_EMPTY_BODY = YES; 353 | CLANG_WARN_ENUM_CONVERSION = YES; 354 | CLANG_WARN_INFINITE_RECURSION = YES; 355 | CLANG_WARN_INT_CONVERSION = YES; 356 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 357 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 358 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 359 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 360 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 361 | CLANG_WARN_STRICT_PROTOTYPES = YES; 362 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 363 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 364 | CLANG_WARN_UNREACHABLE_CODE = YES; 365 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 366 | CODE_SIGN_IDENTITY = "iPhone Developer"; 367 | COPY_PHASE_STRIP = NO; 368 | DEBUG_INFORMATION_FORMAT = dwarf; 369 | ENABLE_STRICT_OBJC_MSGSEND = YES; 370 | ENABLE_TESTABILITY = YES; 371 | GCC_C_LANGUAGE_STANDARD = gnu11; 372 | GCC_DYNAMIC_NO_PIC = NO; 373 | GCC_NO_COMMON_BLOCKS = YES; 374 | GCC_OPTIMIZATION_LEVEL = 0; 375 | GCC_PREPROCESSOR_DEFINITIONS = ( 376 | "DEBUG=1", 377 | "$(inherited)", 378 | ); 379 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 380 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 381 | GCC_WARN_UNDECLARED_SELECTOR = YES; 382 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 383 | GCC_WARN_UNUSED_FUNCTION = YES; 384 | GCC_WARN_UNUSED_VARIABLE = YES; 385 | IPHONEOS_DEPLOYMENT_TARGET = 11.4; 386 | MTL_ENABLE_DEBUG_INFO = YES; 387 | ONLY_ACTIVE_ARCH = YES; 388 | SDKROOT = iphoneos; 389 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 390 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 391 | }; 392 | name = Debug; 393 | }; 394 | D174EA2820EE172D00953F9E /* Release */ = { 395 | isa = XCBuildConfiguration; 396 | buildSettings = { 397 | ALWAYS_SEARCH_USER_PATHS = NO; 398 | CLANG_ANALYZER_NONNULL = YES; 399 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 400 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 401 | CLANG_CXX_LIBRARY = "libc++"; 402 | CLANG_ENABLE_MODULES = YES; 403 | CLANG_ENABLE_OBJC_ARC = YES; 404 | CLANG_ENABLE_OBJC_WEAK = YES; 405 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 406 | CLANG_WARN_BOOL_CONVERSION = YES; 407 | CLANG_WARN_COMMA = YES; 408 | CLANG_WARN_CONSTANT_CONVERSION = YES; 409 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 410 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 411 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 412 | CLANG_WARN_EMPTY_BODY = YES; 413 | CLANG_WARN_ENUM_CONVERSION = YES; 414 | CLANG_WARN_INFINITE_RECURSION = YES; 415 | CLANG_WARN_INT_CONVERSION = YES; 416 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 417 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 418 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 419 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 420 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 421 | CLANG_WARN_STRICT_PROTOTYPES = YES; 422 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 423 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 424 | CLANG_WARN_UNREACHABLE_CODE = YES; 425 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 426 | CODE_SIGN_IDENTITY = "iPhone Developer"; 427 | COPY_PHASE_STRIP = NO; 428 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 429 | ENABLE_NS_ASSERTIONS = NO; 430 | ENABLE_STRICT_OBJC_MSGSEND = YES; 431 | GCC_C_LANGUAGE_STANDARD = gnu11; 432 | GCC_NO_COMMON_BLOCKS = YES; 433 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 434 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 435 | GCC_WARN_UNDECLARED_SELECTOR = YES; 436 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 437 | GCC_WARN_UNUSED_FUNCTION = YES; 438 | GCC_WARN_UNUSED_VARIABLE = YES; 439 | IPHONEOS_DEPLOYMENT_TARGET = 11.4; 440 | MTL_ENABLE_DEBUG_INFO = NO; 441 | SDKROOT = iphoneos; 442 | SWIFT_COMPILATION_MODE = wholemodule; 443 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 444 | VALIDATE_PRODUCT = YES; 445 | }; 446 | name = Release; 447 | }; 448 | D174EA2A20EE172D00953F9E /* Debug */ = { 449 | isa = XCBuildConfiguration; 450 | buildSettings = { 451 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 452 | CODE_SIGN_ENTITLEMENTS = MindfulMinuteDemo/MindfulMinuteDemo.entitlements; 453 | CODE_SIGN_STYLE = Automatic; 454 | DEVELOPMENT_TEAM = UL3SJWXF6M; 455 | INFOPLIST_FILE = MindfulMinuteDemo/Info.plist; 456 | LD_RUNPATH_SEARCH_PATHS = ( 457 | "$(inherited)", 458 | "@executable_path/Frameworks", 459 | ); 460 | PRODUCT_BUNDLE_IDENTIFIER = com.education.self.MindfulMinuteDemo; 461 | PRODUCT_NAME = "$(TARGET_NAME)"; 462 | SWIFT_VERSION = 4.0; 463 | TARGETED_DEVICE_FAMILY = "1,2"; 464 | }; 465 | name = Debug; 466 | }; 467 | D174EA2B20EE172D00953F9E /* Release */ = { 468 | isa = XCBuildConfiguration; 469 | buildSettings = { 470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 471 | CODE_SIGN_ENTITLEMENTS = MindfulMinuteDemo/MindfulMinuteDemo.entitlements; 472 | CODE_SIGN_STYLE = Automatic; 473 | DEVELOPMENT_TEAM = UL3SJWXF6M; 474 | INFOPLIST_FILE = MindfulMinuteDemo/Info.plist; 475 | LD_RUNPATH_SEARCH_PATHS = ( 476 | "$(inherited)", 477 | "@executable_path/Frameworks", 478 | ); 479 | PRODUCT_BUNDLE_IDENTIFIER = com.education.self.MindfulMinuteDemo; 480 | PRODUCT_NAME = "$(TARGET_NAME)"; 481 | SWIFT_VERSION = 4.0; 482 | TARGETED_DEVICE_FAMILY = "1,2"; 483 | }; 484 | name = Release; 485 | }; 486 | D174EA2D20EE172D00953F9E /* Debug */ = { 487 | isa = XCBuildConfiguration; 488 | buildSettings = { 489 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 490 | BUNDLE_LOADER = "$(TEST_HOST)"; 491 | CODE_SIGN_STYLE = Automatic; 492 | INFOPLIST_FILE = MindfulMinuteDemoTests/Info.plist; 493 | LD_RUNPATH_SEARCH_PATHS = ( 494 | "$(inherited)", 495 | "@executable_path/Frameworks", 496 | "@loader_path/Frameworks", 497 | ); 498 | PRODUCT_BUNDLE_IDENTIFIER = com.education.self.MindfulMinuteDemoTests; 499 | PRODUCT_NAME = "$(TARGET_NAME)"; 500 | SWIFT_VERSION = 4.0; 501 | TARGETED_DEVICE_FAMILY = "1,2"; 502 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MindfulMinuteDemo.app/MindfulMinuteDemo"; 503 | }; 504 | name = Debug; 505 | }; 506 | D174EA2E20EE172D00953F9E /* Release */ = { 507 | isa = XCBuildConfiguration; 508 | buildSettings = { 509 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 510 | BUNDLE_LOADER = "$(TEST_HOST)"; 511 | CODE_SIGN_STYLE = Automatic; 512 | INFOPLIST_FILE = MindfulMinuteDemoTests/Info.plist; 513 | LD_RUNPATH_SEARCH_PATHS = ( 514 | "$(inherited)", 515 | "@executable_path/Frameworks", 516 | "@loader_path/Frameworks", 517 | ); 518 | PRODUCT_BUNDLE_IDENTIFIER = com.education.self.MindfulMinuteDemoTests; 519 | PRODUCT_NAME = "$(TARGET_NAME)"; 520 | SWIFT_VERSION = 4.0; 521 | TARGETED_DEVICE_FAMILY = "1,2"; 522 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MindfulMinuteDemo.app/MindfulMinuteDemo"; 523 | }; 524 | name = Release; 525 | }; 526 | D174EA3020EE172D00953F9E /* Debug */ = { 527 | isa = XCBuildConfiguration; 528 | buildSettings = { 529 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 530 | CODE_SIGN_STYLE = Automatic; 531 | INFOPLIST_FILE = MindfulMinuteDemoUITests/Info.plist; 532 | LD_RUNPATH_SEARCH_PATHS = ( 533 | "$(inherited)", 534 | "@executable_path/Frameworks", 535 | "@loader_path/Frameworks", 536 | ); 537 | PRODUCT_BUNDLE_IDENTIFIER = com.education.self.MindfulMinuteDemoUITests; 538 | PRODUCT_NAME = "$(TARGET_NAME)"; 539 | SWIFT_VERSION = 4.0; 540 | TARGETED_DEVICE_FAMILY = "1,2"; 541 | TEST_TARGET_NAME = MindfulMinuteDemo; 542 | }; 543 | name = Debug; 544 | }; 545 | D174EA3120EE172D00953F9E /* Release */ = { 546 | isa = XCBuildConfiguration; 547 | buildSettings = { 548 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 549 | CODE_SIGN_STYLE = Automatic; 550 | INFOPLIST_FILE = MindfulMinuteDemoUITests/Info.plist; 551 | LD_RUNPATH_SEARCH_PATHS = ( 552 | "$(inherited)", 553 | "@executable_path/Frameworks", 554 | "@loader_path/Frameworks", 555 | ); 556 | PRODUCT_BUNDLE_IDENTIFIER = com.education.self.MindfulMinuteDemoUITests; 557 | PRODUCT_NAME = "$(TARGET_NAME)"; 558 | SWIFT_VERSION = 4.0; 559 | TARGETED_DEVICE_FAMILY = "1,2"; 560 | TEST_TARGET_NAME = MindfulMinuteDemo; 561 | }; 562 | name = Release; 563 | }; 564 | /* End XCBuildConfiguration section */ 565 | 566 | /* Begin XCConfigurationList section */ 567 | D174E9FC20EE172C00953F9E /* Build configuration list for PBXProject "MindfulMinuteDemo" */ = { 568 | isa = XCConfigurationList; 569 | buildConfigurations = ( 570 | D174EA2720EE172D00953F9E /* Debug */, 571 | D174EA2820EE172D00953F9E /* Release */, 572 | ); 573 | defaultConfigurationIsVisible = 0; 574 | defaultConfigurationName = Release; 575 | }; 576 | D174EA2920EE172D00953F9E /* Build configuration list for PBXNativeTarget "MindfulMinuteDemo" */ = { 577 | isa = XCConfigurationList; 578 | buildConfigurations = ( 579 | D174EA2A20EE172D00953F9E /* Debug */, 580 | D174EA2B20EE172D00953F9E /* Release */, 581 | ); 582 | defaultConfigurationIsVisible = 0; 583 | defaultConfigurationName = Release; 584 | }; 585 | D174EA2C20EE172D00953F9E /* Build configuration list for PBXNativeTarget "MindfulMinuteDemoTests" */ = { 586 | isa = XCConfigurationList; 587 | buildConfigurations = ( 588 | D174EA2D20EE172D00953F9E /* Debug */, 589 | D174EA2E20EE172D00953F9E /* Release */, 590 | ); 591 | defaultConfigurationIsVisible = 0; 592 | defaultConfigurationName = Release; 593 | }; 594 | D174EA2F20EE172D00953F9E /* Build configuration list for PBXNativeTarget "MindfulMinuteDemoUITests" */ = { 595 | isa = XCConfigurationList; 596 | buildConfigurations = ( 597 | D174EA3020EE172D00953F9E /* Debug */, 598 | D174EA3120EE172D00953F9E /* Release */, 599 | ); 600 | defaultConfigurationIsVisible = 0; 601 | defaultConfigurationName = Release; 602 | }; 603 | /* End XCConfigurationList section */ 604 | }; 605 | rootObject = D174E9F920EE172C00953F9E /* Project object */; 606 | } 607 | --------------------------------------------------------------------------------