A repository that demonstrates the difficulty to run async tests with Xcode 13.2 beta on pre iOS-15 simulators

Overview

A repository that demonstrates the difficulty to run async tests with Xcode 13.2 beta on pre iOS-15 simulators

This demonstration uses an iOS 13.7 simulator.

PROBLEM: This command skips the async test. It should not:

xcodebuild \
  -project AsyncLib.xcodeproj \
  -scheme AsyncLibTests \
  -destination 'platform=iOS Simulator,name=iPhone 8,OS=13.7' \
  build-for-testing test-without-building
Output
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project AsyncLib.xcodeproj -scheme AsyncLibTests -destination "platform=iOS Simulator,name=iPhone 8,OS=13.7" build-for-testing test-without-building

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

note: Using new build system
note: Planning
Analyze workspace

Create build description
Build description signature: a14dabc897593fdaa8143b70be9cecd9
Build description path: /Users/groue/Library/Developer/Xcode/DerivedData/AsyncLib-embjdibmowsosldclaycitzaxhhx/Build/Intermediates.noindex/XCBuildData/a14dabc897593fdaa8143b70be9cecd9-desc.xcbuild

note: Build preparation complete
note: Building targets in dependency order
** TEST BUILD SUCCEEDED **

Testing started
Test Suite 'All tests' started at 2021-11-01 15:35:23.737
Test Suite 'AsyncLibTests.xctest' started at 2021-11-01 15:35:23.740
Test Suite 'AsyncLibTests' started at 2021-11-01 15:35:23.740
-[AsyncLibTests testAsyncFunction] skipped: Test is unavailable since it uses features not supported by this OS version
Test Suite 'AsyncLibTests' passed at 2021-11-01 15:35:23.743.
	 Executed 1 test, with 1 test skipped and 0 failures (0 unexpected) in 0.002 (0.003) seconds
Test Suite 'AsyncLibTests.xctest' passed at 2021-11-01 15:35:23.744.
	 Executed 1 test, with 1 test skipped and 0 failures (0 unexpected) in 0.002 (0.005) seconds
Test Suite 'All tests' passed at 2021-11-01 15:35:23.745.
	 Executed 1 test, with 1 test skipped and 0 failures (0 unexpected) in 0.002 (0.008) seconds
2021-11-01 15:35:24.018 xcodebuild[98254:3034487] [MT] IDETestOperationsObserverDebug: 32.896 elapsed -- Testing started completed.
2021-11-01 15:35:24.018 xcodebuild[98254:3034487] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2021-11-01 15:35:24.018 xcodebuild[98254:3034487] [MT] IDETestOperationsObserverDebug: 32.896 sec, +32.896 sec -- end

Test session results, code coverage, and logs:
	/Users/groue/Library/Developer/Xcode/DerivedData/AsyncLib-embjdibmowsosldclaycitzaxhhx/Logs/Test/Test-AsyncLibTests-2021.11.01_15-34-51-+0100.xcresult

** TEST EXECUTE SUCCEEDED **

WORKAROUND: This command is able to run ONE async test:

xcodebuild \
  -project AsyncLib.xcodeproj \
  -scheme AsyncLibTests \
  -destination 'platform=iOS Simulator,name=iPhone 8,OS=13.7' \
  -only-testing:AsyncLibTests/AsyncLibTests/testAsyncFunction \
  build-for-testing test-without-building
Output
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project AsyncLib.xcodeproj -scheme AsyncLibTests -destination "platform=iOS Simulator,name=iPhone 8,OS=13.7" "-only-testing:AsyncLibTests/AsyncLibTests/testAsyncFunction" build-for-testing test-without-building

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

note: Using new build system
note: Planning
Analyze workspace

Create build description
Build description signature: a14dabc897593fdaa8143b70be9cecd9
Build description path: /Users/groue/Library/Developer/Xcode/DerivedData/AsyncLib-embjdibmowsosldclaycitzaxhhx/Build/Intermediates.noindex/XCBuildData/a14dabc897593fdaa8143b70be9cecd9-desc.xcbuild

note: Build preparation complete
note: Building targets in dependency order
** TEST BUILD SUCCEEDED **

Testing started
Test Suite 'Selected tests' started at 2021-11-01 15:36:04.642
Test Suite 'AsyncLibTests.xctest' started at 2021-11-01 15:36:04.644
Test Suite 'AsyncLibTests' started at 2021-11-01 15:36:04.644
Test Case '-[AsyncLibTests.AsyncLibTests testAsyncFunction]' started.
Test Case '-[AsyncLibTests.AsyncLibTests testAsyncFunction]' passed (0.015 seconds).
Test Suite 'AsyncLibTests' passed at 2021-11-01 15:36:04.661.
	 Executed 1 test, with 0 failures (0 unexpected) in 0.015 (0.017) seconds
Test Suite 'AsyncLibTests.xctest' passed at 2021-11-01 15:36:04.662.
	 Executed 1 test, with 0 failures (0 unexpected) in 0.015 (0.018) seconds
Test Suite 'Selected tests' passed at 2021-11-01 15:36:04.663.
	 Executed 1 test, with 0 failures (0 unexpected) in 0.015 (0.021) seconds
2021-11-01 15:36:04.934 xcodebuild[98380:3036436] [MT] IDETestOperationsObserverDebug: 25.457 elapsed -- Testing started completed.
2021-11-01 15:36:04.934 xcodebuild[98380:3036436] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2021-11-01 15:36:04.934 xcodebuild[98380:3036436] [MT] IDETestOperationsObserverDebug: 25.457 sec, +25.457 sec -- end

Test session results, code coverage, and logs:
	/Users/groue/Library/Developer/Xcode/DerivedData/AsyncLib-embjdibmowsosldclaycitzaxhhx/Logs/Test/Test-AsyncLibTests-2021.11.01_15-35-39-+0100.xcresult

** TEST EXECUTE SUCCEEDED **
You might also like...
Repository to help people learning testing

Testing Training The purpose of this repository is to help people learn the basics of testing in Swift. I decided to prepare this repository because m

SwiftUITemplate - Template repository for SwiftUI projects

SwiftUITemplate Template repository for SwiftUI projects. Environment Name Versi

Template repository for quickly creating boilerplate code for a SwiftUI macOS app.
Template repository for quickly creating boilerplate code for a SwiftUI macOS app.

Sidebar App This is a template repository for quickly creating boilerplate code for a SwiftUI macOS app. License This app is released into the public

ADA Mini challenge 2 team 14 OXY's repository in morning session

OXY 누구나 쉬는 시간이 필요하니까!! 📌 Features recording the degree of stress Playing with Donggle managing and relieving your stress by yourself comparing helpfu

This is a template repository for quickly creating boilerplate code for a SwiftUI macOS menu bar app.
This is a template repository for quickly creating boilerplate code for a SwiftUI macOS menu bar app.

Menu Bar App This is a template repository for quickly creating boilerplate code for a SwiftUI macOS menu bar app. License This app is released into t

MC2-Team3-SSAK3 Repository
MC2-Team3-SSAK3 Repository

📱 Popopot ✨ About App "포항역과 포스텍을 오가는 택시팟을 편하게" 아카데미 러너들이 택시팟을 편하게 모을 수 있도록 도와주는 앱입니다. : Popopot makes the taxi gathering process easy and comfortable

source of my jailbreak repository's tweaks

AllTweakSource source of my jailbreak repository's tweaks,enjoy~(please note that most of the tweaks in the repository are just built and test so can

XCSnippetsApp - macOS application to explore code snippets from the Swift and iOS community, view and edit the snippets before adding them conveniently to Xcode
XCSnippetsApp - macOS application to explore code snippets from the Swift and iOS community, view and edit the snippets before adding them conveniently to Xcode

XCSnippetsApp macOS application to explore code snippets from the Swift and iOS community, view and edit the snippets before adding them conveniently

🧸 Xcode Playground management made easy
🧸 Xcode Playground management made easy

Toybox Toybox made easy to manage Xcode Playgrounds. You can create and open Xcode Playground from CLI. $ toybox create Snippet # Generate ~/.toybox/S

Owner
Gwendal Roué
iOS app developer, and author of a few open source libraries
Gwendal Roué
A sample app demonstrates how to use Atlantis on Swift Playground (iOS/macOS)

Atlantis with Swift Playground A sample app demonstrates how to use Atlantis on

Proxyman 3 Dec 22, 2021
A zero-code template app that demonstrates how to use TheraForge's APIs and can be used for fast prototyping

TheraForge MagicBox 1.0.0-beta The Open TheraForge (OTF) MagicBox app is a template for creating digital health solutions that help people better mana

TheraForge 0 Dec 23, 2021
Wasmic allows you to run WebAssembly in a safe way on iOS.

wasmic-ios Bootstrap $ git clone https://github.com/kateinoigakukun/wasmic-ios.git $ git -c submodule."fastlane".update=none submodule update --init -

Yuta Saito 58 Dec 12, 2022
Arm64 architecture handler - It uses unicorn and libffi to run iOS arm64 binaries on x86_64 macOS

aah arm64 architecture handler. It uses unicorn and libffi to run iOS arm64 binaries on x86_64 macOS, with varying degrees of success. Most things wil

Jesús A. Álvarez 159 Dec 2, 2022
RetroVisor helps you with inspecting UIViews in your unit tests.

RetroVisor RetroVisor helps you with inspecting UIViews in your unit tests. You do test views in unit tests, right? Right? Usually, I mark subview pro

Vid Tadel 2 Mar 29, 2022
LinkedLog is a Xcode plugin that includes a Xcode PCH header file template that adds the macros `LLog` and `LLogF` and parses their output to link from the console to the corresponding file and line.

LinkedLog Xcode Plugin LinkedLog is a Xcode plugin that includes a Xcode PCH file template that adds the macros LLog and LLogF. The LLog macro will wo

Julian F. Weinert 22 Nov 14, 2022
A web API client in Swift built using Async/Await

Web API Client A modern web API client in Swift built using Async/Await and Actors. let client = APIClient(host: "api.github.com") // Using the clien

Alexander Grebenyuk 741 Dec 30, 2022
This repository hosts the PushwooshGeozones iOS SDK as an XCFramework based Swift Package.

This repository hosts the PushwooshGeozones iOS SDK as an XCFramework based Swift Package. Use this repository's Swift Package in Xcode 12+

Pushwoosh 2 Nov 23, 2021
KYSelectBox Repository

KYSelectBox Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements platform :ios, '12.

Gangyeol Kim 4 Aug 2, 2021
A repository to experiment around the use and generation of tokens for the JLL/T Design System

Basic Style Dictionary This example code is bare-bones to show you what this framework can do. If you have the style-dictionary module installed globa

null 0 Dec 7, 2021