├── LunchSample ├── ja.lproj │ ├── LaunchScreen.strings │ └── Main.strings ├── MenuRepresentable.swift ├── Supports │ ├── ViewControllerNames.swift │ └── Creator.swift ├── LunchViewController.swift ├── DinnerViewController.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── BreakfastViewController.swift ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── LocaleViewController.swift └── AppDelegate.swift ├── LunchSample.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata ├── xcuserdata │ └── fromkk.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── LunchSample.xcscheme ├── xcshareddata │ └── xcschemes │ │ ├── LunchTestTests.xcscheme │ │ ├── LunchUnitTests.xcscheme │ │ ├── Lunch.xcscheme │ │ └── LunchTest.xcscheme └── project.pbxproj ├── Lunch ├── Makeable.swift ├── Creatable.swift ├── LaunchKeys.swift ├── Lunch.h ├── Info.plist └── Launcher.swift ├── LunchTest ├── ViewControllerTestable.swift ├── PageObjectsRepresentable.swift ├── LunchTest.h ├── Info.plist └── Launcher.swift ├── .travis.yml ├── LunchSampleUITests ├── Components │ ├── LunchViewControllerPage.swift │ ├── BreakfastViewControllerPage.swift │ ├── DinnerViewControllerPage.swift │ └── LocaleViewControllerPage.swift ├── Info.plist ├── DinnerViewControllerTests.swift ├── BreakfastViewControllerTests.swift ├── LunchViewControllerTests.swift └── LocaleViewControllerTests.swift ├── Package.swift ├── LunchTestTests ├── Info.plist └── LauncherTests.swift ├── LunchUnitTests ├── Info.plist └── LauncherTests.swift ├── LICENSE.md ├── .gitignore └── README.md /LunchSample/ja.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /LunchSample/ja.lproj/Main.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "Lunch"; ObjectID = "AWp-oi-PLu"; */ 3 | "AWp-oi-PLu.text" = "Lunch"; 4 | -------------------------------------------------------------------------------- /LunchSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Lunch/Makeable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Maker.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public protocol Makeable { 12 | func make(_ identifier: String, userInfo: [AnyHashable: Any]?) -> T? 13 | } 14 | -------------------------------------------------------------------------------- /Lunch/Creatable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Creatable.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public protocol Creatable { 12 | func create(_ identifier: String, userInfo: [AnyHashable: Any]?) -> T? 13 | } 14 | -------------------------------------------------------------------------------- /LunchTest/ViewControllerTestable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewControllerTestable.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public protocol ViewControllerTestable { 12 | var viewControllerName: String { get } 13 | } 14 | -------------------------------------------------------------------------------- /LunchTest/PageObjectsRepresentable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PageObjectsRepresentable.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | public protocol PageObjectsRepresentable { 12 | var app: XCUIApplication { get set } 13 | init(app: XCUIApplication) 14 | } 15 | -------------------------------------------------------------------------------- /Lunch/LaunchKeys.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LaunchKeys.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public struct LaunchKeys { 12 | public static let viewController: String = "LAUNCH_VIEW_CONTROLLER" 13 | public static let userInfo: String = "LAUNCH_USER_INFO" 14 | } 15 | -------------------------------------------------------------------------------- /LunchSample/MenuRepresentable.swift: -------------------------------------------------------------------------------- 1 | 2 | // 3 | // MenuRepresentable.swift 4 | // LunchSample 5 | // 6 | // Created by Kazuya Ueoka on 2017/08/12. 7 | // Copyright © 2017 fromKK. All rights reserved. 8 | // 9 | 10 | import Foundation 11 | 12 | protocol MenuRepresentable { 13 | var menu: String { get } 14 | } 15 | 16 | struct MenuModel: MenuRepresentable { 17 | var menu: String 18 | } 19 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | matrix: 3 | include: 4 | - osx_image: xcode9.3beta 5 | 6 | script: 7 | - xcodebuild build test -project LunchSample.xcodeproj -scheme Lunch -configuration Debug -destination "platform=iOS Simulator,name=iPhone X" 8 | - xcodebuild build test -project LunchSample.xcodeproj -scheme LunchTest -configuration Debug -destination "platform=iOS Simulator,name=iPhone X" 9 | -------------------------------------------------------------------------------- /Lunch/Lunch.h: -------------------------------------------------------------------------------- 1 | // 2 | // Lunch.h 3 | // Lunch 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Lunch. 12 | FOUNDATION_EXPORT double LunchVersionNumber; 13 | 14 | //! Project version string for Lunch. 15 | FOUNDATION_EXPORT const unsigned char LunchVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /LunchSample/Supports/ViewControllerNames.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewControllerNames.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/10/03. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | enum ViewControllerNames: String { 12 | 13 | case breakFastViewController = "BreakfastViewController" 14 | case lunchViewController = "LunchViewController" 15 | case dinnerViewController = "DinnerViewController" 16 | case localeViewController = "LocaleViewController" 17 | 18 | } 19 | -------------------------------------------------------------------------------- /LunchSampleUITests/Components/LunchViewControllerPage.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LunchViewControllerPage.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | import LunchTest 11 | 12 | struct LunchViewControllerPage: PageObjectsRepresentable { 13 | var app: XCUIApplication 14 | init(app: XCUIApplication) { 15 | self.app = app 16 | } 17 | 18 | var lunchLabel: XCUIElement { 19 | return self.app.staticTexts["lunchLabel"] 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /LunchSampleUITests/Components/BreakfastViewControllerPage.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BreakfastViewControllerPage.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/12. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | import LunchTest 11 | 12 | struct BreakfastViewControllerPage: PageObjectsRepresentable { 13 | var app: XCUIApplication 14 | init(app: XCUIApplication) { 15 | self.app = app 16 | } 17 | 18 | var menuLabel: XCUIElement { 19 | return self.app.staticTexts["menuLabel"] 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /LunchSampleUITests/Components/DinnerViewControllerPage.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DinnerViewControllerComponents.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | import LunchTest 11 | 12 | struct DinnerViewControllerPage: PageObjectsRepresentable { 13 | var app: XCUIApplication 14 | init(app: XCUIApplication) { 15 | self.app = app 16 | } 17 | 18 | var dinnerLabel: XCUIElement { 19 | return self.app.staticTexts["dinnerLabel"] 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /LunchTest/LunchTest.h: -------------------------------------------------------------------------------- 1 | // 2 | // LunchTest.h 3 | // LunchTest 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for LunchTest. 12 | FOUNDATION_EXPORT double LunchTestVersionNumber; 13 | 14 | //! Project version string for LunchTest. 15 | FOUNDATION_EXPORT const unsigned char LunchTestVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.1 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "Lunch", 6 | platforms: [.iOS(.v9)], 7 | products: [ 8 | .library(name: "Lunch", targets: ["Lunch"]), 9 | .library(name: "LunchTest", targets: ["LunchTest"]) 10 | ], 11 | targets: [ 12 | .target( 13 | name: "Lunch", 14 | path: "Lunch", 15 | exclude: [] 16 | ), 17 | .target( 18 | name: "LunchTest", 19 | path: "LunchTest", 20 | exclude: [] 21 | ) 22 | ] 23 | ) 24 | 25 | -------------------------------------------------------------------------------- /LunchSample/LunchViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LunchViewController.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class LunchViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | } 17 | 18 | override func didReceiveMemoryWarning() { 19 | super.didReceiveMemoryWarning() 20 | // Dispose of any resources that can be recreated. 21 | } 22 | 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /LunchTestTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 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 | -------------------------------------------------------------------------------- /LunchUnitTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 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 | -------------------------------------------------------------------------------- /LunchSampleUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 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 | -------------------------------------------------------------------------------- /LunchSampleUITests/Components/LocaleViewControllerPage.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LocaleViewControllerPage.swift 3 | // LunchSampleUITests 4 | // 5 | // Created by Kazuya Ueoka on 2017/10/03. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import XCTest 11 | import LunchTest 12 | 13 | struct LocaleViewControllerPage: PageObjectsRepresentable { 14 | 15 | var app: XCUIApplication 16 | init(app: XCUIApplication) { 17 | self.app = app 18 | } 19 | 20 | var languageLabel: XCUIElement { 21 | return app.staticTexts["languageLabel"] 22 | } 23 | 24 | var regionLabel: XCUIElement { 25 | return app.staticTexts["regionLabel"] 26 | } 27 | 28 | var localeLabel: XCUIElement { 29 | return app.staticTexts["localeLabel"] 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /Lunch/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /LunchTest/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /LunchSampleUITests/DinnerViewControllerTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DinnerViewControllerTests.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | import LunchTest 11 | 12 | class DinnerViewControllerTests: XCTestCase, ViewControllerTestable { 13 | 14 | var viewControllerName: String { 15 | return ViewControllerNames.dinnerViewController.rawValue 16 | } 17 | 18 | override func setUp() { 19 | super.setUp() 20 | 21 | continueAfterFailure = false 22 | } 23 | 24 | func testLunchLabel() { 25 | let launcher = Launcher(targetViewController: self) 26 | let app = launcher.launch() 27 | 28 | let pageObjects = DinnerViewControllerPage(app: app) 29 | XCTAssertTrue(pageObjects.dinnerLabel.exists) 30 | XCTAssertEqual(pageObjects.dinnerLabel.label, "Dinner") 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /LunchSampleUITests/BreakfastViewControllerTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BreakfastViewControllerTests.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/12. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | import LunchTest 11 | 12 | class BreakfastViewControllerTests: XCTestCase, ViewControllerTestable { 13 | var viewControllerName: String { 14 | return ViewControllerNames.breakFastViewController.rawValue 15 | } 16 | 17 | override func setUp() { 18 | super.setUp() 19 | 20 | continueAfterFailure = false 21 | } 22 | 23 | func testMock() { 24 | let launcher = Launcher(targetViewController: self, userInfo: [ 25 | "MOCK_JSON": "{\"menu\": \"Bread\"}" 26 | ]) 27 | let app = launcher.launch() 28 | let page = BreakfastViewControllerPage(app: app) 29 | XCTAssertTrue(page.menuLabel.exists) 30 | XCTAssertEqual(page.menuLabel.label, "Bread") 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /LunchSampleUITests/LunchViewControllerTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LunchViewControllerTests.swift 3 | // LunchSampleUITests 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | import LunchTest 11 | 12 | class LunchViewControllerTests: XCTestCase, ViewControllerTestable { 13 | 14 | var viewControllerName: String { 15 | return ViewControllerNames.lunchViewController.rawValue 16 | } 17 | 18 | override func setUp() { 19 | super.setUp() 20 | 21 | continueAfterFailure = false 22 | } 23 | 24 | func testLunchLabel() { 25 | let launcher = Launcher(targetViewController: self, userInfo: ["MOCK_JSON": "{\"hoge\": \"fuga\"}"]) 26 | let app = launcher.launch() 27 | 28 | let pageObjects = LunchViewControllerPage(app: app) 29 | XCTAssertTrue(pageObjects.lunchLabel.exists) 30 | XCTAssertEqual(pageObjects.lunchLabel.label, "Lunch") 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Lunch/Launcher.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Launcher.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public struct Launcher { 12 | public var creator: Creatable 13 | 14 | public init(with creator: Creatable) { 15 | self.creator = creator 16 | } 17 | 18 | public func launch() -> T? { 19 | guard let viewControllerName: String = ProcessInfo.processInfo.environment[LaunchKeys.viewController] else { 20 | return nil 21 | } 22 | 23 | var userInfo: [AnyHashable: Any]? = nil 24 | if let userInfoString: String = ProcessInfo.processInfo.environment[LaunchKeys.userInfo], 25 | let userInfoData: Data = userInfoString.data(using: .utf8) { 26 | userInfo = (try? JSONSerialization.jsonObject(with: userInfoData, options: [])) as? [AnyHashable : Any] 27 | } 28 | 29 | return self.creator.create(viewControllerName, userInfo: userInfo) 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 fromkk 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 | -------------------------------------------------------------------------------- /LunchSample/DinnerViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DinnerViewController.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class DinnerViewController: UIViewController { 12 | lazy var dinnerLabel: UILabel = { 13 | let label = UILabel() 14 | label.text = "Dinner" 15 | label.textColor = #colorLiteral(red: 0.2, green: 0.2, blue: 0.2, alpha: 1) 16 | label.textAlignment = .center 17 | label.font = UIFont.boldSystemFont(ofSize: 32.0) 18 | label.translatesAutoresizingMaskIntoConstraints = false 19 | label.accessibilityIdentifier = "dinnerLabel" 20 | return label 21 | }() 22 | 23 | override func loadView() { 24 | super.loadView() 25 | 26 | self.view.addSubview(self.dinnerLabel) 27 | self.layoutDinnerLabel() 28 | } 29 | 30 | private func layoutDinnerLabel() { 31 | NSLayoutConstraint.activate([ 32 | NSLayoutConstraint(item: self.dinnerLabel, attribute: .centerX, relatedBy: .equal, toItem: self.view, attribute: .centerX, multiplier: 1.0, constant: 0.0), 33 | NSLayoutConstraint(item: self.dinnerLabel, attribute: .centerY, relatedBy: .equal, toItem: self.view, attribute: .centerY, multiplier: 1.0, constant: 0.0), 34 | ]) 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /LunchSample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /LunchTestTests/LauncherTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LauncherTests.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/18. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import LunchTest 11 | 12 | class LauncherTests: XCTestCase { 13 | 14 | struct ObjectLaunchable: ViewControllerTestable { 15 | var viewControllerName: String { 16 | return "Object" 17 | } 18 | } 19 | 20 | override func setUp() { 21 | super.setUp() 22 | // Put setup code here. This method is called before the invocation of each test method in the class. 23 | } 24 | 25 | override func tearDown() { 26 | // Put teardown code here. This method is called after the invocation of each test method in the class. 27 | super.tearDown() 28 | } 29 | 30 | func testLauncher() { 31 | let objectLaunchable = ObjectLaunchable() 32 | 33 | do { 34 | let launcher: Launcher = Launcher(targetViewController: objectLaunchable, locale: "ja-JP", userInfo: nil) 35 | XCTAssertEqual("Object", launcher.env[LaunchKeys.viewController]) 36 | XCTAssertNil(launcher.env[LaunchKeys.userInfo]) 37 | } 38 | 39 | do { 40 | let launcher: Launcher = Launcher(targetViewController: objectLaunchable, locale: "ja-JP", userInfo: ["value": "Hello"]) 41 | XCTAssertEqual("{\"value\":\"Hello\"}", launcher.env[LaunchKeys.userInfo]) 42 | } 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /LunchSample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 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 | UIRequiredDeviceCapabilities 26 | 27 | armv7 28 | 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /LunchUnitTests/LauncherTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LauncherTests.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/18. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import Lunch 11 | 12 | class LauncherTests: XCTestCase { 13 | 14 | struct Object: Equatable { 15 | var value: String? 16 | 17 | static func == (lhs: Object, rhs: Object) -> Bool { 18 | return lhs.value == rhs.value 19 | } 20 | } 21 | 22 | struct Creator: Creatable { 23 | func create(_ identifier: String, userInfo: [AnyHashable : Any]?) -> T? { 24 | if "Object" == identifier { 25 | return Object(value: userInfo?["value"] as? String) as? T 26 | } 27 | 28 | return nil 29 | } 30 | } 31 | 32 | override func setUp() { 33 | super.setUp() 34 | // Put setup code here. This method is called before the invocation of each test method in the class. 35 | } 36 | 37 | override func tearDown() { 38 | // Put teardown code here. This method is called after the invocation of each test method in the class. 39 | super.tearDown() 40 | } 41 | 42 | func testLauncher() { 43 | XCTAssertNil(Creator().create("Test", userInfo: nil)) 44 | 45 | XCTAssertEqual(Object(), Creator().create("Object", userInfo: nil)) 46 | 47 | XCTAssertEqual(Object(value: "Hello"), Creator().create("Object", userInfo: ["value": "Hello"])) 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /LunchSample/BreakfastViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BreakfastViewController.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/12. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class BreakfastViewController: UIViewController { 12 | var menuModel: MenuRepresentable { 13 | didSet { 14 | self.menuLabel.text = menuModel.menu 15 | } 16 | } 17 | init(menuModel: MenuRepresentable) { 18 | self.menuModel = menuModel 19 | 20 | super.init(nibName: nil, bundle: nil) 21 | } 22 | 23 | required init?(coder aDecoder: NSCoder) { 24 | fatalError("init(coder:) has not been implemented") 25 | } 26 | 27 | var menuLabel: UILabel = { 28 | let label = UILabel() 29 | label.textColor = #colorLiteral(red: 0.2, green: 0.2, blue: 0.2, alpha: 1) 30 | label.font = UIFont.boldSystemFont(ofSize: 32.0) 31 | label.textAlignment = .center 32 | label.translatesAutoresizingMaskIntoConstraints = false 33 | label.accessibilityIdentifier = "menuLabel" 34 | return label 35 | }() 36 | 37 | override func loadView() { 38 | super.loadView() 39 | 40 | self.menuLabel.text = self.menuModel.menu 41 | self.view.addSubview(self.menuLabel) 42 | self.layoutMenuLabel() 43 | } 44 | 45 | private func layoutMenuLabel() { 46 | NSLayoutConstraint.activate([ 47 | NSLayoutConstraint(item: self.menuLabel, attribute: .centerX, relatedBy: .equal, toItem: self.view, attribute: .centerX, multiplier: 1.0, constant: 0.0), 48 | NSLayoutConstraint(item: self.menuLabel, attribute: .centerY, relatedBy: .equal, toItem: self.view, attribute: .centerY, multiplier: 1.0, constant: 0.0), 49 | ]) 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /LunchSample.xcodeproj/xcuserdata/fromkk.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Lunch.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 1 11 | 12 | LunchSample.xcscheme 13 | 14 | orderHint 15 | 0 16 | 17 | LunchTest.xcscheme_^#shared#^_ 18 | 19 | orderHint 20 | 2 21 | 22 | LunchTestTests.xcscheme_^#shared#^_ 23 | 24 | orderHint 25 | 4 26 | 27 | LunchUnitTests.xcscheme_^#shared#^_ 28 | 29 | orderHint 30 | 3 31 | 32 | 33 | SuppressBuildableAutocreation 34 | 35 | AD7639571F47121900BDF5A8 36 | 37 | primary 38 | 39 | 40 | AD7639681F47150500BDF5A8 41 | 42 | primary 43 | 44 | 45 | AD8D72871F3DA6C900D5969F 46 | 47 | primary 48 | 49 | 50 | AD8D729B1F3DA6C900D5969F 51 | 52 | primary 53 | 54 | 55 | AD8D72AF1F3DA6D900D5969F 56 | 57 | primary 58 | 59 | 60 | AD8D72C11F3DA6E200D5969F 61 | 62 | primary 63 | 64 | 65 | AD8D72D21F3DA70000D5969F 66 | 67 | primary 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /LunchSample/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 | -------------------------------------------------------------------------------- /LunchSample/Supports/Creator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Creator.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import Lunch 11 | 12 | struct Creator: Creatable { 13 | func create(_ identifier: String, userInfo: [AnyHashable : Any]?) -> T? { 14 | guard let viewControllerName = ViewControllerNames(rawValue: identifier) else { return nil } 15 | 16 | switch viewControllerName { 17 | case .breakFastViewController: 18 | let model: MenuModel 19 | if let data = (userInfo?["MOCK_JSON"] as? String)?.data(using: .utf8), 20 | let json: [String: String] = (try? JSONSerialization.jsonObject(with: data, options: [])) as? [String: String] { 21 | model = MenuModel(menu: json["menu"] ?? "") 22 | } else { 23 | model = MenuModel(menu: "") 24 | } 25 | return breakfastViewController(menu: model) as? T 26 | case .lunchViewController: 27 | return lunchViewController() as? T 28 | case .dinnerViewController: 29 | return dinnerViewController() as? T 30 | case .localeViewController: 31 | return localeViewController() as? T 32 | } 33 | } 34 | } 35 | 36 | extension Creator { 37 | func breakfastViewController(menu: MenuRepresentable) -> BreakfastViewController { 38 | return BreakfastViewController(menuModel: menu) 39 | } 40 | 41 | func lunchViewController() -> LunchViewController { 42 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle.main) 43 | return storyboard.instantiateInitialViewController() as! LunchViewController 44 | } 45 | 46 | func dinnerViewController() -> DinnerViewController { 47 | return DinnerViewController() 48 | } 49 | 50 | func localeViewController() -> LocaleViewController { 51 | return LocaleViewController() 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /LunchSample.xcodeproj/xcshareddata/xcschemes/LunchTestTests.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 14 | 15 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 39 | 40 | 41 | 42 | 48 | 49 | 51 | 52 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /LunchSample.xcodeproj/xcshareddata/xcschemes/LunchUnitTests.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 14 | 15 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 39 | 40 | 41 | 42 | 48 | 49 | 51 | 52 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /LunchSampleUITests/LocaleViewControllerTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LocaleViewControllerTests.swift 3 | // LunchSampleUITests 4 | // 5 | // Created by Kazuya Ueoka on 2017/10/03. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | import LunchTest 11 | 12 | class LocaleViewControllerTests: XCTestCase, ViewControllerTestable { 13 | 14 | var viewControllerName: String { 15 | return ViewControllerNames.localeViewController.rawValue 16 | } 17 | 18 | func testJa_JP() { 19 | 20 | let app = Launcher(targetViewController: self, locale: "ja_JP", userInfo: nil).launch() 21 | let page = LocaleViewControllerPage(app: app) 22 | 23 | XCTContext.runActivity(named: "languageLabelの値がjaである事を確認する") { (_) in 24 | XCTAssertTrue(page.languageLabel.exists) 25 | XCTAssertEqual(page.languageLabel.label, "ja") 26 | } 27 | 28 | XCTContext.runActivity(named: "regionLabelの値がJPである事を確認する") { (_) in 29 | XCTAssertTrue(page.regionLabel.exists) 30 | XCTAssertEqual(page.regionLabel.label, "JP") 31 | } 32 | 33 | XCTContext.runActivity(named: "localeLabelの値がja_JPである事を確認する") { (_) in 34 | XCTAssertTrue(page.localeLabel.exists) 35 | XCTAssertEqual(page.localeLabel.label, "ja_JP") 36 | } 37 | } 38 | 39 | func testEn_US() { 40 | 41 | let app = Launcher(targetViewController: self, locale: "en_US", userInfo: nil).launch() 42 | let page = LocaleViewControllerPage(app: app) 43 | 44 | XCTContext.runActivity(named: "languageLabelの値がenである事を確認する") { (_) in 45 | XCTAssertTrue(page.languageLabel.exists) 46 | XCTAssertEqual(page.languageLabel.label, "en") 47 | } 48 | 49 | XCTContext.runActivity(named: "regionLabelの値がUSである事を確認する") { (_) in 50 | XCTAssertTrue(page.regionLabel.exists) 51 | XCTAssertEqual(page.regionLabel.label, "US") 52 | } 53 | 54 | XCTContext.runActivity(named: "localeLabelの値がen_USである事を確認する") { (_) in 55 | XCTAssertTrue(page.localeLabel.exists) 56 | XCTAssertEqual(page.localeLabel.label, "en_US") 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /LunchSample/LocaleViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LocaleViewController.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/10/03. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class LocaleViewController: UIViewController { 12 | 13 | lazy var languageLabel: UILabel = { 14 | let label = UILabel() 15 | label.textColor = #colorLiteral(red: 0.2, green: 0.2, blue: 0.2, alpha: 1) 16 | label.textAlignment = .center 17 | label.font = UIFont.boldSystemFont(ofSize: 32.0) 18 | label.translatesAutoresizingMaskIntoConstraints = false 19 | label.accessibilityIdentifier = "languageLabel" 20 | return label 21 | }() 22 | 23 | lazy var regionLabel: UILabel = { 24 | let label = UILabel() 25 | label.textColor = #colorLiteral(red: 0.2, green: 0.2, blue: 0.2, alpha: 1) 26 | label.textAlignment = .center 27 | label.font = UIFont.boldSystemFont(ofSize: 32.0) 28 | label.translatesAutoresizingMaskIntoConstraints = false 29 | label.accessibilityIdentifier = "regionLabel" 30 | return label 31 | }() 32 | 33 | lazy var localeLabel: UILabel = { 34 | let label = UILabel() 35 | label.textColor = #colorLiteral(red: 0.2, green: 0.2, blue: 0.2, alpha: 1) 36 | label.textAlignment = .center 37 | label.font = UIFont.boldSystemFont(ofSize: 32.0) 38 | label.translatesAutoresizingMaskIntoConstraints = false 39 | label.accessibilityIdentifier = "localeLabel" 40 | return label 41 | }() 42 | 43 | override func loadView() { 44 | super.loadView() 45 | 46 | view.addSubview(languageLabel) 47 | view.addSubview(regionLabel) 48 | view.addSubview(localeLabel) 49 | 50 | NSLayoutConstraint.activate([ 51 | languageLabel.centerXAnchor.constraint(equalTo: view.centerXAnchor), 52 | languageLabel.topAnchor.constraint(equalTo: topLayoutGuide.bottomAnchor, constant: 60.0), 53 | regionLabel.centerXAnchor.constraint(equalTo: view.centerXAnchor), 54 | regionLabel.topAnchor.constraint(equalTo: languageLabel.bottomAnchor, constant: 32.0), 55 | localeLabel.centerXAnchor.constraint(equalTo: view.centerXAnchor), 56 | localeLabel.topAnchor.constraint(equalTo: regionLabel.bottomAnchor, constant: 32.0), 57 | ]) 58 | } 59 | 60 | override func viewDidLoad() { 61 | super.viewDidLoad() 62 | 63 | languageLabel.text = Locale.current.languageCode 64 | regionLabel.text = Locale.current.regionCode 65 | localeLabel.text = Locale.current.identifier 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.gitignore.io/api/osx,swift,xcode,carthage 3 | 4 | ### Carthage ### 5 | # Carthage 6 | # 7 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 8 | # Carthage/Checkouts 9 | 10 | Carthage/Build 11 | 12 | ### OSX ### 13 | *.DS_Store 14 | .AppleDouble 15 | .LSOverride 16 | 17 | # Icon must end with two \r 18 | Icon 19 | 20 | # Thumbnails 21 | ._* 22 | 23 | # Files that might appear in the root of a volume 24 | .DocumentRevisions-V100 25 | .fseventsd 26 | .Spotlight-V100 27 | .TemporaryItems 28 | .Trashes 29 | .VolumeIcon.icns 30 | .com.apple.timemachine.donotpresent 31 | 32 | # Directories potentially created on remote AFP share 33 | .AppleDB 34 | .AppleDesktop 35 | Network Trash Folder 36 | Temporary Items 37 | .apdisk 38 | 39 | ### Swift ### 40 | # Xcode 41 | # 42 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 43 | 44 | ## Build generated 45 | build/ 46 | DerivedData/ 47 | 48 | ## Various settings 49 | *.pbxuser 50 | !default.pbxuser 51 | *.mode1v3 52 | !default.mode1v3 53 | *.mode2v3 54 | !default.mode2v3 55 | *.perspectivev3 56 | !default.perspectivev3 57 | xcuserdata/ 58 | 59 | ## Other 60 | *.moved-aside 61 | *.xccheckout 62 | *.xcscmblueprint 63 | 64 | ## Obj-C/Swift specific 65 | *.hmap 66 | *.ipa 67 | *.dSYM.zip 68 | *.dSYM 69 | 70 | ## Playgrounds 71 | timeline.xctimeline 72 | playground.xcworkspace 73 | 74 | # Swift Package Manager 75 | # 76 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 77 | # Packages/ 78 | # Package.pins 79 | .build/ 80 | 81 | # CocoaPods - Refactored to standalone file 82 | 83 | # Carthage - Refactored to standalone file 84 | 85 | # fastlane 86 | # 87 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 88 | # screenshots whenever they are needed. 89 | # For more information about the recommended setup visit: 90 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 91 | 92 | fastlane/report.xml 93 | fastlane/Preview.html 94 | fastlane/screenshots 95 | fastlane/test_output 96 | 97 | ### Xcode ### 98 | # Xcode 99 | # 100 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 101 | 102 | ## Build generated 103 | 104 | ## Various settings 105 | 106 | ## Other 107 | 108 | ### Xcode Patch ### 109 | *.xcodeproj/* 110 | !*.xcodeproj/project.pbxproj 111 | !*.xcodeproj/xcshareddata/ 112 | !*.xcworkspace/contents.xcworkspacedata 113 | /*.gcno 114 | 115 | # End of https://www.gitignore.io/api/osx,swift,xcode,carthage 116 | -------------------------------------------------------------------------------- /LunchTest/Launcher.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Launcher.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import XCTest 11 | 12 | public struct LaunchKeys { 13 | public static let viewController: String = "LAUNCH_VIEW_CONTROLLER" 14 | public static let userInfo: String = "LAUNCH_USER_INFO" 15 | } 16 | 17 | public class Launcher { 18 | public var targetViewController: ViewControllerTestable 19 | public var locale: String 20 | public var userInfo: [AnyHashable: Any]? 21 | public lazy var application: XCUIApplication = { 22 | let app: XCUIApplication = XCUIApplication() 23 | app.launchEnvironment = env 24 | app.launchArguments = arguments 25 | app.launch() 26 | return app 27 | }() 28 | 29 | public init(targetViewController: ViewControllerTestable, locale: String = "ja-JP", userInfo: [AnyHashable: Any]? = nil) { 30 | self.targetViewController = targetViewController 31 | self.locale = locale 32 | self.userInfo = userInfo 33 | } 34 | 35 | public var env: [String: String] { 36 | var result: [String: String] = [ 37 | LaunchKeys.viewController: self.targetViewController.viewControllerName 38 | ] 39 | 40 | if let userInfo: [AnyHashable: Any] = self.userInfo { 41 | if let data: Data = try? JSONSerialization.data(withJSONObject: userInfo, options: []), 42 | let userInfoString: String = String(data: data, encoding: .utf8) { 43 | result[LaunchKeys.userInfo] = userInfoString 44 | } 45 | } 46 | 47 | return result 48 | } 49 | 50 | private var language: String? { 51 | let locales: [String]? 52 | if locale.contains("-") { 53 | locales = locale.components(separatedBy: "-") 54 | } else if locale.contains("_") { 55 | locales = locale.components(separatedBy: "_") 56 | } else { 57 | locales = nil 58 | } 59 | 60 | return locales?.first 61 | } 62 | 63 | private var arguments: [String] { 64 | var result: [String] = [] 65 | if let language = self.language { 66 | result.append(contentsOf: [ 67 | "-AppleLanguages", "(\(language))", 68 | ]) 69 | } 70 | 71 | result.append(contentsOf: [ 72 | "-AppleLocale", self.locale, 73 | ]) 74 | 75 | return result 76 | } 77 | 78 | @discardableResult 79 | public func launch(_ app: XCUIApplication? = nil) -> XCUIApplication { 80 | if let app = app { 81 | app.launch() 82 | return app 83 | } else { 84 | self.application.launch() 85 | return self.application 86 | } 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /LunchSample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // LunchSample 4 | // 5 | // Created by Kazuya Ueoka on 2017/08/11. 6 | // Copyright © 2017 fromKK. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import Lunch 11 | 12 | @UIApplicationMain 13 | class AppDelegate: UIResponder, UIApplicationDelegate { 14 | 15 | var window: UIWindow? 16 | 17 | 18 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 19 | 20 | window = UIWindow(frame: UIScreen.main.bounds) 21 | window?.backgroundColor = .white 22 | 23 | let creator = Creator() 24 | let rootViewController: UIViewController 25 | #if DEBUG 26 | if let viewController: UIViewController = Launcher(with: creator).launch() { 27 | rootViewController = viewController 28 | } else { 29 | rootViewController = creator.lunchViewController() 30 | } 31 | #else 32 | rootViewController = creator.lunchViewController() 33 | #endif 34 | window?.rootViewController = rootViewController 35 | window?.makeKeyAndVisible() 36 | 37 | return true 38 | } 39 | 40 | func applicationWillResignActive(_ application: UIApplication) { 41 | // 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. 42 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 43 | } 44 | 45 | func applicationDidEnterBackground(_ application: UIApplication) { 46 | // 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. 47 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 48 | } 49 | 50 | func applicationWillEnterForeground(_ application: UIApplication) { 51 | // 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. 52 | } 53 | 54 | func applicationDidBecomeActive(_ application: UIApplication) { 55 | // 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. 56 | } 57 | 58 | func applicationWillTerminate(_ application: UIApplication) { 59 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 60 | } 61 | 62 | 63 | } 64 | 65 | -------------------------------------------------------------------------------- /LunchSample/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 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Build Status](https://app.bitrise.io/app/f867ecf1d4e7e2b0/status.svg?token=ojd97UYMck4Wj2LREpRTiQ)](https://app.bitrise.io/app/f867ecf1d4e7e2b0) 2 | 3 | # Lunch 4 | 5 | 6 | 7 | Lunch is helper of UI Test with Swift. 8 | 9 | ## Requirements 10 | 11 | - Swift 4.0 or later 12 | - iOS 9 or later 13 | 14 | ## Installation 15 | 16 | ### Carthage 17 | 18 | - Insert `github "fromkk/Lunch"` to your `Cartfile` . 19 | - Run `carthage update` 20 | - Link your app with `Lunch.framework` in `Carthage/Build` 21 | - Link your UI test target with `LunchTest.framework` in `Carthage/Build` 22 | 23 | ## Usage 24 | 25 | In App target adopt protocol `Creatable`. 26 | 27 | ```swift 28 | import Lunch 29 | 30 | struct Creator: Creatable { 31 | func create(_ identifier: String, userInfo: [AnyHashable : Any]?) -> T? { 32 | switch identifier { 33 | case "LunchViewController": 34 | return self.lunchViewController() as? T 35 | default: 36 | return nil 37 | } 38 | } 39 | } 40 | 41 | extension Creatable { 42 | func lunchViewController() -> LunchViewController { 43 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle.main) 44 | return storyboard.instantiateInitialViewController() as! LunchViewController 45 | } 46 | } 47 | 48 | ``` 49 | 50 | ```swift 51 | // AppDelegate.swift 52 | import Lunch 53 | 54 | let creator = Creator() 55 | let rootViewController: UIViewController 56 | #if DEBUG 57 | if let viewController: UIViewController = Launcher(with: creator).launch() { 58 | rootViewController = viewController 59 | } else { 60 | rootViewController = creator.lunchViewController() 61 | } 62 | #else 63 | rootViewController = creator.lunchViewController() 64 | #endif 65 | window?.rootViewController = rootViewController 66 | ``` 67 | 68 | > NOTE: If you want change rootViewController after `Run` Xcode, set `LAUNCH_VIEW_CONTROLLER` key and viewController name to value in `Environment Variables` of your scheme. 69 | 70 | In UI Test target. 71 | 72 | 1 Add component and adopt protocol `PageObjectsRepresentable`. 73 | 74 | ```swift 75 | import XCTest 76 | import LunchTest 77 | 78 | struct LunchViewControllerPage: PageObjectsRepresentable { 79 | var app: XCUIApplication 80 | init(app: XCUIApplication) { 81 | self.app = app 82 | } 83 | 84 | var lunchLabel: XCUIElement { 85 | return self.app.staticTexts["lunchLabel"] 86 | } 87 | } 88 | ``` 89 | 90 | 2 Add your tests and adopt protocol `ViewControllerTestable` 91 | 92 | ```swift 93 | import XCTest 94 | import LunchTest 95 | 96 | class LunchViewControllerTests: XCTestCase, ViewControllerTestable { 97 | 98 | var viewControllerName: String { 99 | return "LunchViewController" 100 | } 101 | 102 | override func setUp() { 103 | super.setUp() 104 | 105 | continueAfterFailure = false 106 | } 107 | 108 | func testLunchLabel() { 109 | let launcher = Launcher(targetViewController: self) 110 | let app = launcher.launch() 111 | 112 | let page = LunchViewControllerPage(app: app) 113 | XCTAssertTrue(page.lunchLabel.exists) 114 | XCTAssertEqual(page.lunchLabel.label, "Lunch") 115 | } 116 | } 117 | ``` 118 | -------------------------------------------------------------------------------- /LunchSample.xcodeproj/xcshareddata/xcschemes/Lunch.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 79 | 85 | 86 | 87 | 88 | 89 | 90 | 96 | 97 | 103 | 104 | 105 | 106 | 108 | 109 | 112 | 113 | 114 | -------------------------------------------------------------------------------- /LunchSample.xcodeproj/xcshareddata/xcschemes/LunchTest.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 79 | 85 | 86 | 87 | 88 | 89 | 90 | 96 | 97 | 103 | 104 | 105 | 106 | 108 | 109 | 112 | 113 | 114 | -------------------------------------------------------------------------------- /LunchSample.xcodeproj/xcuserdata/fromkk.xcuserdatad/xcschemes/LunchSample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 66 | 68 | 74 | 75 | 76 | 77 | 81 | 82 | 86 | 87 | 91 | 92 | 96 | 97 | 98 | 99 | 100 | 101 | 107 | 109 | 115 | 116 | 117 | 118 | 120 | 121 | 124 | 125 | 126 | -------------------------------------------------------------------------------- /LunchSample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | AD76395D1F47121900BDF5A8 /* Lunch.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD8D72B01F3DA6D900D5969F /* Lunch.framework */; }; 11 | AD7639641F47122B00BDF5A8 /* LauncherTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD7639631F47122B00BDF5A8 /* LauncherTests.swift */; }; 12 | AD76396E1F47150500BDF5A8 /* LunchTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD8D72D31F3DA70000D5969F /* LunchTest.framework */; }; 13 | AD7639751F47152100BDF5A8 /* LauncherTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD7639741F47152100BDF5A8 /* LauncherTests.swift */; }; 14 | AD8D728C1F3DA6C900D5969F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD8D728B1F3DA6C900D5969F /* AppDelegate.swift */; }; 15 | AD8D728E1F3DA6C900D5969F /* LunchViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD8D728D1F3DA6C900D5969F /* LunchViewController.swift */; }; 16 | AD8D72911F3DA6C900D5969F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AD8D728F1F3DA6C900D5969F /* Main.storyboard */; }; 17 | AD8D72931F3DA6C900D5969F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AD8D72921F3DA6C900D5969F /* Assets.xcassets */; }; 18 | AD8D72961F3DA6C900D5969F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AD8D72941F3DA6C900D5969F /* LaunchScreen.storyboard */; }; 19 | AD8D72A11F3DA6C900D5969F /* LunchViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD8D72A01F3DA6C900D5969F /* LunchViewControllerTests.swift */; }; 20 | AD8D72B41F3DA6D900D5969F /* Lunch.h in Headers */ = {isa = PBXBuildFile; fileRef = AD8D72B21F3DA6D900D5969F /* Lunch.h */; settings = {ATTRIBUTES = (Public, ); }; }; 21 | AD8D72D71F3DA70000D5969F /* LunchTest.h in Headers */ = {isa = PBXBuildFile; fileRef = AD8D72D51F3DA70000D5969F /* LunchTest.h */; settings = {ATTRIBUTES = (Public, ); }; }; 22 | AD8D72E21F3DA80C00D5969F /* Creatable.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD8D72E11F3DA80C00D5969F /* Creatable.swift */; }; 23 | AD8D72E41F3DA83300D5969F /* Launcher.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD8D72E31F3DA83300D5969F /* Launcher.swift */; }; 24 | AD8D72E61F3DA88D00D5969F /* ViewControllerTestable.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD8D72E51F3DA88D00D5969F /* ViewControllerTestable.swift */; }; 25 | AD8D72E81F3DA8A000D5969F /* Launcher.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD8D72E71F3DA8A000D5969F /* Launcher.swift */; }; 26 | AD8D72EB1F3DAA1600D5969F /* PageObjectsRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD8D72EA1F3DAA1600D5969F /* PageObjectsRepresentable.swift */; }; 27 | AD8D72EE1F3DAD0E00D5969F /* Creator.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD8D72ED1F3DAD0E00D5969F /* Creator.swift */; }; 28 | AD8D72F31F3DCDEB00D5969F /* LunchViewControllerPage.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD8D72F21F3DCDEB00D5969F /* LunchViewControllerPage.swift */; }; 29 | AD8D72F41F3DCED700D5969F /* LunchTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD8D72D31F3DA70000D5969F /* LunchTest.framework */; }; 30 | AD8D72F51F3DCF2D00D5969F /* LaunchKeys.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD8D72DF1F3DA74E00D5969F /* LaunchKeys.swift */; }; 31 | AD9137B61F8313A6009D0C87 /* LocaleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD9137B51F8313A6009D0C87 /* LocaleViewController.swift */; }; 32 | AD9137B81F8314E7009D0C87 /* LocaleViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD9137B71F8314E7009D0C87 /* LocaleViewControllerTests.swift */; }; 33 | AD9137BA1F831563009D0C87 /* LocaleViewControllerPage.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD9137B91F831563009D0C87 /* LocaleViewControllerPage.swift */; }; 34 | AD9137BC1F831699009D0C87 /* ViewControllerNames.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD9137BB1F831699009D0C87 /* ViewControllerNames.swift */; }; 35 | AD9137BD1F8316C2009D0C87 /* ViewControllerNames.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD9137BB1F831699009D0C87 /* ViewControllerNames.swift */; }; 36 | ADFEB5AD1F3DD06500248E78 /* Lunch.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD8D72B01F3DA6D900D5969F /* Lunch.framework */; }; 37 | ADFEB5AF1F3DD16500248E78 /* Lunch.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = AD8D72B01F3DA6D900D5969F /* Lunch.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 38 | ADFEB5B41F3DD1AE00248E78 /* DinnerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADFEB5B31F3DD1AE00248E78 /* DinnerViewController.swift */; }; 39 | ADFEB5B61F3DD32000248E78 /* DinnerViewControllerPage.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADFEB5B51F3DD32000248E78 /* DinnerViewControllerPage.swift */; }; 40 | ADFEB5B81F3DD38100248E78 /* DinnerViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADFEB5B71F3DD38100248E78 /* DinnerViewControllerTests.swift */; }; 41 | ADFEB5BB1F3EA19B00248E78 /* BreakfastViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADFEB5BA1F3EA19B00248E78 /* BreakfastViewController.swift */; }; 42 | ADFEB5BD1F3EA1BC00248E78 /* MenuRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADFEB5BC1F3EA1BC00248E78 /* MenuRepresentable.swift */; }; 43 | ADFEB5BF1F3EA21700248E78 /* BreakfastViewControllerPage.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADFEB5BE1F3EA21700248E78 /* BreakfastViewControllerPage.swift */; }; 44 | ADFEB5C11F3EA26400248E78 /* BreakfastViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADFEB5C01F3EA26400248E78 /* BreakfastViewControllerTests.swift */; }; 45 | /* End PBXBuildFile section */ 46 | 47 | /* Begin PBXContainerItemProxy section */ 48 | AD76395E1F47121900BDF5A8 /* PBXContainerItemProxy */ = { 49 | isa = PBXContainerItemProxy; 50 | containerPortal = AD8D72801F3DA6C900D5969F /* Project object */; 51 | proxyType = 1; 52 | remoteGlobalIDString = AD8D72AF1F3DA6D900D5969F; 53 | remoteInfo = Lunch; 54 | }; 55 | AD76396F1F47150500BDF5A8 /* PBXContainerItemProxy */ = { 56 | isa = PBXContainerItemProxy; 57 | containerPortal = AD8D72801F3DA6C900D5969F /* Project object */; 58 | proxyType = 1; 59 | remoteGlobalIDString = AD8D72D21F3DA70000D5969F; 60 | remoteInfo = LunchTest; 61 | }; 62 | AD8D729D1F3DA6C900D5969F /* PBXContainerItemProxy */ = { 63 | isa = PBXContainerItemProxy; 64 | containerPortal = AD8D72801F3DA6C900D5969F /* Project object */; 65 | proxyType = 1; 66 | remoteGlobalIDString = AD8D72871F3DA6C900D5969F; 67 | remoteInfo = LunchSample; 68 | }; 69 | ADFEB5B01F3DD16500248E78 /* PBXContainerItemProxy */ = { 70 | isa = PBXContainerItemProxy; 71 | containerPortal = AD8D72801F3DA6C900D5969F /* Project object */; 72 | proxyType = 1; 73 | remoteGlobalIDString = AD8D72AF1F3DA6D900D5969F; 74 | remoteInfo = Lunch; 75 | }; 76 | /* End PBXContainerItemProxy section */ 77 | 78 | /* Begin PBXCopyFilesBuildPhase section */ 79 | ADFEB5B21F3DD16500248E78 /* Embed Frameworks */ = { 80 | isa = PBXCopyFilesBuildPhase; 81 | buildActionMask = 2147483647; 82 | dstPath = ""; 83 | dstSubfolderSpec = 10; 84 | files = ( 85 | ADFEB5AF1F3DD16500248E78 /* Lunch.framework in Embed Frameworks */, 86 | ); 87 | name = "Embed Frameworks"; 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | /* End PBXCopyFilesBuildPhase section */ 91 | 92 | /* Begin PBXFileReference section */ 93 | AD419F4B2131061800A8C9BF /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Main.strings; sourceTree = ""; }; 94 | AD419F4C2131061800A8C9BF /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/LaunchScreen.strings; sourceTree = ""; }; 95 | AD7639581F47121900BDF5A8 /* LunchUnitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LunchUnitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 96 | AD76395C1F47121900BDF5A8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 97 | AD7639631F47122B00BDF5A8 /* LauncherTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LauncherTests.swift; sourceTree = ""; }; 98 | AD7639691F47150500BDF5A8 /* LunchTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LunchTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 99 | AD76396D1F47150500BDF5A8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 100 | AD7639741F47152100BDF5A8 /* LauncherTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LauncherTests.swift; sourceTree = ""; }; 101 | AD8D72881F3DA6C900D5969F /* LunchSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LunchSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 102 | AD8D728B1F3DA6C900D5969F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 103 | AD8D728D1F3DA6C900D5969F /* LunchViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LunchViewController.swift; sourceTree = ""; }; 104 | AD8D72901F3DA6C900D5969F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 105 | AD8D72921F3DA6C900D5969F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 106 | AD8D72951F3DA6C900D5969F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 107 | AD8D72971F3DA6C900D5969F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 108 | AD8D729C1F3DA6C900D5969F /* LunchSampleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LunchSampleUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 109 | AD8D72A01F3DA6C900D5969F /* LunchViewControllerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LunchViewControllerTests.swift; sourceTree = ""; }; 110 | AD8D72A21F3DA6C900D5969F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 111 | AD8D72B01F3DA6D900D5969F /* Lunch.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Lunch.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 112 | AD8D72B21F3DA6D900D5969F /* Lunch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Lunch.h; sourceTree = ""; }; 113 | AD8D72B31F3DA6D900D5969F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 114 | AD8D72D31F3DA70000D5969F /* LunchTest.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = LunchTest.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 115 | AD8D72D51F3DA70000D5969F /* LunchTest.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LunchTest.h; sourceTree = ""; }; 116 | AD8D72D61F3DA70000D5969F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 117 | AD8D72DF1F3DA74E00D5969F /* LaunchKeys.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = LaunchKeys.swift; path = Lunch/LaunchKeys.swift; sourceTree = SOURCE_ROOT; }; 118 | AD8D72E11F3DA80C00D5969F /* Creatable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Creatable.swift; sourceTree = ""; }; 119 | AD8D72E31F3DA83300D5969F /* Launcher.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Launcher.swift; sourceTree = ""; }; 120 | AD8D72E51F3DA88D00D5969F /* ViewControllerTestable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewControllerTestable.swift; sourceTree = ""; }; 121 | AD8D72E71F3DA8A000D5969F /* Launcher.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Launcher.swift; sourceTree = ""; }; 122 | AD8D72EA1F3DAA1600D5969F /* PageObjectsRepresentable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PageObjectsRepresentable.swift; sourceTree = ""; }; 123 | AD8D72ED1F3DAD0E00D5969F /* Creator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Creator.swift; sourceTree = ""; }; 124 | AD8D72EF1F3DC8AD00D5969F /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 125 | AD8D72F01F3DC8B900D5969F /* LICENSE.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = LICENSE.md; sourceTree = ""; }; 126 | AD8D72F21F3DCDEB00D5969F /* LunchViewControllerPage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LunchViewControllerPage.swift; sourceTree = ""; }; 127 | AD9137B51F8313A6009D0C87 /* LocaleViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocaleViewController.swift; sourceTree = ""; }; 128 | AD9137B71F8314E7009D0C87 /* LocaleViewControllerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocaleViewControllerTests.swift; sourceTree = ""; }; 129 | AD9137B91F831563009D0C87 /* LocaleViewControllerPage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocaleViewControllerPage.swift; sourceTree = ""; }; 130 | AD9137BB1F831699009D0C87 /* ViewControllerNames.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewControllerNames.swift; sourceTree = ""; }; 131 | ADFEB5B31F3DD1AE00248E78 /* DinnerViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DinnerViewController.swift; sourceTree = ""; }; 132 | ADFEB5B51F3DD32000248E78 /* DinnerViewControllerPage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DinnerViewControllerPage.swift; sourceTree = ""; }; 133 | ADFEB5B71F3DD38100248E78 /* DinnerViewControllerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DinnerViewControllerTests.swift; sourceTree = ""; }; 134 | ADFEB5BA1F3EA19B00248E78 /* BreakfastViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BreakfastViewController.swift; sourceTree = ""; }; 135 | ADFEB5BC1F3EA1BC00248E78 /* MenuRepresentable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MenuRepresentable.swift; sourceTree = ""; }; 136 | ADFEB5BE1F3EA21700248E78 /* BreakfastViewControllerPage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BreakfastViewControllerPage.swift; sourceTree = ""; }; 137 | ADFEB5C01F3EA26400248E78 /* BreakfastViewControllerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BreakfastViewControllerTests.swift; sourceTree = ""; }; 138 | /* End PBXFileReference section */ 139 | 140 | /* Begin PBXFrameworksBuildPhase section */ 141 | AD7639551F47121900BDF5A8 /* Frameworks */ = { 142 | isa = PBXFrameworksBuildPhase; 143 | buildActionMask = 2147483647; 144 | files = ( 145 | AD76395D1F47121900BDF5A8 /* Lunch.framework in Frameworks */, 146 | ); 147 | runOnlyForDeploymentPostprocessing = 0; 148 | }; 149 | AD7639661F47150500BDF5A8 /* Frameworks */ = { 150 | isa = PBXFrameworksBuildPhase; 151 | buildActionMask = 2147483647; 152 | files = ( 153 | AD76396E1F47150500BDF5A8 /* LunchTest.framework in Frameworks */, 154 | ); 155 | runOnlyForDeploymentPostprocessing = 0; 156 | }; 157 | AD8D72851F3DA6C900D5969F /* Frameworks */ = { 158 | isa = PBXFrameworksBuildPhase; 159 | buildActionMask = 2147483647; 160 | files = ( 161 | ADFEB5AD1F3DD06500248E78 /* Lunch.framework in Frameworks */, 162 | ); 163 | runOnlyForDeploymentPostprocessing = 0; 164 | }; 165 | AD8D72991F3DA6C900D5969F /* Frameworks */ = { 166 | isa = PBXFrameworksBuildPhase; 167 | buildActionMask = 2147483647; 168 | files = ( 169 | AD8D72F41F3DCED700D5969F /* LunchTest.framework in Frameworks */, 170 | ); 171 | runOnlyForDeploymentPostprocessing = 0; 172 | }; 173 | AD8D72AC1F3DA6D900D5969F /* Frameworks */ = { 174 | isa = PBXFrameworksBuildPhase; 175 | buildActionMask = 2147483647; 176 | files = ( 177 | ); 178 | runOnlyForDeploymentPostprocessing = 0; 179 | }; 180 | AD8D72CF1F3DA70000D5969F /* Frameworks */ = { 181 | isa = PBXFrameworksBuildPhase; 182 | buildActionMask = 2147483647; 183 | files = ( 184 | ); 185 | runOnlyForDeploymentPostprocessing = 0; 186 | }; 187 | /* End PBXFrameworksBuildPhase section */ 188 | 189 | /* Begin PBXGroup section */ 190 | AD7639591F47121900BDF5A8 /* LunchUnitTests */ = { 191 | isa = PBXGroup; 192 | children = ( 193 | AD7639631F47122B00BDF5A8 /* LauncherTests.swift */, 194 | AD76395C1F47121900BDF5A8 /* Info.plist */, 195 | ); 196 | path = LunchUnitTests; 197 | sourceTree = ""; 198 | }; 199 | AD76396A1F47150500BDF5A8 /* LunchTestTests */ = { 200 | isa = PBXGroup; 201 | children = ( 202 | AD76396D1F47150500BDF5A8 /* Info.plist */, 203 | AD7639741F47152100BDF5A8 /* LauncherTests.swift */, 204 | ); 205 | path = LunchTestTests; 206 | sourceTree = ""; 207 | }; 208 | AD8D727F1F3DA6C900D5969F = { 209 | isa = PBXGroup; 210 | children = ( 211 | AD8D72F01F3DC8B900D5969F /* LICENSE.md */, 212 | AD8D72EF1F3DC8AD00D5969F /* README.md */, 213 | AD8D728A1F3DA6C900D5969F /* LunchSample */, 214 | AD8D729F1F3DA6C900D5969F /* LunchSampleUITests */, 215 | AD8D72B11F3DA6D900D5969F /* Lunch */, 216 | AD8D72D41F3DA70000D5969F /* LunchTest */, 217 | AD7639591F47121900BDF5A8 /* LunchUnitTests */, 218 | AD76396A1F47150500BDF5A8 /* LunchTestTests */, 219 | AD8D72891F3DA6C900D5969F /* Products */, 220 | ); 221 | sourceTree = ""; 222 | }; 223 | AD8D72891F3DA6C900D5969F /* Products */ = { 224 | isa = PBXGroup; 225 | children = ( 226 | AD8D72881F3DA6C900D5969F /* LunchSample.app */, 227 | AD8D729C1F3DA6C900D5969F /* LunchSampleUITests.xctest */, 228 | AD8D72B01F3DA6D900D5969F /* Lunch.framework */, 229 | AD8D72D31F3DA70000D5969F /* LunchTest.framework */, 230 | AD7639581F47121900BDF5A8 /* LunchUnitTests.xctest */, 231 | AD7639691F47150500BDF5A8 /* LunchTestTests.xctest */, 232 | ); 233 | name = Products; 234 | sourceTree = ""; 235 | }; 236 | AD8D728A1F3DA6C900D5969F /* LunchSample */ = { 237 | isa = PBXGroup; 238 | children = ( 239 | ADFEB5B91F3E982D00248E78 /* Models */, 240 | AD8D72EC1F3DAC2E00D5969F /* Supports */, 241 | AD8D728B1F3DA6C900D5969F /* AppDelegate.swift */, 242 | ADFEB5BA1F3EA19B00248E78 /* BreakfastViewController.swift */, 243 | AD8D728D1F3DA6C900D5969F /* LunchViewController.swift */, 244 | ADFEB5B31F3DD1AE00248E78 /* DinnerViewController.swift */, 245 | AD9137B51F8313A6009D0C87 /* LocaleViewController.swift */, 246 | AD8D728F1F3DA6C900D5969F /* Main.storyboard */, 247 | AD8D72921F3DA6C900D5969F /* Assets.xcassets */, 248 | AD8D72941F3DA6C900D5969F /* LaunchScreen.storyboard */, 249 | AD8D72971F3DA6C900D5969F /* Info.plist */, 250 | ); 251 | path = LunchSample; 252 | sourceTree = ""; 253 | }; 254 | AD8D729F1F3DA6C900D5969F /* LunchSampleUITests */ = { 255 | isa = PBXGroup; 256 | children = ( 257 | AD8D72F11F3DCDCF00D5969F /* Pages */, 258 | AD8D72A01F3DA6C900D5969F /* LunchViewControllerTests.swift */, 259 | ADFEB5B71F3DD38100248E78 /* DinnerViewControllerTests.swift */, 260 | ADFEB5C01F3EA26400248E78 /* BreakfastViewControllerTests.swift */, 261 | AD9137B71F8314E7009D0C87 /* LocaleViewControllerTests.swift */, 262 | AD8D72A21F3DA6C900D5969F /* Info.plist */, 263 | ); 264 | path = LunchSampleUITests; 265 | sourceTree = ""; 266 | }; 267 | AD8D72B11F3DA6D900D5969F /* Lunch */ = { 268 | isa = PBXGroup; 269 | children = ( 270 | AD8D72B21F3DA6D900D5969F /* Lunch.h */, 271 | AD8D72B31F3DA6D900D5969F /* Info.plist */, 272 | AD8D72E11F3DA80C00D5969F /* Creatable.swift */, 273 | AD8D72E31F3DA83300D5969F /* Launcher.swift */, 274 | AD8D72DF1F3DA74E00D5969F /* LaunchKeys.swift */, 275 | ); 276 | path = Lunch; 277 | sourceTree = ""; 278 | }; 279 | AD8D72D41F3DA70000D5969F /* LunchTest */ = { 280 | isa = PBXGroup; 281 | children = ( 282 | AD8D72D51F3DA70000D5969F /* LunchTest.h */, 283 | AD8D72D61F3DA70000D5969F /* Info.plist */, 284 | AD8D72E51F3DA88D00D5969F /* ViewControllerTestable.swift */, 285 | AD8D72EA1F3DAA1600D5969F /* PageObjectsRepresentable.swift */, 286 | AD8D72E71F3DA8A000D5969F /* Launcher.swift */, 287 | ); 288 | path = LunchTest; 289 | sourceTree = ""; 290 | }; 291 | AD8D72EC1F3DAC2E00D5969F /* Supports */ = { 292 | isa = PBXGroup; 293 | children = ( 294 | AD8D72ED1F3DAD0E00D5969F /* Creator.swift */, 295 | AD9137BB1F831699009D0C87 /* ViewControllerNames.swift */, 296 | ); 297 | path = Supports; 298 | sourceTree = ""; 299 | }; 300 | AD8D72F11F3DCDCF00D5969F /* Pages */ = { 301 | isa = PBXGroup; 302 | children = ( 303 | AD8D72F21F3DCDEB00D5969F /* LunchViewControllerPage.swift */, 304 | ADFEB5B51F3DD32000248E78 /* DinnerViewControllerPage.swift */, 305 | ADFEB5BE1F3EA21700248E78 /* BreakfastViewControllerPage.swift */, 306 | AD9137B91F831563009D0C87 /* LocaleViewControllerPage.swift */, 307 | ); 308 | name = Pages; 309 | path = Components; 310 | sourceTree = ""; 311 | }; 312 | ADFEB5B91F3E982D00248E78 /* Models */ = { 313 | isa = PBXGroup; 314 | children = ( 315 | ADFEB5BC1F3EA1BC00248E78 /* MenuRepresentable.swift */, 316 | ); 317 | name = Models; 318 | sourceTree = ""; 319 | }; 320 | /* End PBXGroup section */ 321 | 322 | /* Begin PBXHeadersBuildPhase section */ 323 | AD8D72AD1F3DA6D900D5969F /* Headers */ = { 324 | isa = PBXHeadersBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | AD8D72B41F3DA6D900D5969F /* Lunch.h in Headers */, 328 | ); 329 | runOnlyForDeploymentPostprocessing = 0; 330 | }; 331 | AD8D72D01F3DA70000D5969F /* Headers */ = { 332 | isa = PBXHeadersBuildPhase; 333 | buildActionMask = 2147483647; 334 | files = ( 335 | AD8D72D71F3DA70000D5969F /* LunchTest.h in Headers */, 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | }; 339 | /* End PBXHeadersBuildPhase section */ 340 | 341 | /* Begin PBXNativeTarget section */ 342 | AD7639571F47121900BDF5A8 /* LunchUnitTests */ = { 343 | isa = PBXNativeTarget; 344 | buildConfigurationList = AD7639621F47121900BDF5A8 /* Build configuration list for PBXNativeTarget "LunchUnitTests" */; 345 | buildPhases = ( 346 | AD7639541F47121900BDF5A8 /* Sources */, 347 | AD7639551F47121900BDF5A8 /* Frameworks */, 348 | AD7639561F47121900BDF5A8 /* Resources */, 349 | ); 350 | buildRules = ( 351 | ); 352 | dependencies = ( 353 | AD76395F1F47121900BDF5A8 /* PBXTargetDependency */, 354 | ); 355 | name = LunchUnitTests; 356 | productName = LunchUnitTests; 357 | productReference = AD7639581F47121900BDF5A8 /* LunchUnitTests.xctest */; 358 | productType = "com.apple.product-type.bundle.unit-test"; 359 | }; 360 | AD7639681F47150500BDF5A8 /* LunchTestTests */ = { 361 | isa = PBXNativeTarget; 362 | buildConfigurationList = AD7639711F47150500BDF5A8 /* Build configuration list for PBXNativeTarget "LunchTestTests" */; 363 | buildPhases = ( 364 | AD7639651F47150500BDF5A8 /* Sources */, 365 | AD7639661F47150500BDF5A8 /* Frameworks */, 366 | AD7639671F47150500BDF5A8 /* Resources */, 367 | ); 368 | buildRules = ( 369 | ); 370 | dependencies = ( 371 | AD7639701F47150500BDF5A8 /* PBXTargetDependency */, 372 | ); 373 | name = LunchTestTests; 374 | productName = LunchTestTests; 375 | productReference = AD7639691F47150500BDF5A8 /* LunchTestTests.xctest */; 376 | productType = "com.apple.product-type.bundle.unit-test"; 377 | }; 378 | AD8D72871F3DA6C900D5969F /* LunchSample */ = { 379 | isa = PBXNativeTarget; 380 | buildConfigurationList = AD8D72A51F3DA6C900D5969F /* Build configuration list for PBXNativeTarget "LunchSample" */; 381 | buildPhases = ( 382 | AD8D72841F3DA6C900D5969F /* Sources */, 383 | AD8D72851F3DA6C900D5969F /* Frameworks */, 384 | AD8D72861F3DA6C900D5969F /* Resources */, 385 | ADFEB5B21F3DD16500248E78 /* Embed Frameworks */, 386 | ); 387 | buildRules = ( 388 | ); 389 | dependencies = ( 390 | ADFEB5B11F3DD16500248E78 /* PBXTargetDependency */, 391 | ); 392 | name = LunchSample; 393 | productName = LunchSample; 394 | productReference = AD8D72881F3DA6C900D5969F /* LunchSample.app */; 395 | productType = "com.apple.product-type.application"; 396 | }; 397 | AD8D729B1F3DA6C900D5969F /* LunchSampleUITests */ = { 398 | isa = PBXNativeTarget; 399 | buildConfigurationList = AD8D72A81F3DA6C900D5969F /* Build configuration list for PBXNativeTarget "LunchSampleUITests" */; 400 | buildPhases = ( 401 | AD8D72981F3DA6C900D5969F /* Sources */, 402 | AD8D72991F3DA6C900D5969F /* Frameworks */, 403 | AD8D729A1F3DA6C900D5969F /* Resources */, 404 | ); 405 | buildRules = ( 406 | ); 407 | dependencies = ( 408 | AD8D729E1F3DA6C900D5969F /* PBXTargetDependency */, 409 | ); 410 | name = LunchSampleUITests; 411 | productName = LunchSampleUITests; 412 | productReference = AD8D729C1F3DA6C900D5969F /* LunchSampleUITests.xctest */; 413 | productType = "com.apple.product-type.bundle.ui-testing"; 414 | }; 415 | AD8D72AF1F3DA6D900D5969F /* Lunch */ = { 416 | isa = PBXNativeTarget; 417 | buildConfigurationList = AD8D72B91F3DA6D900D5969F /* Build configuration list for PBXNativeTarget "Lunch" */; 418 | buildPhases = ( 419 | AD8D72AB1F3DA6D900D5969F /* Sources */, 420 | AD8D72AC1F3DA6D900D5969F /* Frameworks */, 421 | AD8D72AD1F3DA6D900D5969F /* Headers */, 422 | AD8D72AE1F3DA6D900D5969F /* Resources */, 423 | ); 424 | buildRules = ( 425 | ); 426 | dependencies = ( 427 | ); 428 | name = Lunch; 429 | productName = Lunch; 430 | productReference = AD8D72B01F3DA6D900D5969F /* Lunch.framework */; 431 | productType = "com.apple.product-type.framework"; 432 | }; 433 | AD8D72D21F3DA70000D5969F /* LunchTest */ = { 434 | isa = PBXNativeTarget; 435 | buildConfigurationList = AD8D72DC1F3DA70000D5969F /* Build configuration list for PBXNativeTarget "LunchTest" */; 436 | buildPhases = ( 437 | AD8D72CE1F3DA70000D5969F /* Sources */, 438 | AD8D72CF1F3DA70000D5969F /* Frameworks */, 439 | AD8D72D01F3DA70000D5969F /* Headers */, 440 | AD8D72D11F3DA70000D5969F /* Resources */, 441 | ); 442 | buildRules = ( 443 | ); 444 | dependencies = ( 445 | ); 446 | name = LunchTest; 447 | productName = LunchTest; 448 | productReference = AD8D72D31F3DA70000D5969F /* LunchTest.framework */; 449 | productType = "com.apple.product-type.framework"; 450 | }; 451 | /* End PBXNativeTarget section */ 452 | 453 | /* Begin PBXProject section */ 454 | AD8D72801F3DA6C900D5969F /* Project object */ = { 455 | isa = PBXProject; 456 | attributes = { 457 | LastSwiftUpdateCheck = 0830; 458 | LastUpgradeCheck = 0930; 459 | ORGANIZATIONNAME = fromKK; 460 | TargetAttributes = { 461 | AD7639571F47121900BDF5A8 = { 462 | CreatedOnToolsVersion = 8.3.3; 463 | DevelopmentTeam = K84E4S7G4C; 464 | LastSwiftMigration = 1000; 465 | ProvisioningStyle = Automatic; 466 | }; 467 | AD7639681F47150500BDF5A8 = { 468 | CreatedOnToolsVersion = 8.3.3; 469 | DevelopmentTeam = K84E4S7G4C; 470 | LastSwiftMigration = 0930; 471 | ProvisioningStyle = Automatic; 472 | }; 473 | AD8D72871F3DA6C900D5969F = { 474 | CreatedOnToolsVersion = 8.3.3; 475 | ProvisioningStyle = Manual; 476 | }; 477 | AD8D729B1F3DA6C900D5969F = { 478 | CreatedOnToolsVersion = 8.3.3; 479 | LastSwiftMigration = 1000; 480 | ProvisioningStyle = Manual; 481 | TestTargetID = AD8D72871F3DA6C900D5969F; 482 | }; 483 | AD8D72AF1F3DA6D900D5969F = { 484 | CreatedOnToolsVersion = 8.3.3; 485 | LastSwiftMigration = 1000; 486 | ProvisioningStyle = Manual; 487 | }; 488 | AD8D72D21F3DA70000D5969F = { 489 | CreatedOnToolsVersion = 8.3.3; 490 | LastSwiftMigration = 1000; 491 | ProvisioningStyle = Manual; 492 | }; 493 | }; 494 | }; 495 | buildConfigurationList = AD8D72831F3DA6C900D5969F /* Build configuration list for PBXProject "LunchSample" */; 496 | compatibilityVersion = "Xcode 3.2"; 497 | developmentRegion = English; 498 | hasScannedForEncodings = 0; 499 | knownRegions = ( 500 | English, 501 | en, 502 | Base, 503 | ja, 504 | ); 505 | mainGroup = AD8D727F1F3DA6C900D5969F; 506 | productRefGroup = AD8D72891F3DA6C900D5969F /* Products */; 507 | projectDirPath = ""; 508 | projectRoot = ""; 509 | targets = ( 510 | AD8D72871F3DA6C900D5969F /* LunchSample */, 511 | AD8D729B1F3DA6C900D5969F /* LunchSampleUITests */, 512 | AD8D72AF1F3DA6D900D5969F /* Lunch */, 513 | AD8D72D21F3DA70000D5969F /* LunchTest */, 514 | AD7639571F47121900BDF5A8 /* LunchUnitTests */, 515 | AD7639681F47150500BDF5A8 /* LunchTestTests */, 516 | ); 517 | }; 518 | /* End PBXProject section */ 519 | 520 | /* Begin PBXResourcesBuildPhase section */ 521 | AD7639561F47121900BDF5A8 /* Resources */ = { 522 | isa = PBXResourcesBuildPhase; 523 | buildActionMask = 2147483647; 524 | files = ( 525 | ); 526 | runOnlyForDeploymentPostprocessing = 0; 527 | }; 528 | AD7639671F47150500BDF5A8 /* Resources */ = { 529 | isa = PBXResourcesBuildPhase; 530 | buildActionMask = 2147483647; 531 | files = ( 532 | ); 533 | runOnlyForDeploymentPostprocessing = 0; 534 | }; 535 | AD8D72861F3DA6C900D5969F /* Resources */ = { 536 | isa = PBXResourcesBuildPhase; 537 | buildActionMask = 2147483647; 538 | files = ( 539 | AD8D72961F3DA6C900D5969F /* LaunchScreen.storyboard in Resources */, 540 | AD8D72931F3DA6C900D5969F /* Assets.xcassets in Resources */, 541 | AD8D72911F3DA6C900D5969F /* Main.storyboard in Resources */, 542 | ); 543 | runOnlyForDeploymentPostprocessing = 0; 544 | }; 545 | AD8D729A1F3DA6C900D5969F /* Resources */ = { 546 | isa = PBXResourcesBuildPhase; 547 | buildActionMask = 2147483647; 548 | files = ( 549 | ); 550 | runOnlyForDeploymentPostprocessing = 0; 551 | }; 552 | AD8D72AE1F3DA6D900D5969F /* Resources */ = { 553 | isa = PBXResourcesBuildPhase; 554 | buildActionMask = 2147483647; 555 | files = ( 556 | ); 557 | runOnlyForDeploymentPostprocessing = 0; 558 | }; 559 | AD8D72D11F3DA70000D5969F /* Resources */ = { 560 | isa = PBXResourcesBuildPhase; 561 | buildActionMask = 2147483647; 562 | files = ( 563 | ); 564 | runOnlyForDeploymentPostprocessing = 0; 565 | }; 566 | /* End PBXResourcesBuildPhase section */ 567 | 568 | /* Begin PBXSourcesBuildPhase section */ 569 | AD7639541F47121900BDF5A8 /* Sources */ = { 570 | isa = PBXSourcesBuildPhase; 571 | buildActionMask = 2147483647; 572 | files = ( 573 | AD7639641F47122B00BDF5A8 /* LauncherTests.swift in Sources */, 574 | ); 575 | runOnlyForDeploymentPostprocessing = 0; 576 | }; 577 | AD7639651F47150500BDF5A8 /* Sources */ = { 578 | isa = PBXSourcesBuildPhase; 579 | buildActionMask = 2147483647; 580 | files = ( 581 | AD7639751F47152100BDF5A8 /* LauncherTests.swift in Sources */, 582 | ); 583 | runOnlyForDeploymentPostprocessing = 0; 584 | }; 585 | AD8D72841F3DA6C900D5969F /* Sources */ = { 586 | isa = PBXSourcesBuildPhase; 587 | buildActionMask = 2147483647; 588 | files = ( 589 | ADFEB5B41F3DD1AE00248E78 /* DinnerViewController.swift in Sources */, 590 | ADFEB5BB1F3EA19B00248E78 /* BreakfastViewController.swift in Sources */, 591 | AD8D728E1F3DA6C900D5969F /* LunchViewController.swift in Sources */, 592 | ADFEB5BD1F3EA1BC00248E78 /* MenuRepresentable.swift in Sources */, 593 | AD9137B61F8313A6009D0C87 /* LocaleViewController.swift in Sources */, 594 | AD8D72EE1F3DAD0E00D5969F /* Creator.swift in Sources */, 595 | AD8D728C1F3DA6C900D5969F /* AppDelegate.swift in Sources */, 596 | AD9137BC1F831699009D0C87 /* ViewControllerNames.swift in Sources */, 597 | ); 598 | runOnlyForDeploymentPostprocessing = 0; 599 | }; 600 | AD8D72981F3DA6C900D5969F /* Sources */ = { 601 | isa = PBXSourcesBuildPhase; 602 | buildActionMask = 2147483647; 603 | files = ( 604 | ADFEB5B81F3DD38100248E78 /* DinnerViewControllerTests.swift in Sources */, 605 | AD9137B81F8314E7009D0C87 /* LocaleViewControllerTests.swift in Sources */, 606 | ADFEB5BF1F3EA21700248E78 /* BreakfastViewControllerPage.swift in Sources */, 607 | ADFEB5C11F3EA26400248E78 /* BreakfastViewControllerTests.swift in Sources */, 608 | AD8D72A11F3DA6C900D5969F /* LunchViewControllerTests.swift in Sources */, 609 | AD9137BA1F831563009D0C87 /* LocaleViewControllerPage.swift in Sources */, 610 | ADFEB5B61F3DD32000248E78 /* DinnerViewControllerPage.swift in Sources */, 611 | AD9137BD1F8316C2009D0C87 /* ViewControllerNames.swift in Sources */, 612 | AD8D72F31F3DCDEB00D5969F /* LunchViewControllerPage.swift in Sources */, 613 | ); 614 | runOnlyForDeploymentPostprocessing = 0; 615 | }; 616 | AD8D72AB1F3DA6D900D5969F /* Sources */ = { 617 | isa = PBXSourcesBuildPhase; 618 | buildActionMask = 2147483647; 619 | files = ( 620 | AD8D72F51F3DCF2D00D5969F /* LaunchKeys.swift in Sources */, 621 | AD8D72E21F3DA80C00D5969F /* Creatable.swift in Sources */, 622 | AD8D72E41F3DA83300D5969F /* Launcher.swift in Sources */, 623 | ); 624 | runOnlyForDeploymentPostprocessing = 0; 625 | }; 626 | AD8D72CE1F3DA70000D5969F /* Sources */ = { 627 | isa = PBXSourcesBuildPhase; 628 | buildActionMask = 2147483647; 629 | files = ( 630 | AD8D72E61F3DA88D00D5969F /* ViewControllerTestable.swift in Sources */, 631 | AD8D72EB1F3DAA1600D5969F /* PageObjectsRepresentable.swift in Sources */, 632 | AD8D72E81F3DA8A000D5969F /* Launcher.swift in Sources */, 633 | ); 634 | runOnlyForDeploymentPostprocessing = 0; 635 | }; 636 | /* End PBXSourcesBuildPhase section */ 637 | 638 | /* Begin PBXTargetDependency section */ 639 | AD76395F1F47121900BDF5A8 /* PBXTargetDependency */ = { 640 | isa = PBXTargetDependency; 641 | target = AD8D72AF1F3DA6D900D5969F /* Lunch */; 642 | targetProxy = AD76395E1F47121900BDF5A8 /* PBXContainerItemProxy */; 643 | }; 644 | AD7639701F47150500BDF5A8 /* PBXTargetDependency */ = { 645 | isa = PBXTargetDependency; 646 | target = AD8D72D21F3DA70000D5969F /* LunchTest */; 647 | targetProxy = AD76396F1F47150500BDF5A8 /* PBXContainerItemProxy */; 648 | }; 649 | AD8D729E1F3DA6C900D5969F /* PBXTargetDependency */ = { 650 | isa = PBXTargetDependency; 651 | target = AD8D72871F3DA6C900D5969F /* LunchSample */; 652 | targetProxy = AD8D729D1F3DA6C900D5969F /* PBXContainerItemProxy */; 653 | }; 654 | ADFEB5B11F3DD16500248E78 /* PBXTargetDependency */ = { 655 | isa = PBXTargetDependency; 656 | target = AD8D72AF1F3DA6D900D5969F /* Lunch */; 657 | targetProxy = ADFEB5B01F3DD16500248E78 /* PBXContainerItemProxy */; 658 | }; 659 | /* End PBXTargetDependency section */ 660 | 661 | /* Begin PBXVariantGroup section */ 662 | AD8D728F1F3DA6C900D5969F /* Main.storyboard */ = { 663 | isa = PBXVariantGroup; 664 | children = ( 665 | AD8D72901F3DA6C900D5969F /* Base */, 666 | AD419F4B2131061800A8C9BF /* ja */, 667 | ); 668 | name = Main.storyboard; 669 | sourceTree = ""; 670 | }; 671 | AD8D72941F3DA6C900D5969F /* LaunchScreen.storyboard */ = { 672 | isa = PBXVariantGroup; 673 | children = ( 674 | AD8D72951F3DA6C900D5969F /* Base */, 675 | AD419F4C2131061800A8C9BF /* ja */, 676 | ); 677 | name = LaunchScreen.storyboard; 678 | sourceTree = ""; 679 | }; 680 | /* End PBXVariantGroup section */ 681 | 682 | /* Begin XCBuildConfiguration section */ 683 | AD7639601F47121900BDF5A8 /* Debug */ = { 684 | isa = XCBuildConfiguration; 685 | buildSettings = { 686 | DEVELOPMENT_TEAM = K84E4S7G4C; 687 | INFOPLIST_FILE = LunchUnitTests/Info.plist; 688 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 689 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 690 | PRODUCT_BUNDLE_IDENTIFIER = fromkk.me.LunchUnitTests; 691 | PRODUCT_NAME = "$(TARGET_NAME)"; 692 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 693 | SWIFT_VERSION = 5.0; 694 | }; 695 | name = Debug; 696 | }; 697 | AD7639611F47121900BDF5A8 /* Release */ = { 698 | isa = XCBuildConfiguration; 699 | buildSettings = { 700 | DEVELOPMENT_TEAM = K84E4S7G4C; 701 | INFOPLIST_FILE = LunchUnitTests/Info.plist; 702 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 703 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 704 | PRODUCT_BUNDLE_IDENTIFIER = fromkk.me.LunchUnitTests; 705 | PRODUCT_NAME = "$(TARGET_NAME)"; 706 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 707 | SWIFT_VERSION = 5.0; 708 | }; 709 | name = Release; 710 | }; 711 | AD7639721F47150500BDF5A8 /* Debug */ = { 712 | isa = XCBuildConfiguration; 713 | buildSettings = { 714 | CLANG_ENABLE_MODULES = YES; 715 | DEVELOPMENT_TEAM = K84E4S7G4C; 716 | INFOPLIST_FILE = LunchTestTests/Info.plist; 717 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 718 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 719 | PRODUCT_BUNDLE_IDENTIFIER = fromkk.me.LunchTestTests; 720 | PRODUCT_NAME = "$(TARGET_NAME)"; 721 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 722 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 723 | SWIFT_VERSION = 5.0; 724 | }; 725 | name = Debug; 726 | }; 727 | AD7639731F47150500BDF5A8 /* Release */ = { 728 | isa = XCBuildConfiguration; 729 | buildSettings = { 730 | CLANG_ENABLE_MODULES = YES; 731 | DEVELOPMENT_TEAM = K84E4S7G4C; 732 | INFOPLIST_FILE = LunchTestTests/Info.plist; 733 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 734 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 735 | PRODUCT_BUNDLE_IDENTIFIER = fromkk.me.LunchTestTests; 736 | PRODUCT_NAME = "$(TARGET_NAME)"; 737 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 738 | SWIFT_VERSION = 5.0; 739 | }; 740 | name = Release; 741 | }; 742 | AD8D72A31F3DA6C900D5969F /* Debug */ = { 743 | isa = XCBuildConfiguration; 744 | buildSettings = { 745 | ALWAYS_SEARCH_USER_PATHS = NO; 746 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 747 | CLANG_ANALYZER_NONNULL = YES; 748 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 749 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 750 | CLANG_CXX_LIBRARY = "libc++"; 751 | CLANG_ENABLE_MODULES = YES; 752 | CLANG_ENABLE_OBJC_ARC = YES; 753 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 754 | CLANG_WARN_BOOL_CONVERSION = YES; 755 | CLANG_WARN_COMMA = YES; 756 | CLANG_WARN_CONSTANT_CONVERSION = YES; 757 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 758 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 759 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 760 | CLANG_WARN_EMPTY_BODY = YES; 761 | CLANG_WARN_ENUM_CONVERSION = YES; 762 | CLANG_WARN_INFINITE_RECURSION = YES; 763 | CLANG_WARN_INT_CONVERSION = YES; 764 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 765 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 766 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 767 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 768 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 769 | CLANG_WARN_STRICT_PROTOTYPES = YES; 770 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 771 | CLANG_WARN_UNREACHABLE_CODE = YES; 772 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 773 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 774 | COPY_PHASE_STRIP = NO; 775 | DEBUG_INFORMATION_FORMAT = dwarf; 776 | ENABLE_STRICT_OBJC_MSGSEND = YES; 777 | ENABLE_TESTABILITY = YES; 778 | GCC_C_LANGUAGE_STANDARD = gnu99; 779 | GCC_DYNAMIC_NO_PIC = NO; 780 | GCC_NO_COMMON_BLOCKS = YES; 781 | GCC_OPTIMIZATION_LEVEL = 0; 782 | GCC_PREPROCESSOR_DEFINITIONS = ( 783 | "DEBUG=1", 784 | "$(inherited)", 785 | ); 786 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 787 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 788 | GCC_WARN_UNDECLARED_SELECTOR = YES; 789 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 790 | GCC_WARN_UNUSED_FUNCTION = YES; 791 | GCC_WARN_UNUSED_VARIABLE = YES; 792 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 793 | MTL_ENABLE_DEBUG_INFO = YES; 794 | ONLY_ACTIVE_ARCH = YES; 795 | SDKROOT = iphoneos; 796 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 797 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 798 | SWIFT_VERSION = 5.0; 799 | TARGETED_DEVICE_FAMILY = "1,2"; 800 | }; 801 | name = Debug; 802 | }; 803 | AD8D72A41F3DA6C900D5969F /* Release */ = { 804 | isa = XCBuildConfiguration; 805 | buildSettings = { 806 | ALWAYS_SEARCH_USER_PATHS = NO; 807 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 808 | CLANG_ANALYZER_NONNULL = YES; 809 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 810 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 811 | CLANG_CXX_LIBRARY = "libc++"; 812 | CLANG_ENABLE_MODULES = YES; 813 | CLANG_ENABLE_OBJC_ARC = YES; 814 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 815 | CLANG_WARN_BOOL_CONVERSION = YES; 816 | CLANG_WARN_COMMA = YES; 817 | CLANG_WARN_CONSTANT_CONVERSION = YES; 818 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 819 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 820 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 821 | CLANG_WARN_EMPTY_BODY = YES; 822 | CLANG_WARN_ENUM_CONVERSION = YES; 823 | CLANG_WARN_INFINITE_RECURSION = YES; 824 | CLANG_WARN_INT_CONVERSION = YES; 825 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 826 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 827 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 828 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 829 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 830 | CLANG_WARN_STRICT_PROTOTYPES = YES; 831 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 832 | CLANG_WARN_UNREACHABLE_CODE = YES; 833 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 834 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 835 | COPY_PHASE_STRIP = NO; 836 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 837 | ENABLE_NS_ASSERTIONS = NO; 838 | ENABLE_STRICT_OBJC_MSGSEND = YES; 839 | GCC_C_LANGUAGE_STANDARD = gnu99; 840 | GCC_NO_COMMON_BLOCKS = YES; 841 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 842 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 843 | GCC_WARN_UNDECLARED_SELECTOR = YES; 844 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 845 | GCC_WARN_UNUSED_FUNCTION = YES; 846 | GCC_WARN_UNUSED_VARIABLE = YES; 847 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 848 | MTL_ENABLE_DEBUG_INFO = NO; 849 | SDKROOT = iphoneos; 850 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 851 | SWIFT_VERSION = 5.0; 852 | TARGETED_DEVICE_FAMILY = "1,2"; 853 | VALIDATE_PRODUCT = YES; 854 | }; 855 | name = Release; 856 | }; 857 | AD8D72A61F3DA6C900D5969F /* Debug */ = { 858 | isa = XCBuildConfiguration; 859 | buildSettings = { 860 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 861 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 862 | CODE_SIGN_IDENTITY = "iPhone Developer"; 863 | CODE_SIGN_STYLE = Manual; 864 | DEVELOPMENT_TEAM = ""; 865 | INFOPLIST_FILE = LunchSample/Info.plist; 866 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 867 | PRODUCT_BUNDLE_IDENTIFIER = me.fromkk.LunchSample; 868 | PRODUCT_NAME = "$(TARGET_NAME)"; 869 | PROVISIONING_PROFILE_SPECIFIER = ""; 870 | SWIFT_VERSION = 5.0; 871 | }; 872 | name = Debug; 873 | }; 874 | AD8D72A71F3DA6C900D5969F /* Release */ = { 875 | isa = XCBuildConfiguration; 876 | buildSettings = { 877 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 878 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 879 | CODE_SIGN_IDENTITY = "iPhone Developer"; 880 | CODE_SIGN_STYLE = Manual; 881 | DEVELOPMENT_TEAM = ""; 882 | INFOPLIST_FILE = LunchSample/Info.plist; 883 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 884 | PRODUCT_BUNDLE_IDENTIFIER = me.fromkk.LunchSample; 885 | PRODUCT_NAME = "$(TARGET_NAME)"; 886 | PROVISIONING_PROFILE_SPECIFIER = ""; 887 | SWIFT_VERSION = 5.0; 888 | }; 889 | name = Release; 890 | }; 891 | AD8D72A91F3DA6C900D5969F /* Debug */ = { 892 | isa = XCBuildConfiguration; 893 | buildSettings = { 894 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 895 | CODE_SIGN_STYLE = Manual; 896 | DEVELOPMENT_TEAM = ""; 897 | INFOPLIST_FILE = LunchSampleUITests/Info.plist; 898 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 899 | PRODUCT_BUNDLE_IDENTIFIER = me.fromkk.LunchSampleUITests; 900 | PRODUCT_NAME = "$(TARGET_NAME)"; 901 | PROVISIONING_PROFILE_SPECIFIER = ""; 902 | SWIFT_VERSION = 5.0; 903 | TEST_TARGET_NAME = LunchSample; 904 | }; 905 | name = Debug; 906 | }; 907 | AD8D72AA1F3DA6C900D5969F /* Release */ = { 908 | isa = XCBuildConfiguration; 909 | buildSettings = { 910 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 911 | CODE_SIGN_STYLE = Manual; 912 | DEVELOPMENT_TEAM = ""; 913 | INFOPLIST_FILE = LunchSampleUITests/Info.plist; 914 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 915 | PRODUCT_BUNDLE_IDENTIFIER = me.fromkk.LunchSampleUITests; 916 | PRODUCT_NAME = "$(TARGET_NAME)"; 917 | PROVISIONING_PROFILE_SPECIFIER = ""; 918 | SWIFT_VERSION = 5.0; 919 | TEST_TARGET_NAME = LunchSample; 920 | }; 921 | name = Release; 922 | }; 923 | AD8D72BA1F3DA6D900D5969F /* Debug */ = { 924 | isa = XCBuildConfiguration; 925 | buildSettings = { 926 | APPLICATION_EXTENSION_API_ONLY = YES; 927 | CLANG_ENABLE_MODULES = YES; 928 | CODE_SIGN_IDENTITY = ""; 929 | CODE_SIGN_STYLE = Manual; 930 | CURRENT_PROJECT_VERSION = 1; 931 | DEFINES_MODULE = YES; 932 | DEVELOPMENT_TEAM = ""; 933 | DYLIB_COMPATIBILITY_VERSION = 1; 934 | DYLIB_CURRENT_VERSION = 1; 935 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 936 | INFOPLIST_FILE = Lunch/Info.plist; 937 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 938 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 939 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 940 | PRODUCT_BUNDLE_IDENTIFIER = me.fromkk.Lunch; 941 | PRODUCT_NAME = "$(TARGET_NAME)"; 942 | PROVISIONING_PROFILE_SPECIFIER = ""; 943 | SKIP_INSTALL = YES; 944 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 945 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 946 | SWIFT_VERSION = 5.0; 947 | VERSIONING_SYSTEM = "apple-generic"; 948 | VERSION_INFO_PREFIX = ""; 949 | }; 950 | name = Debug; 951 | }; 952 | AD8D72BB1F3DA6D900D5969F /* Release */ = { 953 | isa = XCBuildConfiguration; 954 | buildSettings = { 955 | APPLICATION_EXTENSION_API_ONLY = YES; 956 | CLANG_ENABLE_MODULES = YES; 957 | CODE_SIGN_IDENTITY = ""; 958 | CODE_SIGN_STYLE = Manual; 959 | CURRENT_PROJECT_VERSION = 1; 960 | DEFINES_MODULE = YES; 961 | DEVELOPMENT_TEAM = ""; 962 | DYLIB_COMPATIBILITY_VERSION = 1; 963 | DYLIB_CURRENT_VERSION = 1; 964 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 965 | INFOPLIST_FILE = Lunch/Info.plist; 966 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 967 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 968 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 969 | PRODUCT_BUNDLE_IDENTIFIER = me.fromkk.Lunch; 970 | PRODUCT_NAME = "$(TARGET_NAME)"; 971 | PROVISIONING_PROFILE_SPECIFIER = ""; 972 | SKIP_INSTALL = YES; 973 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 974 | SWIFT_VERSION = 5.0; 975 | VERSIONING_SYSTEM = "apple-generic"; 976 | VERSION_INFO_PREFIX = ""; 977 | }; 978 | name = Release; 979 | }; 980 | AD8D72DD1F3DA70000D5969F /* Debug */ = { 981 | isa = XCBuildConfiguration; 982 | buildSettings = { 983 | CLANG_ENABLE_MODULES = YES; 984 | CODE_SIGN_IDENTITY = ""; 985 | CODE_SIGN_STYLE = Manual; 986 | CURRENT_PROJECT_VERSION = 1; 987 | DEFINES_MODULE = YES; 988 | DEVELOPMENT_TEAM = ""; 989 | DYLIB_COMPATIBILITY_VERSION = 1; 990 | DYLIB_CURRENT_VERSION = 1; 991 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 992 | ENABLE_BITCODE = NO; 993 | FRAMEWORK_SEARCH_PATHS = ( 994 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 995 | "$(inherited)", 996 | ); 997 | INFOPLIST_FILE = LunchTest/Info.plist; 998 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 999 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1000 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1001 | OTHER_LDFLAGS = ( 1002 | "-weak_framework", 1003 | XCTest, 1004 | "-weak-lswiftXCTest", 1005 | ); 1006 | PRODUCT_BUNDLE_IDENTIFIER = me.fromkk.LunchTest; 1007 | PRODUCT_NAME = "$(TARGET_NAME)"; 1008 | PROVISIONING_PROFILE_SPECIFIER = ""; 1009 | SKIP_INSTALL = YES; 1010 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 1011 | SWIFT_VERSION = 5.0; 1012 | VERSIONING_SYSTEM = "apple-generic"; 1013 | VERSION_INFO_PREFIX = ""; 1014 | }; 1015 | name = Debug; 1016 | }; 1017 | AD8D72DE1F3DA70000D5969F /* Release */ = { 1018 | isa = XCBuildConfiguration; 1019 | buildSettings = { 1020 | CLANG_ENABLE_MODULES = YES; 1021 | CODE_SIGN_IDENTITY = ""; 1022 | CODE_SIGN_STYLE = Manual; 1023 | CURRENT_PROJECT_VERSION = 1; 1024 | DEFINES_MODULE = YES; 1025 | DEVELOPMENT_TEAM = ""; 1026 | DYLIB_COMPATIBILITY_VERSION = 1; 1027 | DYLIB_CURRENT_VERSION = 1; 1028 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 1029 | ENABLE_BITCODE = NO; 1030 | FRAMEWORK_SEARCH_PATHS = ( 1031 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 1032 | "$(inherited)", 1033 | ); 1034 | INFOPLIST_FILE = LunchTest/Info.plist; 1035 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 1036 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1037 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1038 | OTHER_LDFLAGS = ( 1039 | "-weak_framework", 1040 | XCTest, 1041 | "-weak-lswiftXCTest", 1042 | ); 1043 | PRODUCT_BUNDLE_IDENTIFIER = me.fromkk.LunchTest; 1044 | PRODUCT_NAME = "$(TARGET_NAME)"; 1045 | PROVISIONING_PROFILE_SPECIFIER = ""; 1046 | SKIP_INSTALL = YES; 1047 | SWIFT_VERSION = 5.0; 1048 | VERSIONING_SYSTEM = "apple-generic"; 1049 | VERSION_INFO_PREFIX = ""; 1050 | }; 1051 | name = Release; 1052 | }; 1053 | /* End XCBuildConfiguration section */ 1054 | 1055 | /* Begin XCConfigurationList section */ 1056 | AD7639621F47121900BDF5A8 /* Build configuration list for PBXNativeTarget "LunchUnitTests" */ = { 1057 | isa = XCConfigurationList; 1058 | buildConfigurations = ( 1059 | AD7639601F47121900BDF5A8 /* Debug */, 1060 | AD7639611F47121900BDF5A8 /* Release */, 1061 | ); 1062 | defaultConfigurationIsVisible = 0; 1063 | defaultConfigurationName = Release; 1064 | }; 1065 | AD7639711F47150500BDF5A8 /* Build configuration list for PBXNativeTarget "LunchTestTests" */ = { 1066 | isa = XCConfigurationList; 1067 | buildConfigurations = ( 1068 | AD7639721F47150500BDF5A8 /* Debug */, 1069 | AD7639731F47150500BDF5A8 /* Release */, 1070 | ); 1071 | defaultConfigurationIsVisible = 0; 1072 | defaultConfigurationName = Release; 1073 | }; 1074 | AD8D72831F3DA6C900D5969F /* Build configuration list for PBXProject "LunchSample" */ = { 1075 | isa = XCConfigurationList; 1076 | buildConfigurations = ( 1077 | AD8D72A31F3DA6C900D5969F /* Debug */, 1078 | AD8D72A41F3DA6C900D5969F /* Release */, 1079 | ); 1080 | defaultConfigurationIsVisible = 0; 1081 | defaultConfigurationName = Release; 1082 | }; 1083 | AD8D72A51F3DA6C900D5969F /* Build configuration list for PBXNativeTarget "LunchSample" */ = { 1084 | isa = XCConfigurationList; 1085 | buildConfigurations = ( 1086 | AD8D72A61F3DA6C900D5969F /* Debug */, 1087 | AD8D72A71F3DA6C900D5969F /* Release */, 1088 | ); 1089 | defaultConfigurationIsVisible = 0; 1090 | defaultConfigurationName = Release; 1091 | }; 1092 | AD8D72A81F3DA6C900D5969F /* Build configuration list for PBXNativeTarget "LunchSampleUITests" */ = { 1093 | isa = XCConfigurationList; 1094 | buildConfigurations = ( 1095 | AD8D72A91F3DA6C900D5969F /* Debug */, 1096 | AD8D72AA1F3DA6C900D5969F /* Release */, 1097 | ); 1098 | defaultConfigurationIsVisible = 0; 1099 | defaultConfigurationName = Release; 1100 | }; 1101 | AD8D72B91F3DA6D900D5969F /* Build configuration list for PBXNativeTarget "Lunch" */ = { 1102 | isa = XCConfigurationList; 1103 | buildConfigurations = ( 1104 | AD8D72BA1F3DA6D900D5969F /* Debug */, 1105 | AD8D72BB1F3DA6D900D5969F /* Release */, 1106 | ); 1107 | defaultConfigurationIsVisible = 0; 1108 | defaultConfigurationName = Release; 1109 | }; 1110 | AD8D72DC1F3DA70000D5969F /* Build configuration list for PBXNativeTarget "LunchTest" */ = { 1111 | isa = XCConfigurationList; 1112 | buildConfigurations = ( 1113 | AD8D72DD1F3DA70000D5969F /* Debug */, 1114 | AD8D72DE1F3DA70000D5969F /* Release */, 1115 | ); 1116 | defaultConfigurationIsVisible = 0; 1117 | defaultConfigurationName = Release; 1118 | }; 1119 | /* End XCConfigurationList section */ 1120 | }; 1121 | rootObject = AD8D72801F3DA6C900D5969F /* Project object */; 1122 | } 1123 | --------------------------------------------------------------------------------