├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── Volkswagen.podspec ├── Volkswagen.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcshareddata │ └── xcschemes │ ├── Volkswagen-OSX.xcscheme │ └── Volkswagen-iOS.xcscheme ├── Volkswagen.xcworkspace └── contents.xcworkspacedata ├── Volkswagen ├── Info.plist ├── NSException+Volkswagen.m └── Volkswagen.h ├── VolkswagenDemo ├── VolkswagenDemo.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── VolkswagenDemo │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ └── MainMenu.xib │ └── Info.plist └── VolkswagenDemoTests │ ├── Info.plist │ └── VolkswagenDemoTests.swift └── VolkswagenTests ├── Info.plist ├── SwiftVolkswagenTests.swift └── VolkswagenTests.m /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata 19 | 20 | ## Other 21 | *.xccheckout 22 | *.moved-aside 23 | *.xcuserstate 24 | *.xcscmblueprint 25 | 26 | ## Obj-C/Swift specific 27 | *.hmap 28 | *.ipa 29 | 30 | # CocoaPods 31 | # 32 | # We recommend against adding the Pods directory to your .gitignore. However 33 | # you should judge for yourself, the pros and cons are mentioned at: 34 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 35 | # 36 | #Pods/ 37 | 38 | # Carthage 39 | # 40 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 41 | # Carthage/Checkouts 42 | 43 | Carthage/Build -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | os: osx 3 | osx_image: xcode7 4 | xcode_workspace: Volkswagen.xcworkspace 5 | xcode_scheme: Volkswagen-iOS 6 | 7 | script: xcodebuild -workspace Volkswagen.xcworkspace -scheme Volkswagen-iOS -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' test 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Ce Zheng 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Volkswagen for Xcode 2 | [![Build Status](https://travis-ci.org/cezheng/Volkswagen-Xcode.svg)](https://travis-ci.org/cezheng/Volkswagen-Xcode) 3 | 4 | [![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Volkswagen.svg)](https://cocoapods.org/pods/Volkswagen) 5 | [![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) 6 | [![Platform](https://img.shields.io/cocoapods/p/Volkswagen.svg?style=flat)](https://github.com/cezheng/Volkswagen-Xcode) 7 | 8 | [![Twitter](https://img.shields.io/badge/twitter-@AdamoCheng-blue.svg?style=flat)](http://twitter.com/AdamoCheng) 9 | [![Weibo](https://img.shields.io/badge/Weibo-@Real_Adam-blue.svg?style=flat)](http://weibo.com/cezheng) 10 | 11 | Volkswagen for Xcode makes failing test cases pass in CI servers. 12 | 13 | This project is inspired by [volkswagen 14 | ](https://github.com/auchenberg/volkswagen) for javascript, and [phpunit-vw](https://github.com/hmlb/phpunit-vw) for PHP. 15 | 16 | # Example 17 | Tests like these will pass. 18 | ## Swift 19 | 20 | ```swift 21 | import XCTest 22 | 23 | class SwiftVolkswagenTests: XCTestCase { 24 | 25 | func testAssertTrue() { 26 | XCTAssertTrue(false); 27 | } 28 | 29 | func testAssertEqual () { 30 | XCTAssertEqual(1, 2); 31 | } 32 | } 33 | ``` 34 | ## Objective C 35 | 36 | ```objc 37 | #import 38 | 39 | @interface VolkswagenTests : XCTestCase 40 | 41 | @end 42 | 43 | @implementation VolkswagenTests 44 | 45 | - (void)testAssertEqualObjects { 46 | XCTAssertEqualObjects(nil, [NSString new]); 47 | } 48 | 49 | - (void)testAssertNotNil { 50 | XCTAssertNotNil(nil); 51 | } 52 | 53 | @end 54 | ``` 55 | ## Requirements 56 | ### Use CocoaPods or Carthage 57 | - iOS 8.0+ / Mac OS X 10.9+ 58 | - Xcode 7.0 59 | 60 | Pure Objective-C projects using CocoaPods should have lower requirements since they don't have to `use_frameworks!`. 61 | 62 | ### Manually include the source 63 | - I have tested this yet, but this should work with almost all versions of OS in recent years 64 | 65 | > Currently using `Volkswagen-Xcode` on iOS/tvOS only supports Travis CI. More CI environment detection is yet to come. Keep an eye on this [issue](https://github.com/cezheng/Volkswagen-Xcode/issues/1). 66 | 67 | # Installation 68 | ## CocoaPods 69 | You can use [CocoaPods](http://cocoapods.org/) to install `Volkswagen-Xcode` by adding it to your to your `Podfile`: 70 | 71 | ```ruby 72 | platform :osx, '10.9' 73 | use_frameworks! 74 | 75 | target 'MyTestTarget' do 76 | pod 'Volkswagen', '~> 0.2.0' 77 | end 78 | ``` 79 | 80 | Then, run the following command: 81 | 82 | ```bash 83 | $ pod install 84 | ``` 85 | 86 | ### Carthage 87 | Adding the following line to your `Cartfile.private`: 88 | 89 | ``` 90 | github "cezheng/Volkswagen" ~> 0.2.0 91 | ``` 92 | Run the following command: 93 | 94 | ``` 95 | $ carthage update 96 | ``` 97 | Then drag the `Volkswagen.framework` built by Carthage into your test target's `Build Phases` -> `Link Binary With Libraries`. 98 | 99 | ## License 100 | 101 | `Volkswagen-Xcode` is released under the MIT license. See [LICENSE](https://github.com/cezheng/Volkswagen-Xcode/blob/master/LICENSE) for details. 102 | 103 | -------------------------------------------------------------------------------- /Volkswagen.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "Volkswagen" 3 | s.version = "0.2.0" 4 | s.license = "MIT" 5 | s.summary = "Detects when your Xcode tests are being run in a CI server, and makes them pass." 6 | s.homepage = "https://github.com/cezheng/Volkswagen-Xcode" 7 | s.social_media_url = "https://twitter.com/AdamoCheng" 8 | s.author = { "Ce Zheng" => "cezheng.cs@gmail.com" } 9 | s.source = { :git => "https://github.com/cezheng/Volkswagen-Xcode.git", :tag => s.version } 10 | 11 | s.ios.deployment_target = "8.0" 12 | s.osx.deployment_target = "10.9" 13 | s.tvos.deployment_target = "9.0" 14 | 15 | s.source_files = "Volkswagen/*.m" 16 | 17 | s.requires_arc = true 18 | 19 | end -------------------------------------------------------------------------------- /Volkswagen.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 793050E91BD8DA990040127B /* Volkswagen.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 793050DF1BD8DA990040127B /* Volkswagen.framework */; }; 11 | 793050F61BD8DAD30040127B /* Volkswagen.h in Headers */ = {isa = PBXBuildFile; fileRef = 79AF25321BC7C6810093270C /* Volkswagen.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 793050F71BD8DAD90040127B /* NSException+Volkswagen.m in Sources */ = {isa = PBXBuildFile; fileRef = 79AF254A1BC7CA330093270C /* NSException+Volkswagen.m */; }; 13 | 793050FA1BD8DAF70040127B /* VolkswagenTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 79AF253E1BC7C6810093270C /* VolkswagenTests.m */; }; 14 | 793050FB1BD8DAF70040127B /* SwiftVolkswagenTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79AF25621BC7DF9B0093270C /* SwiftVolkswagenTests.swift */; }; 15 | 79AF25331BC7C6810093270C /* Volkswagen.h in Headers */ = {isa = PBXBuildFile; fileRef = 79AF25321BC7C6810093270C /* Volkswagen.h */; settings = {ATTRIBUTES = (Public, ); }; }; 16 | 79AF253A1BC7C6810093270C /* Volkswagen.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 79AF252F1BC7C6810093270C /* Volkswagen.framework */; }; 17 | 79AF253F1BC7C6810093270C /* VolkswagenTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 79AF253E1BC7C6810093270C /* VolkswagenTests.m */; }; 18 | 79AF254C1BC7CA330093270C /* NSException+Volkswagen.m in Sources */ = {isa = PBXBuildFile; fileRef = 79AF254A1BC7CA330093270C /* NSException+Volkswagen.m */; }; 19 | 79AF25631BC7DF9B0093270C /* SwiftVolkswagenTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79AF25621BC7DF9B0093270C /* SwiftVolkswagenTests.swift */; }; 20 | 79AF25A91BC7E5100093270C /* Volkswagen.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 79AF259F1BC7E5100093270C /* Volkswagen.framework */; }; 21 | 79AF25B61BC7E61F0093270C /* VolkswagenTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 79AF253E1BC7C6810093270C /* VolkswagenTests.m */; }; 22 | 79AF25B71BC7E61F0093270C /* SwiftVolkswagenTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79AF25621BC7DF9B0093270C /* SwiftVolkswagenTests.swift */; }; 23 | 79AF25B81BC7E6770093270C /* Volkswagen.h in Headers */ = {isa = PBXBuildFile; fileRef = 79AF25321BC7C6810093270C /* Volkswagen.h */; settings = {ATTRIBUTES = (Public, ); }; }; 24 | 79AF25B91BC7E6F00093270C /* NSException+Volkswagen.m in Sources */ = {isa = PBXBuildFile; fileRef = 79AF254A1BC7CA330093270C /* NSException+Volkswagen.m */; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXContainerItemProxy section */ 28 | 793050EA1BD8DA990040127B /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = 79AF25261BC7C6810093270C /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 793050DE1BD8DA990040127B; 33 | remoteInfo = "Volkswagen-tvOS"; 34 | }; 35 | 79AF253B1BC7C6810093270C /* PBXContainerItemProxy */ = { 36 | isa = PBXContainerItemProxy; 37 | containerPortal = 79AF25261BC7C6810093270C /* Project object */; 38 | proxyType = 1; 39 | remoteGlobalIDString = 79AF252E1BC7C6810093270C; 40 | remoteInfo = Volkswagen; 41 | }; 42 | 79AF25AA1BC7E5100093270C /* PBXContainerItemProxy */ = { 43 | isa = PBXContainerItemProxy; 44 | containerPortal = 79AF25261BC7C6810093270C /* Project object */; 45 | proxyType = 1; 46 | remoteGlobalIDString = 79AF259E1BC7E5100093270C; 47 | remoteInfo = "VolksWagen-iOS"; 48 | }; 49 | /* End PBXContainerItemProxy section */ 50 | 51 | /* Begin PBXFileReference section */ 52 | 793050DF1BD8DA990040127B /* Volkswagen.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Volkswagen.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 793050E81BD8DA990040127B /* Volkswagen-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Volkswagen-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 79AF252F1BC7C6810093270C /* Volkswagen.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Volkswagen.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 79AF25321BC7C6810093270C /* Volkswagen.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Volkswagen.h; sourceTree = ""; }; 56 | 79AF25341BC7C6810093270C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 57 | 79AF25391BC7C6810093270C /* Volkswagen-OSXTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Volkswagen-OSXTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | 79AF253E1BC7C6810093270C /* VolkswagenTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = VolkswagenTests.m; sourceTree = ""; }; 59 | 79AF25401BC7C6810093270C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 60 | 79AF254A1BC7CA330093270C /* NSException+Volkswagen.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSException+Volkswagen.m"; sourceTree = ""; }; 61 | 79AF25621BC7DF9B0093270C /* SwiftVolkswagenTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwiftVolkswagenTests.swift; sourceTree = ""; }; 62 | 79AF259F1BC7E5100093270C /* Volkswagen.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Volkswagen.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 63 | 79AF25A81BC7E5100093270C /* Volkswagen-iOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Volkswagen-iOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 64 | /* End PBXFileReference section */ 65 | 66 | /* Begin PBXFrameworksBuildPhase section */ 67 | 793050DB1BD8DA990040127B /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | 793050E51BD8DA990040127B /* Frameworks */ = { 75 | isa = PBXFrameworksBuildPhase; 76 | buildActionMask = 2147483647; 77 | files = ( 78 | 793050E91BD8DA990040127B /* Volkswagen.framework in Frameworks */, 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | 79AF252B1BC7C6810093270C /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | 79AF25361BC7C6810093270C /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | 79AF253A1BC7C6810093270C /* Volkswagen.framework in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | 79AF259B1BC7E5100093270C /* Frameworks */ = { 98 | isa = PBXFrameworksBuildPhase; 99 | buildActionMask = 2147483647; 100 | files = ( 101 | ); 102 | runOnlyForDeploymentPostprocessing = 0; 103 | }; 104 | 79AF25A51BC7E5100093270C /* Frameworks */ = { 105 | isa = PBXFrameworksBuildPhase; 106 | buildActionMask = 2147483647; 107 | files = ( 108 | 79AF25A91BC7E5100093270C /* Volkswagen.framework in Frameworks */, 109 | ); 110 | runOnlyForDeploymentPostprocessing = 0; 111 | }; 112 | /* End PBXFrameworksBuildPhase section */ 113 | 114 | /* Begin PBXGroup section */ 115 | 79AF25251BC7C6810093270C = { 116 | isa = PBXGroup; 117 | children = ( 118 | 79AF25311BC7C6810093270C /* Volkswagen */, 119 | 79AF253D1BC7C6810093270C /* VolkswagenTests */, 120 | 79AF25301BC7C6810093270C /* Products */, 121 | ); 122 | sourceTree = ""; 123 | }; 124 | 79AF25301BC7C6810093270C /* Products */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 79AF252F1BC7C6810093270C /* Volkswagen.framework */, 128 | 79AF25391BC7C6810093270C /* Volkswagen-OSXTests.xctest */, 129 | 79AF259F1BC7E5100093270C /* Volkswagen.framework */, 130 | 79AF25A81BC7E5100093270C /* Volkswagen-iOSTests.xctest */, 131 | 793050DF1BD8DA990040127B /* Volkswagen.framework */, 132 | 793050E81BD8DA990040127B /* Volkswagen-tvOSTests.xctest */, 133 | ); 134 | name = Products; 135 | sourceTree = ""; 136 | }; 137 | 79AF25311BC7C6810093270C /* Volkswagen */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 79AF25321BC7C6810093270C /* Volkswagen.h */, 141 | 79AF254A1BC7CA330093270C /* NSException+Volkswagen.m */, 142 | 79AF25341BC7C6810093270C /* Info.plist */, 143 | ); 144 | path = Volkswagen; 145 | sourceTree = ""; 146 | }; 147 | 79AF253D1BC7C6810093270C /* VolkswagenTests */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 79AF253E1BC7C6810093270C /* VolkswagenTests.m */, 151 | 79AF25621BC7DF9B0093270C /* SwiftVolkswagenTests.swift */, 152 | 79AF25401BC7C6810093270C /* Info.plist */, 153 | ); 154 | path = VolkswagenTests; 155 | sourceTree = ""; 156 | }; 157 | /* End PBXGroup section */ 158 | 159 | /* Begin PBXHeadersBuildPhase section */ 160 | 793050DC1BD8DA990040127B /* Headers */ = { 161 | isa = PBXHeadersBuildPhase; 162 | buildActionMask = 2147483647; 163 | files = ( 164 | 793050F61BD8DAD30040127B /* Volkswagen.h in Headers */, 165 | ); 166 | runOnlyForDeploymentPostprocessing = 0; 167 | }; 168 | 79AF252C1BC7C6810093270C /* Headers */ = { 169 | isa = PBXHeadersBuildPhase; 170 | buildActionMask = 2147483647; 171 | files = ( 172 | 79AF25331BC7C6810093270C /* Volkswagen.h in Headers */, 173 | ); 174 | runOnlyForDeploymentPostprocessing = 0; 175 | }; 176 | 79AF259C1BC7E5100093270C /* Headers */ = { 177 | isa = PBXHeadersBuildPhase; 178 | buildActionMask = 2147483647; 179 | files = ( 180 | 79AF25B81BC7E6770093270C /* Volkswagen.h in Headers */, 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | }; 184 | /* End PBXHeadersBuildPhase section */ 185 | 186 | /* Begin PBXNativeTarget section */ 187 | 793050DE1BD8DA990040127B /* Volkswagen-tvOS */ = { 188 | isa = PBXNativeTarget; 189 | buildConfigurationList = 793050F01BD8DA990040127B /* Build configuration list for PBXNativeTarget "Volkswagen-tvOS" */; 190 | buildPhases = ( 191 | 793050DA1BD8DA990040127B /* Sources */, 192 | 793050DB1BD8DA990040127B /* Frameworks */, 193 | 793050DC1BD8DA990040127B /* Headers */, 194 | 793050DD1BD8DA990040127B /* Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | ); 200 | name = "Volkswagen-tvOS"; 201 | productName = "Volkswagen-tvOS"; 202 | productReference = 793050DF1BD8DA990040127B /* Volkswagen.framework */; 203 | productType = "com.apple.product-type.framework"; 204 | }; 205 | 793050E71BD8DA990040127B /* Volkswagen-tvOSTests */ = { 206 | isa = PBXNativeTarget; 207 | buildConfigurationList = 793050F31BD8DA990040127B /* Build configuration list for PBXNativeTarget "Volkswagen-tvOSTests" */; 208 | buildPhases = ( 209 | 793050E41BD8DA990040127B /* Sources */, 210 | 793050E51BD8DA990040127B /* Frameworks */, 211 | 793050E61BD8DA990040127B /* Resources */, 212 | ); 213 | buildRules = ( 214 | ); 215 | dependencies = ( 216 | 793050EB1BD8DA990040127B /* PBXTargetDependency */, 217 | ); 218 | name = "Volkswagen-tvOSTests"; 219 | productName = "Volkswagen-tvOSTests"; 220 | productReference = 793050E81BD8DA990040127B /* Volkswagen-tvOSTests.xctest */; 221 | productType = "com.apple.product-type.bundle.unit-test"; 222 | }; 223 | 79AF252E1BC7C6810093270C /* Volkswagen-OSX */ = { 224 | isa = PBXNativeTarget; 225 | buildConfigurationList = 79AF25431BC7C6810093270C /* Build configuration list for PBXNativeTarget "Volkswagen-OSX" */; 226 | buildPhases = ( 227 | 79AF252A1BC7C6810093270C /* Sources */, 228 | 79AF252B1BC7C6810093270C /* Frameworks */, 229 | 79AF252C1BC7C6810093270C /* Headers */, 230 | 79AF252D1BC7C6810093270C /* Resources */, 231 | ); 232 | buildRules = ( 233 | ); 234 | dependencies = ( 235 | ); 236 | name = "Volkswagen-OSX"; 237 | productName = Volkswagen; 238 | productReference = 79AF252F1BC7C6810093270C /* Volkswagen.framework */; 239 | productType = "com.apple.product-type.framework"; 240 | }; 241 | 79AF25381BC7C6810093270C /* Volkswagen-OSXTests */ = { 242 | isa = PBXNativeTarget; 243 | buildConfigurationList = 79AF25461BC7C6810093270C /* Build configuration list for PBXNativeTarget "Volkswagen-OSXTests" */; 244 | buildPhases = ( 245 | 79AF25351BC7C6810093270C /* Sources */, 246 | 79AF25361BC7C6810093270C /* Frameworks */, 247 | 79AF25371BC7C6810093270C /* Resources */, 248 | ); 249 | buildRules = ( 250 | ); 251 | dependencies = ( 252 | 79AF253C1BC7C6810093270C /* PBXTargetDependency */, 253 | ); 254 | name = "Volkswagen-OSXTests"; 255 | productName = VolkswagenTests; 256 | productReference = 79AF25391BC7C6810093270C /* Volkswagen-OSXTests.xctest */; 257 | productType = "com.apple.product-type.bundle.unit-test"; 258 | }; 259 | 79AF259E1BC7E5100093270C /* Volkswagen-iOS */ = { 260 | isa = PBXNativeTarget; 261 | buildConfigurationList = 79AF25B01BC7E5100093270C /* Build configuration list for PBXNativeTarget "Volkswagen-iOS" */; 262 | buildPhases = ( 263 | 79AF259A1BC7E5100093270C /* Sources */, 264 | 79AF259B1BC7E5100093270C /* Frameworks */, 265 | 79AF259C1BC7E5100093270C /* Headers */, 266 | 79AF259D1BC7E5100093270C /* Resources */, 267 | ); 268 | buildRules = ( 269 | ); 270 | dependencies = ( 271 | ); 272 | name = "Volkswagen-iOS"; 273 | productName = "VolksWagen-iOS"; 274 | productReference = 79AF259F1BC7E5100093270C /* Volkswagen.framework */; 275 | productType = "com.apple.product-type.framework"; 276 | }; 277 | 79AF25A71BC7E5100093270C /* Volkswagen-iOSTests */ = { 278 | isa = PBXNativeTarget; 279 | buildConfigurationList = 79AF25B31BC7E5100093270C /* Build configuration list for PBXNativeTarget "Volkswagen-iOSTests" */; 280 | buildPhases = ( 281 | 79AF25A41BC7E5100093270C /* Sources */, 282 | 79AF25A51BC7E5100093270C /* Frameworks */, 283 | 79AF25A61BC7E5100093270C /* Resources */, 284 | ); 285 | buildRules = ( 286 | ); 287 | dependencies = ( 288 | 79AF25AB1BC7E5100093270C /* PBXTargetDependency */, 289 | ); 290 | name = "Volkswagen-iOSTests"; 291 | productName = "VolksWagen-iOSTests"; 292 | productReference = 79AF25A81BC7E5100093270C /* Volkswagen-iOSTests.xctest */; 293 | productType = "com.apple.product-type.bundle.unit-test"; 294 | }; 295 | /* End PBXNativeTarget section */ 296 | 297 | /* Begin PBXProject section */ 298 | 79AF25261BC7C6810093270C /* Project object */ = { 299 | isa = PBXProject; 300 | attributes = { 301 | LastSwiftUpdateCheck = 0710; 302 | LastUpgradeCheck = 0700; 303 | ORGANIZATIONNAME = "Ce Zheng"; 304 | TargetAttributes = { 305 | 793050DE1BD8DA990040127B = { 306 | CreatedOnToolsVersion = 7.1; 307 | }; 308 | 793050E71BD8DA990040127B = { 309 | CreatedOnToolsVersion = 7.1; 310 | }; 311 | 79AF252E1BC7C6810093270C = { 312 | CreatedOnToolsVersion = 7.0; 313 | }; 314 | 79AF25381BC7C6810093270C = { 315 | CreatedOnToolsVersion = 7.0; 316 | }; 317 | 79AF259E1BC7E5100093270C = { 318 | CreatedOnToolsVersion = 7.0; 319 | }; 320 | 79AF25A71BC7E5100093270C = { 321 | CreatedOnToolsVersion = 7.0; 322 | }; 323 | }; 324 | }; 325 | buildConfigurationList = 79AF25291BC7C6810093270C /* Build configuration list for PBXProject "Volkswagen" */; 326 | compatibilityVersion = "Xcode 3.2"; 327 | developmentRegion = English; 328 | hasScannedForEncodings = 0; 329 | knownRegions = ( 330 | en, 331 | ); 332 | mainGroup = 79AF25251BC7C6810093270C; 333 | productRefGroup = 79AF25301BC7C6810093270C /* Products */; 334 | projectDirPath = ""; 335 | projectRoot = ""; 336 | targets = ( 337 | 79AF252E1BC7C6810093270C /* Volkswagen-OSX */, 338 | 79AF25381BC7C6810093270C /* Volkswagen-OSXTests */, 339 | 79AF259E1BC7E5100093270C /* Volkswagen-iOS */, 340 | 79AF25A71BC7E5100093270C /* Volkswagen-iOSTests */, 341 | 793050DE1BD8DA990040127B /* Volkswagen-tvOS */, 342 | 793050E71BD8DA990040127B /* Volkswagen-tvOSTests */, 343 | ); 344 | }; 345 | /* End PBXProject section */ 346 | 347 | /* Begin PBXResourcesBuildPhase section */ 348 | 793050DD1BD8DA990040127B /* Resources */ = { 349 | isa = PBXResourcesBuildPhase; 350 | buildActionMask = 2147483647; 351 | files = ( 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | 793050E61BD8DA990040127B /* Resources */ = { 356 | isa = PBXResourcesBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | ); 360 | runOnlyForDeploymentPostprocessing = 0; 361 | }; 362 | 79AF252D1BC7C6810093270C /* Resources */ = { 363 | isa = PBXResourcesBuildPhase; 364 | buildActionMask = 2147483647; 365 | files = ( 366 | ); 367 | runOnlyForDeploymentPostprocessing = 0; 368 | }; 369 | 79AF25371BC7C6810093270C /* Resources */ = { 370 | isa = PBXResourcesBuildPhase; 371 | buildActionMask = 2147483647; 372 | files = ( 373 | ); 374 | runOnlyForDeploymentPostprocessing = 0; 375 | }; 376 | 79AF259D1BC7E5100093270C /* Resources */ = { 377 | isa = PBXResourcesBuildPhase; 378 | buildActionMask = 2147483647; 379 | files = ( 380 | ); 381 | runOnlyForDeploymentPostprocessing = 0; 382 | }; 383 | 79AF25A61BC7E5100093270C /* Resources */ = { 384 | isa = PBXResourcesBuildPhase; 385 | buildActionMask = 2147483647; 386 | files = ( 387 | ); 388 | runOnlyForDeploymentPostprocessing = 0; 389 | }; 390 | /* End PBXResourcesBuildPhase section */ 391 | 392 | /* Begin PBXSourcesBuildPhase section */ 393 | 793050DA1BD8DA990040127B /* Sources */ = { 394 | isa = PBXSourcesBuildPhase; 395 | buildActionMask = 2147483647; 396 | files = ( 397 | 793050F71BD8DAD90040127B /* NSException+Volkswagen.m in Sources */, 398 | ); 399 | runOnlyForDeploymentPostprocessing = 0; 400 | }; 401 | 793050E41BD8DA990040127B /* Sources */ = { 402 | isa = PBXSourcesBuildPhase; 403 | buildActionMask = 2147483647; 404 | files = ( 405 | 793050FB1BD8DAF70040127B /* SwiftVolkswagenTests.swift in Sources */, 406 | 793050FA1BD8DAF70040127B /* VolkswagenTests.m in Sources */, 407 | ); 408 | runOnlyForDeploymentPostprocessing = 0; 409 | }; 410 | 79AF252A1BC7C6810093270C /* Sources */ = { 411 | isa = PBXSourcesBuildPhase; 412 | buildActionMask = 2147483647; 413 | files = ( 414 | 79AF254C1BC7CA330093270C /* NSException+Volkswagen.m in Sources */, 415 | ); 416 | runOnlyForDeploymentPostprocessing = 0; 417 | }; 418 | 79AF25351BC7C6810093270C /* Sources */ = { 419 | isa = PBXSourcesBuildPhase; 420 | buildActionMask = 2147483647; 421 | files = ( 422 | 79AF25631BC7DF9B0093270C /* SwiftVolkswagenTests.swift in Sources */, 423 | 79AF253F1BC7C6810093270C /* VolkswagenTests.m in Sources */, 424 | ); 425 | runOnlyForDeploymentPostprocessing = 0; 426 | }; 427 | 79AF259A1BC7E5100093270C /* Sources */ = { 428 | isa = PBXSourcesBuildPhase; 429 | buildActionMask = 2147483647; 430 | files = ( 431 | 79AF25B91BC7E6F00093270C /* NSException+Volkswagen.m in Sources */, 432 | ); 433 | runOnlyForDeploymentPostprocessing = 0; 434 | }; 435 | 79AF25A41BC7E5100093270C /* Sources */ = { 436 | isa = PBXSourcesBuildPhase; 437 | buildActionMask = 2147483647; 438 | files = ( 439 | 79AF25B71BC7E61F0093270C /* SwiftVolkswagenTests.swift in Sources */, 440 | 79AF25B61BC7E61F0093270C /* VolkswagenTests.m in Sources */, 441 | ); 442 | runOnlyForDeploymentPostprocessing = 0; 443 | }; 444 | /* End PBXSourcesBuildPhase section */ 445 | 446 | /* Begin PBXTargetDependency section */ 447 | 793050EB1BD8DA990040127B /* PBXTargetDependency */ = { 448 | isa = PBXTargetDependency; 449 | target = 793050DE1BD8DA990040127B /* Volkswagen-tvOS */; 450 | targetProxy = 793050EA1BD8DA990040127B /* PBXContainerItemProxy */; 451 | }; 452 | 79AF253C1BC7C6810093270C /* PBXTargetDependency */ = { 453 | isa = PBXTargetDependency; 454 | target = 79AF252E1BC7C6810093270C /* Volkswagen-OSX */; 455 | targetProxy = 79AF253B1BC7C6810093270C /* PBXContainerItemProxy */; 456 | }; 457 | 79AF25AB1BC7E5100093270C /* PBXTargetDependency */ = { 458 | isa = PBXTargetDependency; 459 | target = 79AF259E1BC7E5100093270C /* Volkswagen-iOS */; 460 | targetProxy = 79AF25AA1BC7E5100093270C /* PBXContainerItemProxy */; 461 | }; 462 | /* End PBXTargetDependency section */ 463 | 464 | /* Begin XCBuildConfiguration section */ 465 | 793050F11BD8DA990040127B /* Debug */ = { 466 | isa = XCBuildConfiguration; 467 | buildSettings = { 468 | DEFINES_MODULE = YES; 469 | DYLIB_COMPATIBILITY_VERSION = 1; 470 | DYLIB_CURRENT_VERSION = 1; 471 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 472 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 473 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 474 | SDKROOT = appletvos; 475 | SKIP_INSTALL = YES; 476 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 477 | TARGETED_DEVICE_FAMILY = 3; 478 | TVOS_DEPLOYMENT_TARGET = 9.0; 479 | }; 480 | name = Debug; 481 | }; 482 | 793050F21BD8DA990040127B /* Release */ = { 483 | isa = XCBuildConfiguration; 484 | buildSettings = { 485 | DEFINES_MODULE = YES; 486 | DYLIB_COMPATIBILITY_VERSION = 1; 487 | DYLIB_CURRENT_VERSION = 1; 488 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 489 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 490 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 491 | SDKROOT = appletvos; 492 | SKIP_INSTALL = YES; 493 | TARGETED_DEVICE_FAMILY = 3; 494 | TVOS_DEPLOYMENT_TARGET = 9.0; 495 | VALIDATE_PRODUCT = YES; 496 | }; 497 | name = Release; 498 | }; 499 | 793050F41BD8DA990040127B /* Debug */ = { 500 | isa = XCBuildConfiguration; 501 | buildSettings = { 502 | INFOPLIST_FILE = Volkswagen/Info.plist; 503 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 504 | PRODUCT_BUNDLE_IDENTIFIER = "me.cezheng.Volkswagen-tvOSTests"; 505 | PRODUCT_NAME = "$(TARGET_NAME)"; 506 | SDKROOT = appletvos; 507 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 508 | TVOS_DEPLOYMENT_TARGET = 9.0; 509 | }; 510 | name = Debug; 511 | }; 512 | 793050F51BD8DA990040127B /* Release */ = { 513 | isa = XCBuildConfiguration; 514 | buildSettings = { 515 | INFOPLIST_FILE = Volkswagen/Info.plist; 516 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 517 | PRODUCT_BUNDLE_IDENTIFIER = "me.cezheng.Volkswagen-tvOSTests"; 518 | PRODUCT_NAME = "$(TARGET_NAME)"; 519 | SDKROOT = appletvos; 520 | TVOS_DEPLOYMENT_TARGET = 9.0; 521 | VALIDATE_PRODUCT = YES; 522 | }; 523 | name = Release; 524 | }; 525 | 79AF25411BC7C6810093270C /* Debug */ = { 526 | isa = XCBuildConfiguration; 527 | buildSettings = { 528 | ALWAYS_SEARCH_USER_PATHS = NO; 529 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 530 | CLANG_CXX_LIBRARY = "libc++"; 531 | CLANG_ENABLE_MODULES = YES; 532 | CLANG_ENABLE_OBJC_ARC = YES; 533 | CLANG_WARN_BOOL_CONVERSION = YES; 534 | CLANG_WARN_CONSTANT_CONVERSION = YES; 535 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 536 | CLANG_WARN_EMPTY_BODY = YES; 537 | CLANG_WARN_ENUM_CONVERSION = YES; 538 | CLANG_WARN_INT_CONVERSION = YES; 539 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 540 | CLANG_WARN_UNREACHABLE_CODE = YES; 541 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 542 | COPY_PHASE_STRIP = NO; 543 | CURRENT_PROJECT_VERSION = 1; 544 | DEBUG_INFORMATION_FORMAT = dwarf; 545 | ENABLE_STRICT_OBJC_MSGSEND = YES; 546 | ENABLE_TESTABILITY = YES; 547 | GCC_C_LANGUAGE_STANDARD = gnu99; 548 | GCC_DYNAMIC_NO_PIC = NO; 549 | GCC_NO_COMMON_BLOCKS = YES; 550 | GCC_OPTIMIZATION_LEVEL = 0; 551 | GCC_PREPROCESSOR_DEFINITIONS = ( 552 | "DEBUG=1", 553 | "$(inherited)", 554 | ); 555 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 556 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 557 | GCC_WARN_UNDECLARED_SELECTOR = YES; 558 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 559 | GCC_WARN_UNUSED_FUNCTION = YES; 560 | GCC_WARN_UNUSED_VARIABLE = YES; 561 | INFOPLIST_FILE = VolksWagen/Info.plist; 562 | MACOSX_DEPLOYMENT_TARGET = 10.10; 563 | MTL_ENABLE_DEBUG_INFO = YES; 564 | ONLY_ACTIVE_ARCH = YES; 565 | PRODUCT_BUNDLE_IDENTIFIER = me.cezheng.VolksWagen; 566 | PRODUCT_NAME = "$(PROJECT_NAME)"; 567 | SDKROOT = macosx; 568 | VERSIONING_SYSTEM = "apple-generic"; 569 | VERSION_INFO_PREFIX = ""; 570 | }; 571 | name = Debug; 572 | }; 573 | 79AF25421BC7C6810093270C /* Release */ = { 574 | isa = XCBuildConfiguration; 575 | buildSettings = { 576 | ALWAYS_SEARCH_USER_PATHS = NO; 577 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 578 | CLANG_CXX_LIBRARY = "libc++"; 579 | CLANG_ENABLE_MODULES = YES; 580 | CLANG_ENABLE_OBJC_ARC = YES; 581 | CLANG_WARN_BOOL_CONVERSION = YES; 582 | CLANG_WARN_CONSTANT_CONVERSION = YES; 583 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 584 | CLANG_WARN_EMPTY_BODY = YES; 585 | CLANG_WARN_ENUM_CONVERSION = YES; 586 | CLANG_WARN_INT_CONVERSION = YES; 587 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 588 | CLANG_WARN_UNREACHABLE_CODE = YES; 589 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 590 | COPY_PHASE_STRIP = NO; 591 | CURRENT_PROJECT_VERSION = 1; 592 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 593 | ENABLE_NS_ASSERTIONS = NO; 594 | ENABLE_STRICT_OBJC_MSGSEND = YES; 595 | GCC_C_LANGUAGE_STANDARD = gnu99; 596 | GCC_NO_COMMON_BLOCKS = YES; 597 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 598 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 599 | GCC_WARN_UNDECLARED_SELECTOR = YES; 600 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 601 | GCC_WARN_UNUSED_FUNCTION = YES; 602 | GCC_WARN_UNUSED_VARIABLE = YES; 603 | INFOPLIST_FILE = VolksWagen/Info.plist; 604 | MACOSX_DEPLOYMENT_TARGET = 10.10; 605 | MTL_ENABLE_DEBUG_INFO = NO; 606 | PRODUCT_BUNDLE_IDENTIFIER = me.cezheng.VolksWagen; 607 | PRODUCT_NAME = "$(PROJECT_NAME)"; 608 | SDKROOT = macosx; 609 | VERSIONING_SYSTEM = "apple-generic"; 610 | VERSION_INFO_PREFIX = ""; 611 | }; 612 | name = Release; 613 | }; 614 | 79AF25441BC7C6810093270C /* Debug */ = { 615 | isa = XCBuildConfiguration; 616 | buildSettings = { 617 | COMBINE_HIDPI_IMAGES = YES; 618 | DEFINES_MODULE = YES; 619 | DYLIB_COMPATIBILITY_VERSION = 1; 620 | DYLIB_CURRENT_VERSION = 1; 621 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 622 | FRAMEWORK_VERSION = A; 623 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 624 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks"; 625 | MACOSX_DEPLOYMENT_TARGET = 10.9; 626 | SKIP_INSTALL = YES; 627 | }; 628 | name = Debug; 629 | }; 630 | 79AF25451BC7C6810093270C /* Release */ = { 631 | isa = XCBuildConfiguration; 632 | buildSettings = { 633 | COMBINE_HIDPI_IMAGES = YES; 634 | DEFINES_MODULE = YES; 635 | DYLIB_COMPATIBILITY_VERSION = 1; 636 | DYLIB_CURRENT_VERSION = 1; 637 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 638 | FRAMEWORK_VERSION = A; 639 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 640 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks"; 641 | MACOSX_DEPLOYMENT_TARGET = 10.9; 642 | SKIP_INSTALL = YES; 643 | }; 644 | name = Release; 645 | }; 646 | 79AF25471BC7C6810093270C /* Debug */ = { 647 | isa = XCBuildConfiguration; 648 | buildSettings = { 649 | CLANG_ENABLE_MODULES = YES; 650 | COMBINE_HIDPI_IMAGES = YES; 651 | INFOPLIST_FILE = VolkswagenTests/Info.plist; 652 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 653 | PRODUCT_BUNDLE_IDENTIFIER = me.cezheng.VolkswagenTests; 654 | PRODUCT_NAME = "$(TARGET_NAME)"; 655 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 656 | }; 657 | name = Debug; 658 | }; 659 | 79AF25481BC7C6810093270C /* Release */ = { 660 | isa = XCBuildConfiguration; 661 | buildSettings = { 662 | CLANG_ENABLE_MODULES = YES; 663 | COMBINE_HIDPI_IMAGES = YES; 664 | INFOPLIST_FILE = VolkswagenTests/Info.plist; 665 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 666 | PRODUCT_BUNDLE_IDENTIFIER = me.cezheng.VolkswagenTests; 667 | PRODUCT_NAME = "$(TARGET_NAME)"; 668 | }; 669 | name = Release; 670 | }; 671 | 79AF25B11BC7E5100093270C /* Debug */ = { 672 | isa = XCBuildConfiguration; 673 | buildSettings = { 674 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 675 | DEFINES_MODULE = YES; 676 | DYLIB_COMPATIBILITY_VERSION = 1; 677 | DYLIB_CURRENT_VERSION = 1; 678 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 679 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 680 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 681 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 682 | SDKROOT = iphoneos; 683 | SKIP_INSTALL = YES; 684 | TARGETED_DEVICE_FAMILY = "1,2"; 685 | }; 686 | name = Debug; 687 | }; 688 | 79AF25B21BC7E5100093270C /* Release */ = { 689 | isa = XCBuildConfiguration; 690 | buildSettings = { 691 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 692 | DEFINES_MODULE = YES; 693 | DYLIB_COMPATIBILITY_VERSION = 1; 694 | DYLIB_CURRENT_VERSION = 1; 695 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 696 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 697 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 698 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 699 | SDKROOT = iphoneos; 700 | SKIP_INSTALL = YES; 701 | TARGETED_DEVICE_FAMILY = "1,2"; 702 | VALIDATE_PRODUCT = YES; 703 | }; 704 | name = Release; 705 | }; 706 | 79AF25B41BC7E5100093270C /* Debug */ = { 707 | isa = XCBuildConfiguration; 708 | buildSettings = { 709 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 710 | INFOPLIST_FILE = VolksWagenTests/Info.plist; 711 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 712 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 713 | PRODUCT_BUNDLE_IDENTIFIER = me.cezheng.VolksWagenTests; 714 | PRODUCT_NAME = "$(TARGET_NAME)"; 715 | SDKROOT = iphoneos; 716 | }; 717 | name = Debug; 718 | }; 719 | 79AF25B51BC7E5100093270C /* Release */ = { 720 | isa = XCBuildConfiguration; 721 | buildSettings = { 722 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 723 | INFOPLIST_FILE = VolksWagenTests/Info.plist; 724 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 725 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 726 | PRODUCT_BUNDLE_IDENTIFIER = me.cezheng.VolksWagenTests; 727 | PRODUCT_NAME = "$(TARGET_NAME)"; 728 | SDKROOT = iphoneos; 729 | VALIDATE_PRODUCT = YES; 730 | }; 731 | name = Release; 732 | }; 733 | /* End XCBuildConfiguration section */ 734 | 735 | /* Begin XCConfigurationList section */ 736 | 793050F01BD8DA990040127B /* Build configuration list for PBXNativeTarget "Volkswagen-tvOS" */ = { 737 | isa = XCConfigurationList; 738 | buildConfigurations = ( 739 | 793050F11BD8DA990040127B /* Debug */, 740 | 793050F21BD8DA990040127B /* Release */, 741 | ); 742 | defaultConfigurationIsVisible = 0; 743 | }; 744 | 793050F31BD8DA990040127B /* Build configuration list for PBXNativeTarget "Volkswagen-tvOSTests" */ = { 745 | isa = XCConfigurationList; 746 | buildConfigurations = ( 747 | 793050F41BD8DA990040127B /* Debug */, 748 | 793050F51BD8DA990040127B /* Release */, 749 | ); 750 | defaultConfigurationIsVisible = 0; 751 | }; 752 | 79AF25291BC7C6810093270C /* Build configuration list for PBXProject "Volkswagen" */ = { 753 | isa = XCConfigurationList; 754 | buildConfigurations = ( 755 | 79AF25411BC7C6810093270C /* Debug */, 756 | 79AF25421BC7C6810093270C /* Release */, 757 | ); 758 | defaultConfigurationIsVisible = 0; 759 | defaultConfigurationName = Release; 760 | }; 761 | 79AF25431BC7C6810093270C /* Build configuration list for PBXNativeTarget "Volkswagen-OSX" */ = { 762 | isa = XCConfigurationList; 763 | buildConfigurations = ( 764 | 79AF25441BC7C6810093270C /* Debug */, 765 | 79AF25451BC7C6810093270C /* Release */, 766 | ); 767 | defaultConfigurationIsVisible = 0; 768 | defaultConfigurationName = Release; 769 | }; 770 | 79AF25461BC7C6810093270C /* Build configuration list for PBXNativeTarget "Volkswagen-OSXTests" */ = { 771 | isa = XCConfigurationList; 772 | buildConfigurations = ( 773 | 79AF25471BC7C6810093270C /* Debug */, 774 | 79AF25481BC7C6810093270C /* Release */, 775 | ); 776 | defaultConfigurationIsVisible = 0; 777 | defaultConfigurationName = Release; 778 | }; 779 | 79AF25B01BC7E5100093270C /* Build configuration list for PBXNativeTarget "Volkswagen-iOS" */ = { 780 | isa = XCConfigurationList; 781 | buildConfigurations = ( 782 | 79AF25B11BC7E5100093270C /* Debug */, 783 | 79AF25B21BC7E5100093270C /* Release */, 784 | ); 785 | defaultConfigurationIsVisible = 0; 786 | defaultConfigurationName = Release; 787 | }; 788 | 79AF25B31BC7E5100093270C /* Build configuration list for PBXNativeTarget "Volkswagen-iOSTests" */ = { 789 | isa = XCConfigurationList; 790 | buildConfigurations = ( 791 | 79AF25B41BC7E5100093270C /* Debug */, 792 | 79AF25B51BC7E5100093270C /* Release */, 793 | ); 794 | defaultConfigurationIsVisible = 0; 795 | defaultConfigurationName = Release; 796 | }; 797 | /* End XCConfigurationList section */ 798 | }; 799 | rootObject = 79AF25261BC7C6810093270C /* Project object */; 800 | } 801 | -------------------------------------------------------------------------------- /Volkswagen.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Volkswagen.xcodeproj/xcshareddata/xcschemes/Volkswagen-OSX.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 | 64 | 65 | 71 | 72 | 73 | 74 | 75 | 76 | 82 | 83 | 89 | 90 | 91 | 92 | 94 | 95 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /Volkswagen.xcodeproj/xcshareddata/xcschemes/Volkswagen-iOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 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 | -------------------------------------------------------------------------------- /Volkswagen.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Volkswagen/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 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSHumanReadableCopyright 24 | Copyright © 2015 Ce Zheng. All rights reserved. 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Volkswagen/NSException+Volkswagen.m: -------------------------------------------------------------------------------- 1 | // NSException+Volkswagen.m 2 | // Copyright (c) 2015 Ce Zheng 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining a copy 5 | // of this software and associated documentation files (the "Software"), to deal 6 | // in the Software without restriction, including without limitation the rights 7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | // copies of the Software, and to permit persons to whom the Software is 9 | // furnished to do so, subject to the following conditions: 10 | // 11 | // The above copyright notice and this permission notice shall be included in 12 | // all copies or substantial portions of the Software. 13 | // 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | // THE SOFTWARE. 21 | 22 | #import 23 | #import 24 | 25 | @interface NSException (Volkswagen) 26 | @end 27 | 28 | #if TARGET_OS_SIMULATOR 29 | static BOOL is_in_ci() { 30 | NSString *tmpDir = @(getenv("TMPDIR")); 31 | // Travis CI 32 | if ([tmpDir hasPrefix:@"/Users/travis"]) { 33 | return true; 34 | } 35 | return false; 36 | } 37 | #else 38 | static BOOL is_in_ci() { 39 | return getenv("CI") 40 | || getenv("CONTINUOUS_INTEGRATION") 41 | || getenv("BUILD_ID") 42 | || getenv("BUILD_NUMBER") 43 | || getenv("TEAMCITY_VERSION") 44 | || getenv("TRAVIS") 45 | || getenv("CIRCLECI") 46 | || getenv("JENKINS_URL") 47 | || getenv("HUDSON_URL") 48 | || getenv("bamboo.buildKey") 49 | || getenv("PHPCI") 50 | || getenv("GOCD_SERVER_HOST") 51 | || getenv("BUILDKITE"); 52 | } 53 | #endif 54 | 55 | static void do_nothing() { 56 | 57 | } 58 | 59 | @implementation NSException (Volkswagen) 60 | + (void)load { 61 | static dispatch_once_t onceToken; 62 | dispatch_once(&onceToken, ^{ 63 | if (!is_in_ci()) { 64 | return; 65 | } 66 | 67 | // Ignore all NSExceptions 68 | Class selfClass = [self class]; 69 | Method raiseMethod = class_getInstanceMethod(selfClass, @selector(raise)); 70 | method_setImplementation(raiseMethod, &do_nothing); 71 | 72 | // Ignore all test failures 73 | Class testCaseClass = NSClassFromString(@"XCTestCase"); 74 | SEL recordFailureSel = sel_registerName("recordFailureWithDescription:inFile:atLine:expected:"); 75 | Method recordMethod = class_getInstanceMethod(testCaseClass, recordFailureSel); 76 | method_setImplementation(recordMethod, &do_nothing); 77 | }); 78 | } 79 | 80 | @end 81 | -------------------------------------------------------------------------------- /Volkswagen/Volkswagen.h: -------------------------------------------------------------------------------- 1 | // Volkswagen.h 2 | // Copyright (c) 2015 Ce Zheng 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining a copy 5 | // of this software and associated documentation files (the "Software"), to deal 6 | // in the Software without restriction, including without limitation the rights 7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | // copies of the Software, and to permit persons to whom the Software is 9 | // furnished to do so, subject to the following conditions: 10 | // 11 | // The above copyright notice and this permission notice shall be included in 12 | // all copies or substantial portions of the Software. 13 | // 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | // THE SOFTWARE. 21 | 22 | #import 23 | 24 | //! Project version number for Volkswagen. 25 | FOUNDATION_EXPORT double VolkswagenVersionNumber; 26 | 27 | //! Project version string for Volkswagen. 28 | FOUNDATION_EXPORT const unsigned char VolkswagenVersionString[]; 29 | 30 | // In this header, you should import all the public headers of your framework using statements like #import 31 | 32 | 33 | -------------------------------------------------------------------------------- /VolkswagenDemo/VolkswagenDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 79AF25711BC7E19E0093270C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79AF25701BC7E19E0093270C /* AppDelegate.swift */; }; 11 | 79AF25731BC7E19E0093270C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 79AF25721BC7E19E0093270C /* Assets.xcassets */; }; 12 | 79AF25761BC7E19E0093270C /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 79AF25741BC7E19E0093270C /* MainMenu.xib */; }; 13 | 79AF25811BC7E19E0093270C /* VolkswagenDemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79AF25801BC7E19E0093270C /* VolkswagenDemoTests.swift */; }; 14 | 79AF258C1BC7E21A0093270C /* Volkswagen.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 79AF258B1BC7E21A0093270C /* Volkswagen.framework */; }; 15 | /* End PBXBuildFile section */ 16 | 17 | /* Begin PBXContainerItemProxy section */ 18 | 79AF257D1BC7E19E0093270C /* PBXContainerItemProxy */ = { 19 | isa = PBXContainerItemProxy; 20 | containerPortal = 79AF25651BC7E19E0093270C /* Project object */; 21 | proxyType = 1; 22 | remoteGlobalIDString = 79AF256C1BC7E19E0093270C; 23 | remoteInfo = VolkswagenDemo; 24 | }; 25 | /* End PBXContainerItemProxy section */ 26 | 27 | /* Begin PBXFileReference section */ 28 | 79AF256D1BC7E19E0093270C /* VolkswagenDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = VolkswagenDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | 79AF25701BC7E19E0093270C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 30 | 79AF25721BC7E19E0093270C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 31 | 79AF25751BC7E19E0093270C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; 32 | 79AF25771BC7E19E0093270C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 33 | 79AF257C1BC7E19E0093270C /* VolkswagenDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = VolkswagenDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 79AF25801BC7E19E0093270C /* VolkswagenDemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VolkswagenDemoTests.swift; sourceTree = ""; }; 35 | 79AF25821BC7E19E0093270C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | 79AF258B1BC7E21A0093270C /* Volkswagen.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Volkswagen.framework; path = ../build/Debug/Volkswagen.framework; sourceTree = ""; }; 37 | /* End PBXFileReference section */ 38 | 39 | /* Begin PBXFrameworksBuildPhase section */ 40 | 79AF256A1BC7E19E0093270C /* Frameworks */ = { 41 | isa = PBXFrameworksBuildPhase; 42 | buildActionMask = 2147483647; 43 | files = ( 44 | ); 45 | runOnlyForDeploymentPostprocessing = 0; 46 | }; 47 | 79AF25791BC7E19E0093270C /* Frameworks */ = { 48 | isa = PBXFrameworksBuildPhase; 49 | buildActionMask = 2147483647; 50 | files = ( 51 | 79AF258C1BC7E21A0093270C /* Volkswagen.framework in Frameworks */, 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 79AF25641BC7E19E0093270C = { 59 | isa = PBXGroup; 60 | children = ( 61 | 79AF258B1BC7E21A0093270C /* Volkswagen.framework */, 62 | 79AF256F1BC7E19E0093270C /* VolkswagenDemo */, 63 | 79AF257F1BC7E19E0093270C /* VolkswagenDemoTests */, 64 | 79AF256E1BC7E19E0093270C /* Products */, 65 | ); 66 | sourceTree = ""; 67 | }; 68 | 79AF256E1BC7E19E0093270C /* Products */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 79AF256D1BC7E19E0093270C /* VolkswagenDemo.app */, 72 | 79AF257C1BC7E19E0093270C /* VolkswagenDemoTests.xctest */, 73 | ); 74 | name = Products; 75 | sourceTree = ""; 76 | }; 77 | 79AF256F1BC7E19E0093270C /* VolkswagenDemo */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 79AF25701BC7E19E0093270C /* AppDelegate.swift */, 81 | 79AF25721BC7E19E0093270C /* Assets.xcassets */, 82 | 79AF25741BC7E19E0093270C /* MainMenu.xib */, 83 | 79AF25771BC7E19E0093270C /* Info.plist */, 84 | ); 85 | path = VolkswagenDemo; 86 | sourceTree = ""; 87 | }; 88 | 79AF257F1BC7E19E0093270C /* VolkswagenDemoTests */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | 79AF25801BC7E19E0093270C /* VolkswagenDemoTests.swift */, 92 | 79AF25821BC7E19E0093270C /* Info.plist */, 93 | ); 94 | path = VolkswagenDemoTests; 95 | sourceTree = ""; 96 | }; 97 | /* End PBXGroup section */ 98 | 99 | /* Begin PBXNativeTarget section */ 100 | 79AF256C1BC7E19E0093270C /* VolkswagenDemo */ = { 101 | isa = PBXNativeTarget; 102 | buildConfigurationList = 79AF25851BC7E19E0093270C /* Build configuration list for PBXNativeTarget "VolkswagenDemo" */; 103 | buildPhases = ( 104 | 79AF25691BC7E19E0093270C /* Sources */, 105 | 79AF256A1BC7E19E0093270C /* Frameworks */, 106 | 79AF256B1BC7E19E0093270C /* Resources */, 107 | ); 108 | buildRules = ( 109 | ); 110 | dependencies = ( 111 | ); 112 | name = VolkswagenDemo; 113 | productName = VolkswagenDemo; 114 | productReference = 79AF256D1BC7E19E0093270C /* VolkswagenDemo.app */; 115 | productType = "com.apple.product-type.application"; 116 | }; 117 | 79AF257B1BC7E19E0093270C /* VolkswagenDemoTests */ = { 118 | isa = PBXNativeTarget; 119 | buildConfigurationList = 79AF25881BC7E19E0093270C /* Build configuration list for PBXNativeTarget "VolkswagenDemoTests" */; 120 | buildPhases = ( 121 | 79AF25781BC7E19E0093270C /* Sources */, 122 | 79AF25791BC7E19E0093270C /* Frameworks */, 123 | 79AF257A1BC7E19E0093270C /* Resources */, 124 | ); 125 | buildRules = ( 126 | ); 127 | dependencies = ( 128 | 79AF257E1BC7E19E0093270C /* PBXTargetDependency */, 129 | ); 130 | name = VolkswagenDemoTests; 131 | productName = VolkswagenDemoTests; 132 | productReference = 79AF257C1BC7E19E0093270C /* VolkswagenDemoTests.xctest */; 133 | productType = "com.apple.product-type.bundle.unit-test"; 134 | }; 135 | /* End PBXNativeTarget section */ 136 | 137 | /* Begin PBXProject section */ 138 | 79AF25651BC7E19E0093270C /* Project object */ = { 139 | isa = PBXProject; 140 | attributes = { 141 | LastUpgradeCheck = 0700; 142 | ORGANIZATIONNAME = "Ce Zheng"; 143 | TargetAttributes = { 144 | 79AF256C1BC7E19E0093270C = { 145 | CreatedOnToolsVersion = 7.0; 146 | }; 147 | 79AF257B1BC7E19E0093270C = { 148 | CreatedOnToolsVersion = 7.0; 149 | TestTargetID = 79AF256C1BC7E19E0093270C; 150 | }; 151 | }; 152 | }; 153 | buildConfigurationList = 79AF25681BC7E19E0093270C /* Build configuration list for PBXProject "VolkswagenDemo" */; 154 | compatibilityVersion = "Xcode 3.2"; 155 | developmentRegion = English; 156 | hasScannedForEncodings = 0; 157 | knownRegions = ( 158 | en, 159 | Base, 160 | ); 161 | mainGroup = 79AF25641BC7E19E0093270C; 162 | productRefGroup = 79AF256E1BC7E19E0093270C /* Products */; 163 | projectDirPath = ""; 164 | projectRoot = ""; 165 | targets = ( 166 | 79AF256C1BC7E19E0093270C /* VolkswagenDemo */, 167 | 79AF257B1BC7E19E0093270C /* VolkswagenDemoTests */, 168 | ); 169 | }; 170 | /* End PBXProject section */ 171 | 172 | /* Begin PBXResourcesBuildPhase section */ 173 | 79AF256B1BC7E19E0093270C /* Resources */ = { 174 | isa = PBXResourcesBuildPhase; 175 | buildActionMask = 2147483647; 176 | files = ( 177 | 79AF25731BC7E19E0093270C /* Assets.xcassets in Resources */, 178 | 79AF25761BC7E19E0093270C /* MainMenu.xib in Resources */, 179 | ); 180 | runOnlyForDeploymentPostprocessing = 0; 181 | }; 182 | 79AF257A1BC7E19E0093270C /* Resources */ = { 183 | isa = PBXResourcesBuildPhase; 184 | buildActionMask = 2147483647; 185 | files = ( 186 | ); 187 | runOnlyForDeploymentPostprocessing = 0; 188 | }; 189 | /* End PBXResourcesBuildPhase section */ 190 | 191 | /* Begin PBXSourcesBuildPhase section */ 192 | 79AF25691BC7E19E0093270C /* Sources */ = { 193 | isa = PBXSourcesBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | 79AF25711BC7E19E0093270C /* AppDelegate.swift in Sources */, 197 | ); 198 | runOnlyForDeploymentPostprocessing = 0; 199 | }; 200 | 79AF25781BC7E19E0093270C /* Sources */ = { 201 | isa = PBXSourcesBuildPhase; 202 | buildActionMask = 2147483647; 203 | files = ( 204 | 79AF25811BC7E19E0093270C /* VolkswagenDemoTests.swift in Sources */, 205 | ); 206 | runOnlyForDeploymentPostprocessing = 0; 207 | }; 208 | /* End PBXSourcesBuildPhase section */ 209 | 210 | /* Begin PBXTargetDependency section */ 211 | 79AF257E1BC7E19E0093270C /* PBXTargetDependency */ = { 212 | isa = PBXTargetDependency; 213 | target = 79AF256C1BC7E19E0093270C /* VolkswagenDemo */; 214 | targetProxy = 79AF257D1BC7E19E0093270C /* PBXContainerItemProxy */; 215 | }; 216 | /* End PBXTargetDependency section */ 217 | 218 | /* Begin PBXVariantGroup section */ 219 | 79AF25741BC7E19E0093270C /* MainMenu.xib */ = { 220 | isa = PBXVariantGroup; 221 | children = ( 222 | 79AF25751BC7E19E0093270C /* Base */, 223 | ); 224 | name = MainMenu.xib; 225 | sourceTree = ""; 226 | }; 227 | /* End PBXVariantGroup section */ 228 | 229 | /* Begin XCBuildConfiguration section */ 230 | 79AF25831BC7E19E0093270C /* Debug */ = { 231 | isa = XCBuildConfiguration; 232 | buildSettings = { 233 | ALWAYS_SEARCH_USER_PATHS = NO; 234 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 235 | CLANG_CXX_LIBRARY = "libc++"; 236 | CLANG_ENABLE_MODULES = YES; 237 | CLANG_ENABLE_OBJC_ARC = YES; 238 | CLANG_WARN_BOOL_CONVERSION = YES; 239 | CLANG_WARN_CONSTANT_CONVERSION = YES; 240 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 241 | CLANG_WARN_EMPTY_BODY = YES; 242 | CLANG_WARN_ENUM_CONVERSION = YES; 243 | CLANG_WARN_INT_CONVERSION = YES; 244 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 245 | CLANG_WARN_UNREACHABLE_CODE = YES; 246 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 247 | CODE_SIGN_IDENTITY = "-"; 248 | COPY_PHASE_STRIP = NO; 249 | DEBUG_INFORMATION_FORMAT = dwarf; 250 | ENABLE_STRICT_OBJC_MSGSEND = YES; 251 | ENABLE_TESTABILITY = YES; 252 | GCC_C_LANGUAGE_STANDARD = gnu99; 253 | GCC_DYNAMIC_NO_PIC = NO; 254 | GCC_NO_COMMON_BLOCKS = YES; 255 | GCC_OPTIMIZATION_LEVEL = 0; 256 | GCC_PREPROCESSOR_DEFINITIONS = ( 257 | "DEBUG=1", 258 | "$(inherited)", 259 | ); 260 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 261 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 262 | GCC_WARN_UNDECLARED_SELECTOR = YES; 263 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 264 | GCC_WARN_UNUSED_FUNCTION = YES; 265 | GCC_WARN_UNUSED_VARIABLE = YES; 266 | MACOSX_DEPLOYMENT_TARGET = 10.10; 267 | MTL_ENABLE_DEBUG_INFO = YES; 268 | ONLY_ACTIVE_ARCH = YES; 269 | SDKROOT = macosx; 270 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 271 | }; 272 | name = Debug; 273 | }; 274 | 79AF25841BC7E19E0093270C /* Release */ = { 275 | isa = XCBuildConfiguration; 276 | buildSettings = { 277 | ALWAYS_SEARCH_USER_PATHS = NO; 278 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 279 | CLANG_CXX_LIBRARY = "libc++"; 280 | CLANG_ENABLE_MODULES = YES; 281 | CLANG_ENABLE_OBJC_ARC = YES; 282 | CLANG_WARN_BOOL_CONVERSION = YES; 283 | CLANG_WARN_CONSTANT_CONVERSION = YES; 284 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 285 | CLANG_WARN_EMPTY_BODY = YES; 286 | CLANG_WARN_ENUM_CONVERSION = YES; 287 | CLANG_WARN_INT_CONVERSION = YES; 288 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 289 | CLANG_WARN_UNREACHABLE_CODE = YES; 290 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 291 | CODE_SIGN_IDENTITY = "-"; 292 | COPY_PHASE_STRIP = NO; 293 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 294 | ENABLE_NS_ASSERTIONS = NO; 295 | ENABLE_STRICT_OBJC_MSGSEND = YES; 296 | GCC_C_LANGUAGE_STANDARD = gnu99; 297 | GCC_NO_COMMON_BLOCKS = YES; 298 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 299 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 300 | GCC_WARN_UNDECLARED_SELECTOR = YES; 301 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 302 | GCC_WARN_UNUSED_FUNCTION = YES; 303 | GCC_WARN_UNUSED_VARIABLE = YES; 304 | MACOSX_DEPLOYMENT_TARGET = 10.10; 305 | MTL_ENABLE_DEBUG_INFO = NO; 306 | SDKROOT = macosx; 307 | }; 308 | name = Release; 309 | }; 310 | 79AF25861BC7E19E0093270C /* Debug */ = { 311 | isa = XCBuildConfiguration; 312 | buildSettings = { 313 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 314 | COMBINE_HIDPI_IMAGES = YES; 315 | INFOPLIST_FILE = VolkswagenDemo/Info.plist; 316 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 317 | PRODUCT_BUNDLE_IDENTIFIER = me.cezheng.VolkswagenDemo; 318 | PRODUCT_NAME = "$(TARGET_NAME)"; 319 | }; 320 | name = Debug; 321 | }; 322 | 79AF25871BC7E19E0093270C /* Release */ = { 323 | isa = XCBuildConfiguration; 324 | buildSettings = { 325 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 326 | COMBINE_HIDPI_IMAGES = YES; 327 | INFOPLIST_FILE = VolkswagenDemo/Info.plist; 328 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 329 | PRODUCT_BUNDLE_IDENTIFIER = me.cezheng.VolkswagenDemo; 330 | PRODUCT_NAME = "$(TARGET_NAME)"; 331 | }; 332 | name = Release; 333 | }; 334 | 79AF25891BC7E19E0093270C /* Debug */ = { 335 | isa = XCBuildConfiguration; 336 | buildSettings = { 337 | BUNDLE_LOADER = "$(TEST_HOST)"; 338 | COMBINE_HIDPI_IMAGES = YES; 339 | INFOPLIST_FILE = VolkswagenDemoTests/Info.plist; 340 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 341 | PRODUCT_BUNDLE_IDENTIFIER = me.cezheng.VolkswagenDemoTests; 342 | PRODUCT_NAME = "$(TARGET_NAME)"; 343 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/VolkswagenDemo.app/Contents/MacOS/VolkswagenDemo"; 344 | }; 345 | name = Debug; 346 | }; 347 | 79AF258A1BC7E19E0093270C /* Release */ = { 348 | isa = XCBuildConfiguration; 349 | buildSettings = { 350 | BUNDLE_LOADER = "$(TEST_HOST)"; 351 | COMBINE_HIDPI_IMAGES = YES; 352 | INFOPLIST_FILE = VolkswagenDemoTests/Info.plist; 353 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 354 | PRODUCT_BUNDLE_IDENTIFIER = me.cezheng.VolkswagenDemoTests; 355 | PRODUCT_NAME = "$(TARGET_NAME)"; 356 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/VolkswagenDemo.app/Contents/MacOS/VolkswagenDemo"; 357 | }; 358 | name = Release; 359 | }; 360 | /* End XCBuildConfiguration section */ 361 | 362 | /* Begin XCConfigurationList section */ 363 | 79AF25681BC7E19E0093270C /* Build configuration list for PBXProject "VolkswagenDemo" */ = { 364 | isa = XCConfigurationList; 365 | buildConfigurations = ( 366 | 79AF25831BC7E19E0093270C /* Debug */, 367 | 79AF25841BC7E19E0093270C /* Release */, 368 | ); 369 | defaultConfigurationIsVisible = 0; 370 | defaultConfigurationName = Release; 371 | }; 372 | 79AF25851BC7E19E0093270C /* Build configuration list for PBXNativeTarget "VolkswagenDemo" */ = { 373 | isa = XCConfigurationList; 374 | buildConfigurations = ( 375 | 79AF25861BC7E19E0093270C /* Debug */, 376 | 79AF25871BC7E19E0093270C /* Release */, 377 | ); 378 | defaultConfigurationIsVisible = 0; 379 | defaultConfigurationName = Release; 380 | }; 381 | 79AF25881BC7E19E0093270C /* Build configuration list for PBXNativeTarget "VolkswagenDemoTests" */ = { 382 | isa = XCConfigurationList; 383 | buildConfigurations = ( 384 | 79AF25891BC7E19E0093270C /* Debug */, 385 | 79AF258A1BC7E19E0093270C /* Release */, 386 | ); 387 | defaultConfigurationIsVisible = 0; 388 | defaultConfigurationName = Release; 389 | }; 390 | /* End XCConfigurationList section */ 391 | }; 392 | rootObject = 79AF25651BC7E19E0093270C /* Project object */; 393 | } 394 | -------------------------------------------------------------------------------- /VolkswagenDemo/VolkswagenDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /VolkswagenDemo/VolkswagenDemo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // AppDelegate.swift 2 | // Copyright (c) 2015 Ce Zheng 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining a copy 5 | // of this software and associated documentation files (the "Software"), to deal 6 | // in the Software without restriction, including without limitation the rights 7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | // copies of the Software, and to permit persons to whom the Software is 9 | // furnished to do so, subject to the following conditions: 10 | // 11 | // The above copyright notice and this permission notice shall be included in 12 | // all copies or substantial portions of the Software. 13 | // 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | // THE SOFTWARE. 21 | 22 | import Cocoa 23 | 24 | @NSApplicationMain 25 | class AppDelegate: NSObject, NSApplicationDelegate { 26 | 27 | @IBOutlet weak var window: NSWindow! 28 | 29 | func applicationDidFinishLaunching(aNotification: NSNotification) { 30 | 31 | } 32 | 33 | func applicationWillTerminate(aNotification: NSNotification) { 34 | 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /VolkswagenDemo/VolkswagenDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "size" : "16x16", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "size" : "16x16", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "size" : "32x32", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "size" : "32x32", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "size" : "128x128", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "size" : "128x128", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "size" : "256x256", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "size" : "256x256", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "size" : "512x512", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "size" : "512x512", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /VolkswagenDemo/VolkswagenDemo/Base.lproj/MainMenu.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 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 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 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | Default 539 | 540 | 541 | 542 | 543 | 544 | 545 | Left to Right 546 | 547 | 548 | 549 | 550 | 551 | 552 | Right to Left 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | Default 564 | 565 | 566 | 567 | 568 | 569 | 570 | Left to Right 571 | 572 | 573 | 574 | 575 | 576 | 577 | Right to Left 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | -------------------------------------------------------------------------------- /VolkswagenDemo/VolkswagenDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSMinimumSystemVersion 26 | $(MACOSX_DEPLOYMENT_TARGET) 27 | NSHumanReadableCopyright 28 | Copyright © 2015 Ce Zheng. All rights reserved. 29 | NSMainNibFile 30 | MainMenu 31 | NSPrincipalClass 32 | NSApplication 33 | 34 | 35 | -------------------------------------------------------------------------------- /VolkswagenDemo/VolkswagenDemoTests/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 | -------------------------------------------------------------------------------- /VolkswagenDemo/VolkswagenDemoTests/VolkswagenDemoTests.swift: -------------------------------------------------------------------------------- 1 | // VolkswagenDemoTests.swift 2 | // Copyright (c) 2015 Ce Zheng 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining a copy 5 | // of this software and associated documentation files (the "Software"), to deal 6 | // in the Software without restriction, including without limitation the rights 7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | // copies of the Software, and to permit persons to whom the Software is 9 | // furnished to do so, subject to the following conditions: 10 | // 11 | // The above copyright notice and this permission notice shall be included in 12 | // all copies or substantial portions of the Software. 13 | // 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | // THE SOFTWARE. 21 | 22 | import XCTest 23 | @testable import VolkswagenDemo 24 | 25 | class VolkswagenDemoTests: XCTestCase { 26 | 27 | func testFail() { 28 | XCTFail(); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /VolkswagenTests/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 | -------------------------------------------------------------------------------- /VolkswagenTests/SwiftVolkswagenTests.swift: -------------------------------------------------------------------------------- 1 | // SwiftVolkswagenTests.swift 2 | // Copyright (c) 2015 Ce Zheng 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining a copy 5 | // of this software and associated documentation files (the "Software"), to deal 6 | // in the Software without restriction, including without limitation the rights 7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | // copies of the Software, and to permit persons to whom the Software is 9 | // furnished to do so, subject to the following conditions: 10 | // 11 | // The above copyright notice and this permission notice shall be included in 12 | // all copies or substantial portions of the Software. 13 | // 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | // THE SOFTWARE. 21 | 22 | import XCTest 23 | 24 | class SwiftVolkswagenTests: XCTestCase { 25 | func testFail() { 26 | XCTFail(); 27 | } 28 | 29 | func testAssert() { 30 | XCTAssert(false); 31 | } 32 | 33 | func testAssertTrue() { 34 | XCTAssertTrue(false); 35 | } 36 | 37 | func testAssertFalse () { 38 | XCTAssertFalse(true); 39 | } 40 | 41 | func testAssertEqual () { 42 | XCTAssertEqual(1, 2); 43 | } 44 | 45 | func testAssertNotEqual() { 46 | XCTAssertNotEqual(1, 1); 47 | } 48 | 49 | func testAssertNil () { 50 | XCTAssertNil(""); 51 | } 52 | 53 | func testAssertNotNil () { 54 | let obj: AnyObject? = nil 55 | XCTAssertNotNil(obj); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /VolkswagenTests/VolkswagenTests.m: -------------------------------------------------------------------------------- 1 | // VolkswagenTests.m 2 | // Copyright (c) 2015 Ce Zheng 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining a copy 5 | // of this software and associated documentation files (the "Software"), to deal 6 | // in the Software without restriction, including without limitation the rights 7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | // copies of the Software, and to permit persons to whom the Software is 9 | // furnished to do so, subject to the following conditions: 10 | // 11 | // The above copyright notice and this permission notice shall be included in 12 | // all copies or substantial portions of the Software. 13 | // 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | // THE SOFTWARE. 21 | 22 | #import 23 | 24 | @interface VolkswagenTests : XCTestCase 25 | 26 | @end 27 | 28 | @implementation VolkswagenTests 29 | 30 | - (void)testFail { 31 | XCTFail(); 32 | } 33 | 34 | - (void)testAssert { 35 | XCTAssert(NO); 36 | } 37 | 38 | - (void)testAssertTrue { 39 | XCTAssertTrue(NO); 40 | } 41 | 42 | - (void)testAssertFalse { 43 | XCTAssertFalse(YES); 44 | } 45 | 46 | - (void)testAssertEqual { 47 | XCTAssertEqual(1, 2); 48 | } 49 | 50 | - (void)testAssertNotEqual { 51 | XCTAssertNotEqual(1, 1); 52 | } 53 | 54 | - (void)testAssertEqualObjects { 55 | XCTAssertEqualObjects(nil, [NSString new]); 56 | } 57 | 58 | - (void)testAssertNotEqualObjects { 59 | NSString *obj = [NSString new]; 60 | XCTAssertNotEqualObjects(obj, obj); 61 | } 62 | 63 | - (void)testAssertNil { 64 | XCTAssertNil([NSString new]); 65 | } 66 | 67 | - (void)testAssertNotNil { 68 | XCTAssertNotNil(nil); 69 | } 70 | 71 | @end 72 | --------------------------------------------------------------------------------