├── CustomSimulatorsExample.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── ginowu.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── ginowu.xcuserdatad │ └── xcschemes │ ├── CustomSimulatorsExample.xcscheme │ └── xcschememanagement.plist ├── CustomSimulatorsExample ├── AppDelegate.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist └── ViewController.swift ├── CustomSimulatorsExampleTests ├── CustomSimulatorsExampleTests.swift └── Info.plist ├── CustomSimulatorsExampleUITests ├── CustomSimulatorsExampleUITests.swift └── Info.plist ├── MultiSimConfig.txt ├── README.md └── launch_multiple_simulators.sh /CustomSimulatorsExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 7D29B5FC201CF41200B63DBF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7D29B5FB201CF41200B63DBF /* AppDelegate.swift */; }; 11 | 7D29B5FE201CF41200B63DBF /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7D29B5FD201CF41200B63DBF /* ViewController.swift */; }; 12 | 7D29B601201CF41200B63DBF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7D29B5FF201CF41200B63DBF /* Main.storyboard */; }; 13 | 7D29B603201CF41200B63DBF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7D29B602201CF41200B63DBF /* Assets.xcassets */; }; 14 | 7D29B606201CF41200B63DBF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7D29B604201CF41200B63DBF /* LaunchScreen.storyboard */; }; 15 | 7D29B611201CF41200B63DBF /* CustomSimulatorsExampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7D29B610201CF41200B63DBF /* CustomSimulatorsExampleTests.swift */; }; 16 | 7D29B61C201CF41200B63DBF /* CustomSimulatorsExampleUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7D29B61B201CF41200B63DBF /* CustomSimulatorsExampleUITests.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 7D29B60D201CF41200B63DBF /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 7D29B5F0201CF41200B63DBF /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 7D29B5F7201CF41200B63DBF; 25 | remoteInfo = CustomSimulatorsExample; 26 | }; 27 | 7D29B618201CF41200B63DBF /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = 7D29B5F0201CF41200B63DBF /* Project object */; 30 | proxyType = 1; 31 | remoteGlobalIDString = 7D29B5F7201CF41200B63DBF; 32 | remoteInfo = CustomSimulatorsExample; 33 | }; 34 | /* End PBXContainerItemProxy section */ 35 | 36 | /* Begin PBXFileReference section */ 37 | 7D29B5F8201CF41200B63DBF /* CustomSimulatorsExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CustomSimulatorsExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | 7D29B5FB201CF41200B63DBF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 39 | 7D29B5FD201CF41200B63DBF /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 40 | 7D29B600201CF41200B63DBF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 41 | 7D29B602201CF41200B63DBF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 42 | 7D29B605201CF41200B63DBF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 43 | 7D29B607201CF41200B63DBF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 7D29B60C201CF41200B63DBF /* CustomSimulatorsExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CustomSimulatorsExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 7D29B610201CF41200B63DBF /* CustomSimulatorsExampleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomSimulatorsExampleTests.swift; sourceTree = ""; }; 46 | 7D29B612201CF41200B63DBF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | 7D29B617201CF41200B63DBF /* CustomSimulatorsExampleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CustomSimulatorsExampleUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 7D29B61B201CF41200B63DBF /* CustomSimulatorsExampleUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomSimulatorsExampleUITests.swift; sourceTree = ""; }; 49 | 7D29B61D201CF41200B63DBF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 7D29B5F5201CF41200B63DBF /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | ); 58 | runOnlyForDeploymentPostprocessing = 0; 59 | }; 60 | 7D29B609201CF41200B63DBF /* Frameworks */ = { 61 | isa = PBXFrameworksBuildPhase; 62 | buildActionMask = 2147483647; 63 | files = ( 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | 7D29B614201CF41200B63DBF /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | /* End PBXFrameworksBuildPhase section */ 75 | 76 | /* Begin PBXGroup section */ 77 | 7D29B5EF201CF41200B63DBF = { 78 | isa = PBXGroup; 79 | children = ( 80 | 7D29B5FA201CF41200B63DBF /* CustomSimulatorsExample */, 81 | 7D29B60F201CF41200B63DBF /* CustomSimulatorsExampleTests */, 82 | 7D29B61A201CF41200B63DBF /* CustomSimulatorsExampleUITests */, 83 | 7D29B5F9201CF41200B63DBF /* Products */, 84 | ); 85 | sourceTree = ""; 86 | }; 87 | 7D29B5F9201CF41200B63DBF /* Products */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | 7D29B5F8201CF41200B63DBF /* CustomSimulatorsExample.app */, 91 | 7D29B60C201CF41200B63DBF /* CustomSimulatorsExampleTests.xctest */, 92 | 7D29B617201CF41200B63DBF /* CustomSimulatorsExampleUITests.xctest */, 93 | ); 94 | name = Products; 95 | sourceTree = ""; 96 | }; 97 | 7D29B5FA201CF41200B63DBF /* CustomSimulatorsExample */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 7D29B5FB201CF41200B63DBF /* AppDelegate.swift */, 101 | 7D29B5FD201CF41200B63DBF /* ViewController.swift */, 102 | 7D29B5FF201CF41200B63DBF /* Main.storyboard */, 103 | 7D29B602201CF41200B63DBF /* Assets.xcassets */, 104 | 7D29B604201CF41200B63DBF /* LaunchScreen.storyboard */, 105 | 7D29B607201CF41200B63DBF /* Info.plist */, 106 | ); 107 | path = CustomSimulatorsExample; 108 | sourceTree = ""; 109 | }; 110 | 7D29B60F201CF41200B63DBF /* CustomSimulatorsExampleTests */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 7D29B610201CF41200B63DBF /* CustomSimulatorsExampleTests.swift */, 114 | 7D29B612201CF41200B63DBF /* Info.plist */, 115 | ); 116 | path = CustomSimulatorsExampleTests; 117 | sourceTree = ""; 118 | }; 119 | 7D29B61A201CF41200B63DBF /* CustomSimulatorsExampleUITests */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 7D29B61B201CF41200B63DBF /* CustomSimulatorsExampleUITests.swift */, 123 | 7D29B61D201CF41200B63DBF /* Info.plist */, 124 | ); 125 | path = CustomSimulatorsExampleUITests; 126 | sourceTree = ""; 127 | }; 128 | /* End PBXGroup section */ 129 | 130 | /* Begin PBXNativeTarget section */ 131 | 7D29B5F7201CF41200B63DBF /* CustomSimulatorsExample */ = { 132 | isa = PBXNativeTarget; 133 | buildConfigurationList = 7D29B620201CF41200B63DBF /* Build configuration list for PBXNativeTarget "CustomSimulatorsExample" */; 134 | buildPhases = ( 135 | 7D29B5F4201CF41200B63DBF /* Sources */, 136 | 7D29B5F5201CF41200B63DBF /* Frameworks */, 137 | 7D29B5F6201CF41200B63DBF /* Resources */, 138 | 7D29B629201CF49700B63DBF /* ShellScript */, 139 | ); 140 | buildRules = ( 141 | ); 142 | dependencies = ( 143 | ); 144 | name = CustomSimulatorsExample; 145 | productName = CustomSimulatorsExample; 146 | productReference = 7D29B5F8201CF41200B63DBF /* CustomSimulatorsExample.app */; 147 | productType = "com.apple.product-type.application"; 148 | }; 149 | 7D29B60B201CF41200B63DBF /* CustomSimulatorsExampleTests */ = { 150 | isa = PBXNativeTarget; 151 | buildConfigurationList = 7D29B623201CF41200B63DBF /* Build configuration list for PBXNativeTarget "CustomSimulatorsExampleTests" */; 152 | buildPhases = ( 153 | 7D29B608201CF41200B63DBF /* Sources */, 154 | 7D29B609201CF41200B63DBF /* Frameworks */, 155 | 7D29B60A201CF41200B63DBF /* Resources */, 156 | ); 157 | buildRules = ( 158 | ); 159 | dependencies = ( 160 | 7D29B60E201CF41200B63DBF /* PBXTargetDependency */, 161 | ); 162 | name = CustomSimulatorsExampleTests; 163 | productName = CustomSimulatorsExampleTests; 164 | productReference = 7D29B60C201CF41200B63DBF /* CustomSimulatorsExampleTests.xctest */; 165 | productType = "com.apple.product-type.bundle.unit-test"; 166 | }; 167 | 7D29B616201CF41200B63DBF /* CustomSimulatorsExampleUITests */ = { 168 | isa = PBXNativeTarget; 169 | buildConfigurationList = 7D29B626201CF41200B63DBF /* Build configuration list for PBXNativeTarget "CustomSimulatorsExampleUITests" */; 170 | buildPhases = ( 171 | 7D29B613201CF41200B63DBF /* Sources */, 172 | 7D29B614201CF41200B63DBF /* Frameworks */, 173 | 7D29B615201CF41200B63DBF /* Resources */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | 7D29B619201CF41200B63DBF /* PBXTargetDependency */, 179 | ); 180 | name = CustomSimulatorsExampleUITests; 181 | productName = CustomSimulatorsExampleUITests; 182 | productReference = 7D29B617201CF41200B63DBF /* CustomSimulatorsExampleUITests.xctest */; 183 | productType = "com.apple.product-type.bundle.ui-testing"; 184 | }; 185 | /* End PBXNativeTarget section */ 186 | 187 | /* Begin PBXProject section */ 188 | 7D29B5F0201CF41200B63DBF /* Project object */ = { 189 | isa = PBXProject; 190 | attributes = { 191 | LastSwiftUpdateCheck = 0920; 192 | LastUpgradeCheck = 0920; 193 | ORGANIZATIONNAME = "Gino Wu"; 194 | TargetAttributes = { 195 | 7D29B5F7201CF41200B63DBF = { 196 | CreatedOnToolsVersion = 9.2; 197 | ProvisioningStyle = Manual; 198 | }; 199 | 7D29B60B201CF41200B63DBF = { 200 | CreatedOnToolsVersion = 9.2; 201 | ProvisioningStyle = Automatic; 202 | TestTargetID = 7D29B5F7201CF41200B63DBF; 203 | }; 204 | 7D29B616201CF41200B63DBF = { 205 | CreatedOnToolsVersion = 9.2; 206 | ProvisioningStyle = Automatic; 207 | TestTargetID = 7D29B5F7201CF41200B63DBF; 208 | }; 209 | }; 210 | }; 211 | buildConfigurationList = 7D29B5F3201CF41200B63DBF /* Build configuration list for PBXProject "CustomSimulatorsExample" */; 212 | compatibilityVersion = "Xcode 8.0"; 213 | developmentRegion = en; 214 | hasScannedForEncodings = 0; 215 | knownRegions = ( 216 | en, 217 | Base, 218 | ); 219 | mainGroup = 7D29B5EF201CF41200B63DBF; 220 | productRefGroup = 7D29B5F9201CF41200B63DBF /* Products */; 221 | projectDirPath = ""; 222 | projectRoot = ""; 223 | targets = ( 224 | 7D29B5F7201CF41200B63DBF /* CustomSimulatorsExample */, 225 | 7D29B60B201CF41200B63DBF /* CustomSimulatorsExampleTests */, 226 | 7D29B616201CF41200B63DBF /* CustomSimulatorsExampleUITests */, 227 | ); 228 | }; 229 | /* End PBXProject section */ 230 | 231 | /* Begin PBXResourcesBuildPhase section */ 232 | 7D29B5F6201CF41200B63DBF /* Resources */ = { 233 | isa = PBXResourcesBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | 7D29B606201CF41200B63DBF /* LaunchScreen.storyboard in Resources */, 237 | 7D29B603201CF41200B63DBF /* Assets.xcassets in Resources */, 238 | 7D29B601201CF41200B63DBF /* Main.storyboard in Resources */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | 7D29B60A201CF41200B63DBF /* Resources */ = { 243 | isa = PBXResourcesBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | }; 249 | 7D29B615201CF41200B63DBF /* Resources */ = { 250 | isa = PBXResourcesBuildPhase; 251 | buildActionMask = 2147483647; 252 | files = ( 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | }; 256 | /* End PBXResourcesBuildPhase section */ 257 | 258 | /* Begin PBXShellScriptBuildPhase section */ 259 | 7D29B629201CF49700B63DBF /* ShellScript */ = { 260 | isa = PBXShellScriptBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | ); 264 | inputPaths = ( 265 | ); 266 | outputPaths = ( 267 | ); 268 | runOnlyForDeploymentPostprocessing = 0; 269 | shellPath = /bin/sh; 270 | shellScript = "custom_sim=`xcrun simctl list | grep 'Custom Simulators' | awk -F'[()]' '{print $2}'`\nif [ -z \"${custom_sim}\" ]; then\n xcrun simctl create Custom\\ Simulators com.apple.CoreSimulator.SimDeviceType.iPhone-X `xcrun simctl list runtimes | grep iOS | tail -1 | sed -e 's/^.*) - //p' | sort -u`\nfi"; 271 | }; 272 | /* End PBXShellScriptBuildPhase section */ 273 | 274 | /* Begin PBXSourcesBuildPhase section */ 275 | 7D29B5F4201CF41200B63DBF /* Sources */ = { 276 | isa = PBXSourcesBuildPhase; 277 | buildActionMask = 2147483647; 278 | files = ( 279 | 7D29B5FE201CF41200B63DBF /* ViewController.swift in Sources */, 280 | 7D29B5FC201CF41200B63DBF /* AppDelegate.swift in Sources */, 281 | ); 282 | runOnlyForDeploymentPostprocessing = 0; 283 | }; 284 | 7D29B608201CF41200B63DBF /* Sources */ = { 285 | isa = PBXSourcesBuildPhase; 286 | buildActionMask = 2147483647; 287 | files = ( 288 | 7D29B611201CF41200B63DBF /* CustomSimulatorsExampleTests.swift in Sources */, 289 | ); 290 | runOnlyForDeploymentPostprocessing = 0; 291 | }; 292 | 7D29B613201CF41200B63DBF /* Sources */ = { 293 | isa = PBXSourcesBuildPhase; 294 | buildActionMask = 2147483647; 295 | files = ( 296 | 7D29B61C201CF41200B63DBF /* CustomSimulatorsExampleUITests.swift in Sources */, 297 | ); 298 | runOnlyForDeploymentPostprocessing = 0; 299 | }; 300 | /* End PBXSourcesBuildPhase section */ 301 | 302 | /* Begin PBXTargetDependency section */ 303 | 7D29B60E201CF41200B63DBF /* PBXTargetDependency */ = { 304 | isa = PBXTargetDependency; 305 | target = 7D29B5F7201CF41200B63DBF /* CustomSimulatorsExample */; 306 | targetProxy = 7D29B60D201CF41200B63DBF /* PBXContainerItemProxy */; 307 | }; 308 | 7D29B619201CF41200B63DBF /* PBXTargetDependency */ = { 309 | isa = PBXTargetDependency; 310 | target = 7D29B5F7201CF41200B63DBF /* CustomSimulatorsExample */; 311 | targetProxy = 7D29B618201CF41200B63DBF /* PBXContainerItemProxy */; 312 | }; 313 | /* End PBXTargetDependency section */ 314 | 315 | /* Begin PBXVariantGroup section */ 316 | 7D29B5FF201CF41200B63DBF /* Main.storyboard */ = { 317 | isa = PBXVariantGroup; 318 | children = ( 319 | 7D29B600201CF41200B63DBF /* Base */, 320 | ); 321 | name = Main.storyboard; 322 | sourceTree = ""; 323 | }; 324 | 7D29B604201CF41200B63DBF /* LaunchScreen.storyboard */ = { 325 | isa = PBXVariantGroup; 326 | children = ( 327 | 7D29B605201CF41200B63DBF /* Base */, 328 | ); 329 | name = LaunchScreen.storyboard; 330 | sourceTree = ""; 331 | }; 332 | /* End PBXVariantGroup section */ 333 | 334 | /* Begin XCBuildConfiguration section */ 335 | 7D29B61E201CF41200B63DBF /* Debug */ = { 336 | isa = XCBuildConfiguration; 337 | buildSettings = { 338 | ALWAYS_SEARCH_USER_PATHS = NO; 339 | CLANG_ANALYZER_NONNULL = YES; 340 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 341 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 342 | CLANG_CXX_LIBRARY = "libc++"; 343 | CLANG_ENABLE_MODULES = YES; 344 | CLANG_ENABLE_OBJC_ARC = YES; 345 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 346 | CLANG_WARN_BOOL_CONVERSION = YES; 347 | CLANG_WARN_COMMA = YES; 348 | CLANG_WARN_CONSTANT_CONVERSION = YES; 349 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 350 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 351 | CLANG_WARN_EMPTY_BODY = YES; 352 | CLANG_WARN_ENUM_CONVERSION = YES; 353 | CLANG_WARN_INFINITE_RECURSION = YES; 354 | CLANG_WARN_INT_CONVERSION = YES; 355 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 356 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 357 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 358 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 359 | CLANG_WARN_STRICT_PROTOTYPES = YES; 360 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 361 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 362 | CLANG_WARN_UNREACHABLE_CODE = YES; 363 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 364 | CODE_SIGN_IDENTITY = "iPhone Developer"; 365 | COPY_PHASE_STRIP = NO; 366 | DEBUG_INFORMATION_FORMAT = dwarf; 367 | ENABLE_STRICT_OBJC_MSGSEND = YES; 368 | ENABLE_TESTABILITY = YES; 369 | GCC_C_LANGUAGE_STANDARD = gnu11; 370 | GCC_DYNAMIC_NO_PIC = NO; 371 | GCC_NO_COMMON_BLOCKS = YES; 372 | GCC_OPTIMIZATION_LEVEL = 0; 373 | GCC_PREPROCESSOR_DEFINITIONS = ( 374 | "DEBUG=1", 375 | "$(inherited)", 376 | ); 377 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 378 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 379 | GCC_WARN_UNDECLARED_SELECTOR = YES; 380 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 381 | GCC_WARN_UNUSED_FUNCTION = YES; 382 | GCC_WARN_UNUSED_VARIABLE = YES; 383 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 384 | MTL_ENABLE_DEBUG_INFO = YES; 385 | ONLY_ACTIVE_ARCH = YES; 386 | SDKROOT = iphoneos; 387 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 388 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 389 | }; 390 | name = Debug; 391 | }; 392 | 7D29B61F201CF41200B63DBF /* Release */ = { 393 | isa = XCBuildConfiguration; 394 | buildSettings = { 395 | ALWAYS_SEARCH_USER_PATHS = NO; 396 | CLANG_ANALYZER_NONNULL = YES; 397 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 398 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 399 | CLANG_CXX_LIBRARY = "libc++"; 400 | CLANG_ENABLE_MODULES = YES; 401 | CLANG_ENABLE_OBJC_ARC = YES; 402 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 403 | CLANG_WARN_BOOL_CONVERSION = YES; 404 | CLANG_WARN_COMMA = YES; 405 | CLANG_WARN_CONSTANT_CONVERSION = YES; 406 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 407 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 408 | CLANG_WARN_EMPTY_BODY = YES; 409 | CLANG_WARN_ENUM_CONVERSION = YES; 410 | CLANG_WARN_INFINITE_RECURSION = YES; 411 | CLANG_WARN_INT_CONVERSION = YES; 412 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 413 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 414 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 415 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 416 | CLANG_WARN_STRICT_PROTOTYPES = YES; 417 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 418 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 419 | CLANG_WARN_UNREACHABLE_CODE = YES; 420 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 421 | CODE_SIGN_IDENTITY = "iPhone Developer"; 422 | COPY_PHASE_STRIP = NO; 423 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 424 | ENABLE_NS_ASSERTIONS = NO; 425 | ENABLE_STRICT_OBJC_MSGSEND = YES; 426 | GCC_C_LANGUAGE_STANDARD = gnu11; 427 | GCC_NO_COMMON_BLOCKS = YES; 428 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 429 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 430 | GCC_WARN_UNDECLARED_SELECTOR = YES; 431 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 432 | GCC_WARN_UNUSED_FUNCTION = YES; 433 | GCC_WARN_UNUSED_VARIABLE = YES; 434 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 435 | MTL_ENABLE_DEBUG_INFO = NO; 436 | SDKROOT = iphoneos; 437 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 438 | VALIDATE_PRODUCT = YES; 439 | }; 440 | name = Release; 441 | }; 442 | 7D29B621201CF41200B63DBF /* Debug */ = { 443 | isa = XCBuildConfiguration; 444 | buildSettings = { 445 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 446 | CODE_SIGN_STYLE = Manual; 447 | DEVELOPMENT_TEAM = ""; 448 | INFOPLIST_FILE = CustomSimulatorsExample/Info.plist; 449 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 450 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 451 | PRODUCT_BUNDLE_IDENTIFIER = example.CustomSimulatorsExample; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | PROVISIONING_PROFILE_SPECIFIER = ""; 454 | SWIFT_VERSION = 4.0; 455 | TARGETED_DEVICE_FAMILY = "1,2"; 456 | }; 457 | name = Debug; 458 | }; 459 | 7D29B622201CF41200B63DBF /* Release */ = { 460 | isa = XCBuildConfiguration; 461 | buildSettings = { 462 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 463 | CODE_SIGN_STYLE = Manual; 464 | DEVELOPMENT_TEAM = ""; 465 | INFOPLIST_FILE = CustomSimulatorsExample/Info.plist; 466 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 467 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 468 | PRODUCT_BUNDLE_IDENTIFIER = example.CustomSimulatorsExample; 469 | PRODUCT_NAME = "$(TARGET_NAME)"; 470 | PROVISIONING_PROFILE_SPECIFIER = ""; 471 | SWIFT_VERSION = 4.0; 472 | TARGETED_DEVICE_FAMILY = "1,2"; 473 | }; 474 | name = Release; 475 | }; 476 | 7D29B624201CF41200B63DBF /* Debug */ = { 477 | isa = XCBuildConfiguration; 478 | buildSettings = { 479 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 480 | BUNDLE_LOADER = "$(TEST_HOST)"; 481 | CODE_SIGN_STYLE = Automatic; 482 | INFOPLIST_FILE = CustomSimulatorsExampleTests/Info.plist; 483 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 484 | PRODUCT_BUNDLE_IDENTIFIER = example.CustomSimulatorsExampleTests; 485 | PRODUCT_NAME = "$(TARGET_NAME)"; 486 | SWIFT_VERSION = 4.0; 487 | TARGETED_DEVICE_FAMILY = "1,2"; 488 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CustomSimulatorsExample.app/CustomSimulatorsExample"; 489 | }; 490 | name = Debug; 491 | }; 492 | 7D29B625201CF41200B63DBF /* Release */ = { 493 | isa = XCBuildConfiguration; 494 | buildSettings = { 495 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 496 | BUNDLE_LOADER = "$(TEST_HOST)"; 497 | CODE_SIGN_STYLE = Automatic; 498 | INFOPLIST_FILE = CustomSimulatorsExampleTests/Info.plist; 499 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 500 | PRODUCT_BUNDLE_IDENTIFIER = example.CustomSimulatorsExampleTests; 501 | PRODUCT_NAME = "$(TARGET_NAME)"; 502 | SWIFT_VERSION = 4.0; 503 | TARGETED_DEVICE_FAMILY = "1,2"; 504 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CustomSimulatorsExample.app/CustomSimulatorsExample"; 505 | }; 506 | name = Release; 507 | }; 508 | 7D29B627201CF41200B63DBF /* Debug */ = { 509 | isa = XCBuildConfiguration; 510 | buildSettings = { 511 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 512 | CODE_SIGN_STYLE = Automatic; 513 | INFOPLIST_FILE = CustomSimulatorsExampleUITests/Info.plist; 514 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 515 | PRODUCT_BUNDLE_IDENTIFIER = example.CustomSimulatorsExampleUITests; 516 | PRODUCT_NAME = "$(TARGET_NAME)"; 517 | SWIFT_VERSION = 4.0; 518 | TARGETED_DEVICE_FAMILY = "1,2"; 519 | TEST_TARGET_NAME = CustomSimulatorsExample; 520 | }; 521 | name = Debug; 522 | }; 523 | 7D29B628201CF41200B63DBF /* Release */ = { 524 | isa = XCBuildConfiguration; 525 | buildSettings = { 526 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 527 | CODE_SIGN_STYLE = Automatic; 528 | INFOPLIST_FILE = CustomSimulatorsExampleUITests/Info.plist; 529 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 530 | PRODUCT_BUNDLE_IDENTIFIER = example.CustomSimulatorsExampleUITests; 531 | PRODUCT_NAME = "$(TARGET_NAME)"; 532 | SWIFT_VERSION = 4.0; 533 | TARGETED_DEVICE_FAMILY = "1,2"; 534 | TEST_TARGET_NAME = CustomSimulatorsExample; 535 | }; 536 | name = Release; 537 | }; 538 | /* End XCBuildConfiguration section */ 539 | 540 | /* Begin XCConfigurationList section */ 541 | 7D29B5F3201CF41200B63DBF /* Build configuration list for PBXProject "CustomSimulatorsExample" */ = { 542 | isa = XCConfigurationList; 543 | buildConfigurations = ( 544 | 7D29B61E201CF41200B63DBF /* Debug */, 545 | 7D29B61F201CF41200B63DBF /* Release */, 546 | ); 547 | defaultConfigurationIsVisible = 0; 548 | defaultConfigurationName = Release; 549 | }; 550 | 7D29B620201CF41200B63DBF /* Build configuration list for PBXNativeTarget "CustomSimulatorsExample" */ = { 551 | isa = XCConfigurationList; 552 | buildConfigurations = ( 553 | 7D29B621201CF41200B63DBF /* Debug */, 554 | 7D29B622201CF41200B63DBF /* Release */, 555 | ); 556 | defaultConfigurationIsVisible = 0; 557 | defaultConfigurationName = Release; 558 | }; 559 | 7D29B623201CF41200B63DBF /* Build configuration list for PBXNativeTarget "CustomSimulatorsExampleTests" */ = { 560 | isa = XCConfigurationList; 561 | buildConfigurations = ( 562 | 7D29B624201CF41200B63DBF /* Debug */, 563 | 7D29B625201CF41200B63DBF /* Release */, 564 | ); 565 | defaultConfigurationIsVisible = 0; 566 | defaultConfigurationName = Release; 567 | }; 568 | 7D29B626201CF41200B63DBF /* Build configuration list for PBXNativeTarget "CustomSimulatorsExampleUITests" */ = { 569 | isa = XCConfigurationList; 570 | buildConfigurations = ( 571 | 7D29B627201CF41200B63DBF /* Debug */, 572 | 7D29B628201CF41200B63DBF /* Release */, 573 | ); 574 | defaultConfigurationIsVisible = 0; 575 | defaultConfigurationName = Release; 576 | }; 577 | /* End XCConfigurationList section */ 578 | }; 579 | rootObject = 7D29B5F0201CF41200B63DBF /* Project object */; 580 | } 581 | -------------------------------------------------------------------------------- /CustomSimulatorsExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CustomSimulatorsExample.xcodeproj/project.xcworkspace/xcuserdata/ginowu.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ginowu7/CustomSimulatorsExample/df0c7a2a913baa8ece2e193f5ba3c6d396604b0a/CustomSimulatorsExample.xcodeproj/project.xcworkspace/xcuserdata/ginowu.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /CustomSimulatorsExample.xcodeproj/xcuserdata/ginowu.xcuserdatad/xcschemes/CustomSimulatorsExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 11 | 14 | 15 | 16 | 17 | 18 | 24 | 30 | 31 | 32 | 33 | 34 | 40 | 41 | 43 | 49 | 50 | 51 | 53 | 59 | 60 | 61 | 62 | 63 | 69 | 70 | 71 | 72 | 73 | 74 | 85 | 87 | 93 | 94 | 95 | 96 | 97 | 98 | 104 | 106 | 112 | 113 | 114 | 115 | 117 | 118 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /CustomSimulatorsExample.xcodeproj/xcuserdata/ginowu.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CustomSimulatorsExample.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 7D29B5F7201CF41200B63DBF 16 | 17 | primary 18 | 19 | 20 | 7D29B60B201CF41200B63DBF 21 | 22 | primary 23 | 24 | 25 | 7D29B616201CF41200B63DBF 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /CustomSimulatorsExample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // CustomSimulatorsExample 4 | // 5 | // Created by Gino Wu on 1/27/18. 6 | // Copyright © 2018 Gino Wu. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /CustomSimulatorsExample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | } 88 | ], 89 | "info" : { 90 | "version" : 1, 91 | "author" : "xcode" 92 | } 93 | } -------------------------------------------------------------------------------- /CustomSimulatorsExample/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /CustomSimulatorsExample/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 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /CustomSimulatorsExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /CustomSimulatorsExample/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // CustomSimulatorsExample 4 | // 5 | // Created by Gino Wu on 1/27/18. 6 | // Copyright © 2018 Gino Wu. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | } 17 | 18 | override func didReceiveMemoryWarning() { 19 | super.didReceiveMemoryWarning() 20 | // Dispose of any resources that can be recreated. 21 | } 22 | 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /CustomSimulatorsExampleTests/CustomSimulatorsExampleTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CustomSimulatorsExampleTests.swift 3 | // CustomSimulatorsExampleTests 4 | // 5 | // Created by Gino Wu on 1/27/18. 6 | // Copyright © 2018 Gino Wu. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import CustomSimulatorsExample 11 | 12 | class CustomSimulatorsExampleTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | // Use XCTAssert and related functions to verify your tests produce the correct results. 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measure { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /CustomSimulatorsExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /CustomSimulatorsExampleUITests/CustomSimulatorsExampleUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CustomSimulatorsExampleUITests.swift 3 | // CustomSimulatorsExampleUITests 4 | // 5 | // Created by Gino Wu on 1/27/18. 6 | // Copyright © 2018 Gino Wu. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class CustomSimulatorsExampleUITests: XCTestCase { 12 | 13 | override func setUp() { 14 | super.setUp() 15 | 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | 18 | // In UI tests it is usually best to stop immediately when a failure occurs. 19 | continueAfterFailure = false 20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 21 | XCUIApplication().launch() 22 | 23 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 24 | } 25 | 26 | override func tearDown() { 27 | // Put teardown code here. This method is called after the invocation of each test method in the class. 28 | super.tearDown() 29 | } 30 | 31 | func testExample() { 32 | // Use recording to get started writing UI tests. 33 | // Use XCTAssert and related functions to verify your tests produce the correct results. 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /CustomSimulatorsExampleUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /MultiSimConfig.txt: -------------------------------------------------------------------------------- 1 | iPad Pro (10.5-inch) (10.3.1) 2 | iPad Pro (12.9-inch) (11.2) 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CustomSimulatorsExample 2 | 3 | https://buildingvts.com/launch-multiple-ios-simulators-on-a-single-compile-985fd2ad5eb1 4 | -------------------------------------------------------------------------------- /launch_multiple_simulators.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | xcrun simctl shutdown all 4 | 5 | path=$(find ~/Library/Developer/Xcode/DerivedData/CustomSimulatorsExample-*/Build/Products/Debug-iphonesimulator -name "CustomSimulatorsExample.app" | head -n 1) 6 | echo "${path}" 7 | 8 | filename=MultiSimConfig.txt 9 | grep -v '^#' $filename | while read -r line 10 | do 11 | echo $line 12 | xcrun instruments -w "$line" 13 | xcrun simctl install booted $path 14 | xcrun simctl launch booted example.CustomSimulatorsExample 15 | done 16 | --------------------------------------------------------------------------------