├── NoiseMaker ├── guitar.wav ├── applause.wav ├── bubbles.wav ├── monster.wav ├── Images.xcassets │ ├── Title.imageset │ │ ├── Title.png │ │ ├── Title@2x.png │ │ ├── Title@3x.png │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ ├── Icon-76.png │ │ ├── Icon-60@2x.png │ │ ├── Icon-60@3x.png │ │ ├── Icon-76@2x.png │ │ ├── Icon-Small.png │ │ ├── Icon-83.5@2x.png │ │ ├── Icon-Small@2x.png │ │ ├── Icon-Small@3x.png │ │ ├── Icon-Small@2x-1.png │ │ ├── Icon-Spotlight-40.png │ │ ├── Icon-Spotlight-40@2x.png │ │ ├── Icon-Spotlight-40@3x.png │ │ ├── Icon-Spotlight-40@2x-1.png │ │ └── Contents.json │ ├── GuitarIcon.imageset │ │ ├── Guitar.png │ │ ├── Guitar@2x.png │ │ ├── Guitar@3x.png │ │ └── Contents.json │ ├── ApplauseIcon.imageset │ │ ├── Applause.png │ │ ├── Applause@2x.png │ │ ├── Applause@3x.png │ │ └── Contents.json │ ├── BubblesIcon.imageset │ │ ├── Bubbles.png │ │ ├── Bubbles@2x.png │ │ ├── Bubbles@3x.png │ │ └── Contents.json │ └── MonsterIcon.imageset │ │ ├── Monster.png │ │ ├── Monster@2x.png │ │ ├── Monster@3x.png │ │ └── Contents.json ├── ViewController.swift ├── NoiseMaker.swift ├── Info.plist ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard └── AppDelegate.swift ├── LICENSE ├── NoiseMaker.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── .gitignore ├── NoiseMakerTests ├── Info.plist └── NoiseMakerTests.swift ├── README.md └── CONTRIBUTING.md /NoiseMaker/guitar.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/guitar.wav -------------------------------------------------------------------------------- /NoiseMaker/applause.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/applause.wav -------------------------------------------------------------------------------- /NoiseMaker/bubbles.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/bubbles.wav -------------------------------------------------------------------------------- /NoiseMaker/monster.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/monster.wav -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/Title.imageset/Title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/Title.imageset/Title.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/Title.imageset/Title@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/Title.imageset/Title@2x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/Title.imageset/Title@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/Title.imageset/Title@3x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-76.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/GuitarIcon.imageset/Guitar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/GuitarIcon.imageset/Guitar.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Small.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/ApplauseIcon.imageset/Applause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/ApplauseIcon.imageset/Applause.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/BubblesIcon.imageset/Bubbles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/BubblesIcon.imageset/Bubbles.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/GuitarIcon.imageset/Guitar@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/GuitarIcon.imageset/Guitar@2x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/GuitarIcon.imageset/Guitar@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/GuitarIcon.imageset/Guitar@3x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/MonsterIcon.imageset/Monster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/MonsterIcon.imageset/Monster.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/BubblesIcon.imageset/Bubbles@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/BubblesIcon.imageset/Bubbles@2x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/BubblesIcon.imageset/Bubbles@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/BubblesIcon.imageset/Bubbles@3x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/MonsterIcon.imageset/Monster@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/MonsterIcon.imageset/Monster@2x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/MonsterIcon.imageset/Monster@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/MonsterIcon.imageset/Monster@3x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Small@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Small@2x-1.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/ApplauseIcon.imageset/Applause@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/ApplauseIcon.imageset/Applause@2x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/ApplauseIcon.imageset/Applause@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/ApplauseIcon.imageset/Applause@3x.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, by Yong Bakos. 2 | 3 | https://creativecommons.org/licenses/by-nc-sa/4.0/ 4 | -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40@2x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40@3x.png -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftEducation/NoiseMaker/HEAD/NoiseMaker/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40@2x-1.png -------------------------------------------------------------------------------- /NoiseMaker.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | .DS_Store 4 | build/ 5 | *.pbxuser 6 | !default.pbxuser 7 | *.mode1v3 8 | !default.mode1v3 9 | *.mode2v3 10 | !default.mode2v3 11 | *.perspectivev3 12 | !default.perspectivev3 13 | xcuserdata 14 | *.xccheckout 15 | *.moved-aside 16 | DerivedData 17 | *.hmap 18 | *.ipa 19 | *.xcuserstate 20 | -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/Title.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "Title.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "Title@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x", 16 | "filename" : "Title@3x.png" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/GuitarIcon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "Guitar.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "Guitar@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x", 16 | "filename" : "Guitar@3x.png" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/BubblesIcon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "Bubbles.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "Bubbles@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x", 16 | "filename" : "Bubbles@3x.png" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/MonsterIcon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "Monster.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "Monster@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x", 16 | "filename" : "Monster@3x.png" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/ApplauseIcon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "Applause.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "Applause@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x", 16 | "filename" : "Applause@3x.png" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /NoiseMaker/ViewController.swift: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4 | 4.0 International License, by Yong Bakos. 5 | 6 | */ 7 | 8 | import UIKit 9 | 10 | class ViewController: UIViewController { 11 | 12 | let noiseMaker = NoiseMaker() 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | // Do any additional setup after loading the view, typically from a nib. 17 | } 18 | 19 | override func didReceiveMemoryWarning() { 20 | super.didReceiveMemoryWarning() 21 | // Dispose of any resources that can be recreated. 22 | } 23 | 24 | @IBAction func playSound(_ sender: UIButton) { 25 | noiseMaker.play(sender.tag) 26 | } 27 | 28 | } 29 | 30 | -------------------------------------------------------------------------------- /NoiseMakerTests/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 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /NoiseMaker/NoiseMaker.swift: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4 | 4.0 International License, by Yong Bakos. 5 | 6 | */ 7 | 8 | import AVFoundation 9 | 10 | class NoiseMaker { 11 | 12 | let audioFileNames = ["guitar", "applause", "monster", "bubbles"] 13 | let players: [AVAudioPlayer?] 14 | 15 | init() { 16 | players = audioFileNames.map { filename in 17 | if let url = Bundle.main.url(forResource: filename, withExtension: "wav") { 18 | return try? AVAudioPlayer(contentsOf: url) 19 | } else { 20 | return nil 21 | } 22 | } 23 | } 24 | 25 | func play(_ index: Int) { 26 | if !players.isEmpty && index >= 0 && index < players.count { 27 | players[index]?.play() 28 | } 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /NoiseMakerTests/NoiseMakerTests.swift: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4 | 4.0 International License, by Yong Bakos. 5 | 6 | */ 7 | 8 | import UIKit 9 | import XCTest 10 | 11 | class NoiseMakerTests: XCTestCase { 12 | 13 | override func setUp() { 14 | super.setUp() 15 | // Put setup code here. This method is called before the invocation of each test method in the class. 16 | } 17 | 18 | override func tearDown() { 19 | // Put teardown code here. This method is called after the invocation of each test method in the class. 20 | super.tearDown() 21 | } 22 | 23 | func testExample() { 24 | // This is an example of a functional test case. 25 | XCTAssert(true, "Pass") 26 | } 27 | 28 | func testPerformanceExample() { 29 | // This is an example of a performance test case. 30 | self.measure() { 31 | // Put the code you want to measure the time of here. 32 | } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Deprecation Warning 4 | 5 | The Swift Education materials are out of date, and are no longer maintained. 6 | 7 | # NoiseMaker 8 | 9 | ### Level 3, Ten Lessons 10 | 11 | Introduce students to the AV Foundation framework, and show students how to play sounds within an app. Teach asynchronous method calls with audio playback. Facilitate the reduction of repetitive code while leveraging data structures, map and closures. 12 | 13 | ## Contributing 14 | 15 | See [CONTRIBUTING.md](CONTRIBUTING.md). 16 | 17 | ## License 18 | 19 | This work is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/), by Yong Bakos, except for the audio files. 20 | Applause.wav, by [uair01 via Freesound](http://www.freesound.org/people/uair01/sounds/89285/) is licensed under a [Creative Commons Attribution 3.0 License](https://creativecommons.org/licenses/by/3.0/). All other sounds are in the public domain. 21 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to Contribute 2 | 3 | ## Post an Issue 4 | 5 | If you discover a bug or error, please add an issue here on GitHub. Feature requests are welcome. However, this is a community effort, so pull requests are preferred. 6 | 7 | ## Create a Pull Request 8 | 9 | Fork the project, create a branch, commit your changes, and then create a pull request. Please submit your pull request to the **develop** branch of this repository. 10 | 11 | The **master** branch is for production-ready code and should not contain incomplete features. Development occurs on the **develop** branch. Once your pull request is accepted, it will be merged into **master**. 12 | 13 | ## Tags 14 | 15 | This repository uses tags to mark intermediate steps of the app development, and these tags correspond to lessons in the [Teaching App Development with Swift](http://swifteducation.github.io) course materials. For example, the tag **lesson01** represents an Xcode project that is ready for working through the steps in Lesson 1. The **end** tag always represents the completed app, which represents an Xcode project that has accomplished all of the features within all of the respective lesson plans for the project. 16 | 17 | ## Impacts to Lesson Plans 18 | 19 | Please note that, because this Xcode project corresponds with lesson plans in the [Teaching App Development with Swift](http://swifteducation.github.io) course materials, you may also need to submit an issue or pull request in the [Teaching App Development with Swift repository](http://github.com/SwiftEducation/teaching-app-dev-swift). 20 | 21 | -------------------------------------------------------------------------------- /NoiseMaker/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 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /NoiseMaker/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /NoiseMaker/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4 | 4.0 International License, by Yong Bakos. 5 | 6 | */ 7 | 8 | import UIKit 9 | 10 | @UIApplicationMain 11 | class AppDelegate: UIResponder, UIApplicationDelegate { 12 | 13 | var window: UIWindow? 14 | 15 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 16 | // Override point for customization after application launch. 17 | return true 18 | } 19 | 20 | func applicationWillResignActive(_ application: UIApplication) { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | func applicationDidEnterBackground(_ application: UIApplication) { 26 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 27 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 28 | } 29 | 30 | func applicationWillEnterForeground(_ application: UIApplication) { 31 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 32 | } 33 | 34 | func applicationDidBecomeActive(_ application: UIApplication) { 35 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 36 | } 37 | 38 | func applicationWillTerminate(_ application: UIApplication) { 39 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 40 | } 41 | 42 | } 43 | 44 | -------------------------------------------------------------------------------- /NoiseMaker/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "size" : "29x29", 15 | "idiom" : "iphone", 16 | "filename" : "Icon-Small@2x-1.png", 17 | "scale" : "2x" 18 | }, 19 | { 20 | "size" : "29x29", 21 | "idiom" : "iphone", 22 | "filename" : "Icon-Small@3x.png", 23 | "scale" : "3x" 24 | }, 25 | { 26 | "size" : "40x40", 27 | "idiom" : "iphone", 28 | "filename" : "Icon-Spotlight-40@2x-1.png", 29 | "scale" : "2x" 30 | }, 31 | { 32 | "size" : "40x40", 33 | "idiom" : "iphone", 34 | "filename" : "Icon-Spotlight-40@3x.png", 35 | "scale" : "3x" 36 | }, 37 | { 38 | "size" : "60x60", 39 | "idiom" : "iphone", 40 | "filename" : "Icon-60@2x.png", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "size" : "60x60", 45 | "idiom" : "iphone", 46 | "filename" : "Icon-60@3x.png", 47 | "scale" : "3x" 48 | }, 49 | { 50 | "idiom" : "ipad", 51 | "size" : "20x20", 52 | "scale" : "1x" 53 | }, 54 | { 55 | "idiom" : "ipad", 56 | "size" : "20x20", 57 | "scale" : "2x" 58 | }, 59 | { 60 | "size" : "29x29", 61 | "idiom" : "ipad", 62 | "filename" : "Icon-Small.png", 63 | "scale" : "1x" 64 | }, 65 | { 66 | "size" : "29x29", 67 | "idiom" : "ipad", 68 | "filename" : "Icon-Small@2x.png", 69 | "scale" : "2x" 70 | }, 71 | { 72 | "size" : "40x40", 73 | "idiom" : "ipad", 74 | "filename" : "Icon-Spotlight-40.png", 75 | "scale" : "1x" 76 | }, 77 | { 78 | "size" : "40x40", 79 | "idiom" : "ipad", 80 | "filename" : "Icon-Spotlight-40@2x.png", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "size" : "76x76", 85 | "idiom" : "ipad", 86 | "filename" : "Icon-76.png", 87 | "scale" : "1x" 88 | }, 89 | { 90 | "size" : "76x76", 91 | "idiom" : "ipad", 92 | "filename" : "Icon-76@2x.png", 93 | "scale" : "2x" 94 | }, 95 | { 96 | "size" : "83.5x83.5", 97 | "idiom" : "ipad", 98 | "filename" : "Icon-83.5@2x.png", 99 | "scale" : "2x" 100 | } 101 | ], 102 | "info" : { 103 | "version" : 1, 104 | "author" : "xcode" 105 | } 106 | } -------------------------------------------------------------------------------- /NoiseMaker/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 41 | 58 | 75 | 76 | 77 | 78 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /NoiseMaker.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | F9087F461B1A37AC00767FD3 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9087F451B1A37AC00767FD3 /* AppDelegate.swift */; }; 11 | F9087F481B1A37AC00767FD3 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9087F471B1A37AC00767FD3 /* ViewController.swift */; }; 12 | F9087F4B1B1A37AC00767FD3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F9087F491B1A37AC00767FD3 /* Main.storyboard */; }; 13 | F9087F4D1B1A37AC00767FD3 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F9087F4C1B1A37AC00767FD3 /* Images.xcassets */; }; 14 | F9087F501B1A37AC00767FD3 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = F9087F4E1B1A37AC00767FD3 /* LaunchScreen.xib */; }; 15 | F9087F5C1B1A37AC00767FD3 /* NoiseMakerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9087F5B1B1A37AC00767FD3 /* NoiseMakerTests.swift */; }; 16 | F9087F711B1B43A600767FD3 /* applause.wav in Resources */ = {isa = PBXBuildFile; fileRef = F9087F6D1B1B43A600767FD3 /* applause.wav */; }; 17 | F9087F721B1B43A600767FD3 /* bubbles.wav in Resources */ = {isa = PBXBuildFile; fileRef = F9087F6E1B1B43A600767FD3 /* bubbles.wav */; }; 18 | F9087F731B1B43A600767FD3 /* guitar.wav in Resources */ = {isa = PBXBuildFile; fileRef = F9087F6F1B1B43A600767FD3 /* guitar.wav */; }; 19 | F9087F741B1B43A600767FD3 /* monster.wav in Resources */ = {isa = PBXBuildFile; fileRef = F9087F701B1B43A600767FD3 /* monster.wav */; }; 20 | F9087F761B1B5BF400767FD3 /* NoiseMaker.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9087F751B1B5BF400767FD3 /* NoiseMaker.swift */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | F9087F561B1A37AC00767FD3 /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = F9087F381B1A37AC00767FD3 /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = F9087F3F1B1A37AC00767FD3; 29 | remoteInfo = NoiseMaker; 30 | }; 31 | /* End PBXContainerItemProxy section */ 32 | 33 | /* Begin PBXFileReference section */ 34 | F9087F401B1A37AC00767FD3 /* NoiseMaker.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NoiseMaker.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | F9087F441B1A37AC00767FD3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | F9087F451B1A37AC00767FD3 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | F9087F471B1A37AC00767FD3 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 38 | F9087F4A1B1A37AC00767FD3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 39 | F9087F4C1B1A37AC00767FD3 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 40 | F9087F4F1B1A37AC00767FD3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 41 | F9087F551B1A37AC00767FD3 /* NoiseMakerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NoiseMakerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | F9087F5A1B1A37AC00767FD3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | F9087F5B1B1A37AC00767FD3 /* NoiseMakerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoiseMakerTests.swift; sourceTree = ""; }; 44 | F9087F6D1B1B43A600767FD3 /* applause.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = applause.wav; sourceTree = ""; }; 45 | F9087F6E1B1B43A600767FD3 /* bubbles.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = bubbles.wav; sourceTree = ""; }; 46 | F9087F6F1B1B43A600767FD3 /* guitar.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = guitar.wav; sourceTree = ""; }; 47 | F9087F701B1B43A600767FD3 /* monster.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = monster.wav; sourceTree = ""; }; 48 | F9087F751B1B5BF400767FD3 /* NoiseMaker.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NoiseMaker.swift; sourceTree = ""; }; 49 | /* End PBXFileReference section */ 50 | 51 | /* Begin PBXFrameworksBuildPhase section */ 52 | F9087F3D1B1A37AC00767FD3 /* Frameworks */ = { 53 | isa = PBXFrameworksBuildPhase; 54 | buildActionMask = 2147483647; 55 | files = ( 56 | ); 57 | runOnlyForDeploymentPostprocessing = 0; 58 | }; 59 | F9087F521B1A37AC00767FD3 /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | /* End PBXFrameworksBuildPhase section */ 67 | 68 | /* Begin PBXGroup section */ 69 | F9087F371B1A37AC00767FD3 = { 70 | isa = PBXGroup; 71 | children = ( 72 | F9087F421B1A37AC00767FD3 /* NoiseMaker */, 73 | F9087F581B1A37AC00767FD3 /* NoiseMakerTests */, 74 | F9087F411B1A37AC00767FD3 /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | F9087F411B1A37AC00767FD3 /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | F9087F401B1A37AC00767FD3 /* NoiseMaker.app */, 82 | F9087F551B1A37AC00767FD3 /* NoiseMakerTests.xctest */, 83 | ); 84 | name = Products; 85 | sourceTree = ""; 86 | }; 87 | F9087F421B1A37AC00767FD3 /* NoiseMaker */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | F9087F451B1A37AC00767FD3 /* AppDelegate.swift */, 91 | F9087F471B1A37AC00767FD3 /* ViewController.swift */, 92 | F9087F751B1B5BF400767FD3 /* NoiseMaker.swift */, 93 | F9087F491B1A37AC00767FD3 /* Main.storyboard */, 94 | F9087F4C1B1A37AC00767FD3 /* Images.xcassets */, 95 | F9087F4E1B1A37AC00767FD3 /* LaunchScreen.xib */, 96 | F9087F431B1A37AC00767FD3 /* Supporting Files */, 97 | ); 98 | path = NoiseMaker; 99 | sourceTree = ""; 100 | }; 101 | F9087F431B1A37AC00767FD3 /* Supporting Files */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | F9087F6D1B1B43A600767FD3 /* applause.wav */, 105 | F9087F6E1B1B43A600767FD3 /* bubbles.wav */, 106 | F9087F6F1B1B43A600767FD3 /* guitar.wav */, 107 | F9087F701B1B43A600767FD3 /* monster.wav */, 108 | F9087F441B1A37AC00767FD3 /* Info.plist */, 109 | ); 110 | name = "Supporting Files"; 111 | sourceTree = ""; 112 | }; 113 | F9087F581B1A37AC00767FD3 /* NoiseMakerTests */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | F9087F5B1B1A37AC00767FD3 /* NoiseMakerTests.swift */, 117 | F9087F591B1A37AC00767FD3 /* Supporting Files */, 118 | ); 119 | path = NoiseMakerTests; 120 | sourceTree = ""; 121 | }; 122 | F9087F591B1A37AC00767FD3 /* Supporting Files */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | F9087F5A1B1A37AC00767FD3 /* Info.plist */, 126 | ); 127 | name = "Supporting Files"; 128 | sourceTree = ""; 129 | }; 130 | /* End PBXGroup section */ 131 | 132 | /* Begin PBXNativeTarget section */ 133 | F9087F3F1B1A37AC00767FD3 /* NoiseMaker */ = { 134 | isa = PBXNativeTarget; 135 | buildConfigurationList = F9087F5F1B1A37AC00767FD3 /* Build configuration list for PBXNativeTarget "NoiseMaker" */; 136 | buildPhases = ( 137 | F9087F3C1B1A37AC00767FD3 /* Sources */, 138 | F9087F3D1B1A37AC00767FD3 /* Frameworks */, 139 | F9087F3E1B1A37AC00767FD3 /* Resources */, 140 | ); 141 | buildRules = ( 142 | ); 143 | dependencies = ( 144 | ); 145 | name = NoiseMaker; 146 | productName = NoiseMaker; 147 | productReference = F9087F401B1A37AC00767FD3 /* NoiseMaker.app */; 148 | productType = "com.apple.product-type.application"; 149 | }; 150 | F9087F541B1A37AC00767FD3 /* NoiseMakerTests */ = { 151 | isa = PBXNativeTarget; 152 | buildConfigurationList = F9087F621B1A37AC00767FD3 /* Build configuration list for PBXNativeTarget "NoiseMakerTests" */; 153 | buildPhases = ( 154 | F9087F511B1A37AC00767FD3 /* Sources */, 155 | F9087F521B1A37AC00767FD3 /* Frameworks */, 156 | F9087F531B1A37AC00767FD3 /* Resources */, 157 | ); 158 | buildRules = ( 159 | ); 160 | dependencies = ( 161 | F9087F571B1A37AC00767FD3 /* PBXTargetDependency */, 162 | ); 163 | name = NoiseMakerTests; 164 | productName = NoiseMakerTests; 165 | productReference = F9087F551B1A37AC00767FD3 /* NoiseMakerTests.xctest */; 166 | productType = "com.apple.product-type.bundle.unit-test"; 167 | }; 168 | /* End PBXNativeTarget section */ 169 | 170 | /* Begin PBXProject section */ 171 | F9087F381B1A37AC00767FD3 /* Project object */ = { 172 | isa = PBXProject; 173 | attributes = { 174 | LastSwiftMigration = 0710; 175 | LastUpgradeCheck = 0710; 176 | ORGANIZATIONNAME = "Your School"; 177 | TargetAttributes = { 178 | F9087F3F1B1A37AC00767FD3 = { 179 | CreatedOnToolsVersion = 6.3; 180 | LastSwiftMigration = 0820; 181 | }; 182 | F9087F541B1A37AC00767FD3 = { 183 | CreatedOnToolsVersion = 6.3; 184 | LastSwiftMigration = 0820; 185 | TestTargetID = F9087F3F1B1A37AC00767FD3; 186 | }; 187 | }; 188 | }; 189 | buildConfigurationList = F9087F3B1B1A37AC00767FD3 /* Build configuration list for PBXProject "NoiseMaker" */; 190 | compatibilityVersion = "Xcode 3.2"; 191 | developmentRegion = English; 192 | hasScannedForEncodings = 0; 193 | knownRegions = ( 194 | en, 195 | Base, 196 | ); 197 | mainGroup = F9087F371B1A37AC00767FD3; 198 | productRefGroup = F9087F411B1A37AC00767FD3 /* Products */; 199 | projectDirPath = ""; 200 | projectRoot = ""; 201 | targets = ( 202 | F9087F3F1B1A37AC00767FD3 /* NoiseMaker */, 203 | F9087F541B1A37AC00767FD3 /* NoiseMakerTests */, 204 | ); 205 | }; 206 | /* End PBXProject section */ 207 | 208 | /* Begin PBXResourcesBuildPhase section */ 209 | F9087F3E1B1A37AC00767FD3 /* Resources */ = { 210 | isa = PBXResourcesBuildPhase; 211 | buildActionMask = 2147483647; 212 | files = ( 213 | F9087F741B1B43A600767FD3 /* monster.wav in Resources */, 214 | F9087F731B1B43A600767FD3 /* guitar.wav in Resources */, 215 | F9087F4B1B1A37AC00767FD3 /* Main.storyboard in Resources */, 216 | F9087F721B1B43A600767FD3 /* bubbles.wav in Resources */, 217 | F9087F501B1A37AC00767FD3 /* LaunchScreen.xib in Resources */, 218 | F9087F4D1B1A37AC00767FD3 /* Images.xcassets in Resources */, 219 | F9087F711B1B43A600767FD3 /* applause.wav in Resources */, 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | }; 223 | F9087F531B1A37AC00767FD3 /* Resources */ = { 224 | isa = PBXResourcesBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | ); 228 | runOnlyForDeploymentPostprocessing = 0; 229 | }; 230 | /* End PBXResourcesBuildPhase section */ 231 | 232 | /* Begin PBXSourcesBuildPhase section */ 233 | F9087F3C1B1A37AC00767FD3 /* Sources */ = { 234 | isa = PBXSourcesBuildPhase; 235 | buildActionMask = 2147483647; 236 | files = ( 237 | F9087F481B1A37AC00767FD3 /* ViewController.swift in Sources */, 238 | F9087F761B1B5BF400767FD3 /* NoiseMaker.swift in Sources */, 239 | F9087F461B1A37AC00767FD3 /* AppDelegate.swift in Sources */, 240 | ); 241 | runOnlyForDeploymentPostprocessing = 0; 242 | }; 243 | F9087F511B1A37AC00767FD3 /* Sources */ = { 244 | isa = PBXSourcesBuildPhase; 245 | buildActionMask = 2147483647; 246 | files = ( 247 | F9087F5C1B1A37AC00767FD3 /* NoiseMakerTests.swift in Sources */, 248 | ); 249 | runOnlyForDeploymentPostprocessing = 0; 250 | }; 251 | /* End PBXSourcesBuildPhase section */ 252 | 253 | /* Begin PBXTargetDependency section */ 254 | F9087F571B1A37AC00767FD3 /* PBXTargetDependency */ = { 255 | isa = PBXTargetDependency; 256 | target = F9087F3F1B1A37AC00767FD3 /* NoiseMaker */; 257 | targetProxy = F9087F561B1A37AC00767FD3 /* PBXContainerItemProxy */; 258 | }; 259 | /* End PBXTargetDependency section */ 260 | 261 | /* Begin PBXVariantGroup section */ 262 | F9087F491B1A37AC00767FD3 /* Main.storyboard */ = { 263 | isa = PBXVariantGroup; 264 | children = ( 265 | F9087F4A1B1A37AC00767FD3 /* Base */, 266 | ); 267 | name = Main.storyboard; 268 | sourceTree = ""; 269 | }; 270 | F9087F4E1B1A37AC00767FD3 /* LaunchScreen.xib */ = { 271 | isa = PBXVariantGroup; 272 | children = ( 273 | F9087F4F1B1A37AC00767FD3 /* Base */, 274 | ); 275 | name = LaunchScreen.xib; 276 | sourceTree = ""; 277 | }; 278 | /* End PBXVariantGroup section */ 279 | 280 | /* Begin XCBuildConfiguration section */ 281 | F9087F5D1B1A37AC00767FD3 /* Debug */ = { 282 | isa = XCBuildConfiguration; 283 | buildSettings = { 284 | ALWAYS_SEARCH_USER_PATHS = NO; 285 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 286 | CLANG_CXX_LIBRARY = "libc++"; 287 | CLANG_ENABLE_MODULES = YES; 288 | CLANG_ENABLE_OBJC_ARC = YES; 289 | CLANG_WARN_BOOL_CONVERSION = YES; 290 | CLANG_WARN_CONSTANT_CONVERSION = YES; 291 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 292 | CLANG_WARN_EMPTY_BODY = YES; 293 | CLANG_WARN_ENUM_CONVERSION = YES; 294 | CLANG_WARN_INT_CONVERSION = YES; 295 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 296 | CLANG_WARN_UNREACHABLE_CODE = YES; 297 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 298 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 299 | COPY_PHASE_STRIP = NO; 300 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 301 | ENABLE_STRICT_OBJC_MSGSEND = YES; 302 | ENABLE_TESTABILITY = YES; 303 | GCC_C_LANGUAGE_STANDARD = gnu99; 304 | GCC_DYNAMIC_NO_PIC = NO; 305 | GCC_NO_COMMON_BLOCKS = YES; 306 | GCC_OPTIMIZATION_LEVEL = 0; 307 | GCC_PREPROCESSOR_DEFINITIONS = ( 308 | "DEBUG=1", 309 | "$(inherited)", 310 | ); 311 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 312 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 313 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 314 | GCC_WARN_UNDECLARED_SELECTOR = YES; 315 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 316 | GCC_WARN_UNUSED_FUNCTION = YES; 317 | GCC_WARN_UNUSED_VARIABLE = YES; 318 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 319 | MTL_ENABLE_DEBUG_INFO = YES; 320 | ONLY_ACTIVE_ARCH = YES; 321 | SDKROOT = iphoneos; 322 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 323 | TARGETED_DEVICE_FAMILY = "1,2"; 324 | }; 325 | name = Debug; 326 | }; 327 | F9087F5E1B1A37AC00767FD3 /* Release */ = { 328 | isa = XCBuildConfiguration; 329 | buildSettings = { 330 | ALWAYS_SEARCH_USER_PATHS = NO; 331 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 332 | CLANG_CXX_LIBRARY = "libc++"; 333 | CLANG_ENABLE_MODULES = YES; 334 | CLANG_ENABLE_OBJC_ARC = YES; 335 | CLANG_WARN_BOOL_CONVERSION = YES; 336 | CLANG_WARN_CONSTANT_CONVERSION = YES; 337 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 338 | CLANG_WARN_EMPTY_BODY = YES; 339 | CLANG_WARN_ENUM_CONVERSION = YES; 340 | CLANG_WARN_INT_CONVERSION = YES; 341 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 342 | CLANG_WARN_UNREACHABLE_CODE = YES; 343 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 344 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 345 | COPY_PHASE_STRIP = NO; 346 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 347 | ENABLE_NS_ASSERTIONS = NO; 348 | ENABLE_STRICT_OBJC_MSGSEND = YES; 349 | GCC_C_LANGUAGE_STANDARD = gnu99; 350 | GCC_NO_COMMON_BLOCKS = YES; 351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 353 | GCC_WARN_UNDECLARED_SELECTOR = YES; 354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 355 | GCC_WARN_UNUSED_FUNCTION = YES; 356 | GCC_WARN_UNUSED_VARIABLE = YES; 357 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 358 | MTL_ENABLE_DEBUG_INFO = NO; 359 | SDKROOT = iphoneos; 360 | TARGETED_DEVICE_FAMILY = "1,2"; 361 | VALIDATE_PRODUCT = YES; 362 | }; 363 | name = Release; 364 | }; 365 | F9087F601B1A37AC00767FD3 /* Debug */ = { 366 | isa = XCBuildConfiguration; 367 | buildSettings = { 368 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 369 | INFOPLIST_FILE = NoiseMaker/Info.plist; 370 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 371 | PRODUCT_BUNDLE_IDENTIFIER = "edu.yourschool.$(PRODUCT_NAME:rfc1034identifier)"; 372 | PRODUCT_NAME = "$(TARGET_NAME)"; 373 | SWIFT_VERSION = 3.0; 374 | }; 375 | name = Debug; 376 | }; 377 | F9087F611B1A37AC00767FD3 /* Release */ = { 378 | isa = XCBuildConfiguration; 379 | buildSettings = { 380 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 381 | INFOPLIST_FILE = NoiseMaker/Info.plist; 382 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 383 | PRODUCT_BUNDLE_IDENTIFIER = "edu.yourschool.$(PRODUCT_NAME:rfc1034identifier)"; 384 | PRODUCT_NAME = "$(TARGET_NAME)"; 385 | SWIFT_VERSION = 3.0; 386 | }; 387 | name = Release; 388 | }; 389 | F9087F631B1A37AC00767FD3 /* Debug */ = { 390 | isa = XCBuildConfiguration; 391 | buildSettings = { 392 | BUNDLE_LOADER = "$(TEST_HOST)"; 393 | GCC_PREPROCESSOR_DEFINITIONS = ( 394 | "DEBUG=1", 395 | "$(inherited)", 396 | ); 397 | INFOPLIST_FILE = NoiseMakerTests/Info.plist; 398 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 399 | PRODUCT_BUNDLE_IDENTIFIER = "edu.yourschool.$(PRODUCT_NAME:rfc1034identifier)"; 400 | PRODUCT_NAME = "$(TARGET_NAME)"; 401 | SWIFT_VERSION = 3.0; 402 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NoiseMaker.app/NoiseMaker"; 403 | }; 404 | name = Debug; 405 | }; 406 | F9087F641B1A37AC00767FD3 /* Release */ = { 407 | isa = XCBuildConfiguration; 408 | buildSettings = { 409 | BUNDLE_LOADER = "$(TEST_HOST)"; 410 | INFOPLIST_FILE = NoiseMakerTests/Info.plist; 411 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 412 | PRODUCT_BUNDLE_IDENTIFIER = "edu.yourschool.$(PRODUCT_NAME:rfc1034identifier)"; 413 | PRODUCT_NAME = "$(TARGET_NAME)"; 414 | SWIFT_VERSION = 3.0; 415 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NoiseMaker.app/NoiseMaker"; 416 | }; 417 | name = Release; 418 | }; 419 | /* End XCBuildConfiguration section */ 420 | 421 | /* Begin XCConfigurationList section */ 422 | F9087F3B1B1A37AC00767FD3 /* Build configuration list for PBXProject "NoiseMaker" */ = { 423 | isa = XCConfigurationList; 424 | buildConfigurations = ( 425 | F9087F5D1B1A37AC00767FD3 /* Debug */, 426 | F9087F5E1B1A37AC00767FD3 /* Release */, 427 | ); 428 | defaultConfigurationIsVisible = 0; 429 | defaultConfigurationName = Release; 430 | }; 431 | F9087F5F1B1A37AC00767FD3 /* Build configuration list for PBXNativeTarget "NoiseMaker" */ = { 432 | isa = XCConfigurationList; 433 | buildConfigurations = ( 434 | F9087F601B1A37AC00767FD3 /* Debug */, 435 | F9087F611B1A37AC00767FD3 /* Release */, 436 | ); 437 | defaultConfigurationIsVisible = 0; 438 | defaultConfigurationName = Release; 439 | }; 440 | F9087F621B1A37AC00767FD3 /* Build configuration list for PBXNativeTarget "NoiseMakerTests" */ = { 441 | isa = XCConfigurationList; 442 | buildConfigurations = ( 443 | F9087F631B1A37AC00767FD3 /* Debug */, 444 | F9087F641B1A37AC00767FD3 /* Release */, 445 | ); 446 | defaultConfigurationIsVisible = 0; 447 | defaultConfigurationName = Release; 448 | }; 449 | /* End XCConfigurationList section */ 450 | }; 451 | rootObject = F9087F381B1A37AC00767FD3 /* Project object */; 452 | } 453 | --------------------------------------------------------------------------------