Overview
On macOS when a user clicks on the date in a date picker field a pop up opens with options to select the date if the user taps on Esc key, then there is no option to select that field or any other field.
Feedback: FB11812450
Questions:
Am I missing something?
Is this a bug? (Feedback: FB11812450)
Steps to reproduce
Run the code (see below) on macOS
Click on the date portion of the date picker field
A pop up opens
Press the Esc key
Actual Behaviour
You can't select the date picker again to change the date.
Expected Behaviour
When the the escape key is pressed the popup should close and the date picker and other text fields should be selectable again.
Code
struct ContentView: View {
@State private var date = Date()
@State private var note = "hello world"
var body: some View {
VStack {
DatePicker("Birthday", selection: $date)
TextField("Note", text: $note)
}
}
}
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Overview
Tapping on ShareLink crashes the app when ShareLink is added in the toolbar with the placement of secondaryAction
Feedback
FB21337385
Note: Apple engineers please priorities this is a blocker and affects production apps and prevents us from going live.
Environment
Xcode: 26.2 (17C52)
iOS: 26.2
iPadOS: 26.2
Reproduce
Able to reproduce 100% both on Simulator and Device
Isolation of the crash
The crash happens only when the ShareLink is used with the placement .secondaryAction
The crash doesn't 'happen when the ShareLink is used with the placement .primaryAction
Code
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationStack {
Text("Hello, world!")
.toolbar {
ToolbarItem(placement: .primaryAction) {
Button("Dummy") {
print("dummy")
}
}
// Tapping on share button will cause it to crash
// Crash only happens when the ShareLink is used with placement .secondaryAction
// It doesn't crash when placement is primaryAction
ToolbarItem(placement: .secondaryAction) {
ShareLink(item: "Some string")
}
}
}
}
}
Crash stack trace
*** Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController (<_UIActivityViewControllerPresentationController: 0x105a3b580>) should have a non-nil sourceView or barButtonItem set before the presentation occurs.'
*** First throw call stack:
(
0 CoreFoundation 0x00000001804f71d0 __exceptionPreprocess + 172
1 libobjc.A.dylib 0x000000018009c094 objc_exception_throw + 72
2 UIKitCore 0x0000000185a5b17c -[UIPopoverPresentationController presentationTransitionWillBegin] + 2712
3 UIKitCore 0x0000000185a65de0 -[UIPresentationController _presentationTransitionWillBegin] + 28
4 UIKitCore 0x0000000185a6523c __80-[UIPresentationController _initViewHierarchyForPresentationSuperview:inWindow:]_block_invoke + 1928
5 UIKitCore 0x0000000185a633ec __77-[UIPresentationController runTransitionForCurrentStateAnimated:handoffData:]_block_invoke_3 + 296
6 UIKitCore 0x00000001868b2950 -[_UIAfterCACommitBlock run] + 64
7 UIKitCore 0x00000001868b2d64 -[_UIAfterCACommitQueue flush] + 164
8 UIKitCore 0x0000000186354f04 _runAfterCACommitDeferredBlocks + 256
9 UIKitCore 0x0000000186346bec _cleanUpAfterCAFlushAndRunDeferredBlocks + 76
10 UIKitCore 0x0000000186346cb4 _UIApplicationFlushCATransaction + 68
11 UIKitCore 0x0000000186263c48 __setupUpdateSequence_block_invoke_2 + 372
12 UIKitCore 0x000000018582f378 _UIUpdateSequenceRunNext + 120
13 UIKitCore 0x00000001862640a4 schedulerStepScheduledMainSectionContinue + 56
14 UpdateCycle 0x00000002501912b4 _ZN2UC10DriverCore18continueProcessingEv + 80
15 CoreFoundation 0x000000018041a4ac __CFMachPortPerform + 164
16 CoreFoundation 0x0000000180456aa8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56
17 CoreFoundation 0x00000001804560c0 __CFRunLoopDoSource1 + 480
18 CoreFoundation 0x0000000180455188 __CFRunLoopRun + 2100
19 CoreFoundation 0x000000018044fcec _CFRunLoopRunSpecificWithOptions + 496
20 GraphicsServices 0x0000000192a669bc GSEventRunModal + 116
21 UIKitCore 0x0000000186348574 -[UIApplication _run] + 772
22 UIKitCore 0x000000018634c79c UIApplicationMain + 124
23 SwiftUI 0x00000001da58d620 $s7SwiftUI17KitRendererCommon33_ACC2C5639A7D76F611E170E831FCA491LLys5NeverOyXlXpFAESpySpys4Int8VGSgGXEfU_ + 164
24 SwiftUI 0x00000001da58d368 $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 180
25 SwiftUI 0x00000001da31b42c $s7SwiftUI3AppPAAE4mainyyFZ + 148
26 ShareLinkSecondaryPlacementDemo.deb 0x0000000104d82b0c $s31ShareLinkSecondaryPlacementDemo0abcdE3AppV5$mainyyFZ + 40
27 ShareLinkSecondaryPlacementDemo.deb 0x0000000104d82bb8 __debug_main_executable_dylib_entry_point + 12
28 dyld 0x0000000104cc53d0 start_sim + 20
29 ??? 0x0000000104ff0d54 0x0 + 4378791252
)
libc++abi: terminating due to uncaught exception of type NSException
Hi,
I have a Mac app that uses calendar. When the user has not granted access and still wants to access the calendar I would like to open System Settings Privacy and Security pane for calendar on the mac. How can I do this?
Is it ok to open system settings this way?
Or is there a better way?
I would like to publish this app to the AppStore so want to know if this is ok?
if let urlString = URL(string: "x-apple.systempreferences:com.apple.preference.security?Privacy_Calendars") {
NSWorkspace.shared.open(urlString)
}
Problem
When app is run on iPhone 14 pro simulator running iOS 17 tapping on the EditButton shows the text "No folder selected"
Feedback
Feedback ID: FB12953838
Steps to reproduce:
Run the app on iOS 17 iPhone simulator
Tap on the "Edit" Button
Expected Behaviour
The view should show the car list in the edit mode
Actual Behaviour
The view shows the text "No folder selected"
Note: Problem happens only the first time, subsequently EditButton works fine.
Environment:
iOS: 17
Platform: iPhone 14 pro simulator
Xcode: 15.0 beta 6 (15A5219j)
Code
ContentView
import SwiftUI
struct ContentView: View {
@State private var selectedFolderID: Int?
@StateObject private var dataStore = DataStore()
var body: some View {
NavigationSplitView {
FolderListView(
selectedFolderID: $selectedFolderID,
dataStore: dataStore
)
} detail: {
if let selectedFolderID {
CarListView(
selectedFolderID: selectedFolderID,
dataStore: dataStore
)
} else {
Text("No folder selected")
}
}
}
}
FolderListView
import SwiftUI
struct FolderListView: View {
@Binding var selectedFolderID: Int?
@ObservedObject var dataStore: DataStore
var body: some View {
List(dataStore.folders, selection: $selectedFolderID) { folder in
NavigationLink(value: folder.id) {
Text(folder.name)
}
}
.task {
selectedFolderID = dataStore.folders.first?.id
}
}
}
CarListView
import SwiftUI
struct CarListView: View {
let selectedFolderID: Int
@ObservedObject var dataStore: DataStore
@State private var selectedCarIDs = Set<Int>()
var body: some View {
List(
dataStore.cars(withFolderID: selectedFolderID),
selection: $selectedCarIDs
) { car in
Text(car.name)
}
.toolbar {
//Tapping on the EditButton on the iPhone, shows the text "No folder selected".
EditButton()
}
}
}
DataStore
import Foundation
class DataStore: ObservableObject {
@Published var folders = [Folder(id: 0, name: "Folder 1"),
Folder(id: 1, name: "Folder 2"),
Folder(id: 2, name: "Folder 3"),
Folder(id: 3, name: "Folder 4"),
Folder(id: 4, name: "Folder 5")]
@Published var carIDsInFolder: [Folder.ID : [Car.ID]] = [0: [0, 1],
1: [2, 3],
2: [4, 5],
3: [6, 7],
4: [8, 9]]
@Published var cars = [Car(id: 0, name: "aaa", price: 100),
Car(id: 1, name: "bbb", price: 110),
Car(id: 2, name: "ccc", price: 120),
Car(id: 3, name: "ddd", price: 130),
Car(id: 4, name: "eee", price: 140),
Car(id: 5, name: "fff", price: 150),
Car(id: 6, name: "iii", price: 160),
Car(id: 7, name: "jjj", price: 170),
Car(id: 8, name: "***", price: 180),
Car(id: 9, name: "lll", price: 190)]
func cars(withFolderID folderID: Folder.ID) -> [Car] {
let carIDs = carIDsInFolder[folderID] ?? []
return carIDs.compactMap { car(withID: $0) }
}
func car(withID carID: Car.ID) -> Car? {
cars.first { $0.id == carID }
}
}
Car
import Foundation
struct Car: Identifiable {
var id: Int
var name: String
var price: Int
}
Folder
import Foundation
struct Folder: Identifiable {
var id: Int
var name: String
}
Problem
When copyable is used with NavigationSplitView then it doesn't work
The menu Edit > Copy is disabled
Note
When copyable is not used with a NavigationSplitView and used only with a plain List then it works.
Question
Is there anything I am missing?
Feedback
FB12990593
Platform
macOS 14.0 Beta (23A5312d)
Xcode 15.0 beta 6 (15A5219j)
Steps to reproduce
Run the app on mac
Select some cars
Press Command C
Expected Behaviour
Menu Edit > Copy should be enabled
Pressing Command C should allow user to copy selected cars
Actual Behaviour
Menu Edit > Copy is disabled
Pressing Command C doesn't allow user to copy selected cars
Code
struct ContentView: View {
@State private var dataStore = DataStore()
var body: some View {
NavigationSplitView {
Color.brown
} detail: {
CarListView(dataStore: dataStore)
}
}
}
struct CarListView: View {
let dataStore: DataStore
@State private var selectedCarIDs = Set<UUID>()
var body: some View {
List(selection: $selectedCarIDs) {
ForEach(dataStore.cars) { car in
CarCell(car: car)
.draggable(car)
}
}
.copyable(selectedCars())
}
private func selectedCars() -> [Car] {
dataStore.cars.filter { selectedCarIDs.contains($0.id) }
}
}
struct CarCell: View {
let car: Car
var body: some View {
VStack(alignment: .leading) {
Text(car.name)
Text("\(car.price)")
}
}
}
@Observable
class DataStore {
var cars = [
Car(name: "aaa", price: 10),
Car(name: "bbb", price: 20),
Car(name: "ccc", price: 30),
Car(name: "ddd", price: 40)
]
}
struct Car: Codable, Transferable, Identifiable {
let id: UUID
let name: String
let price: Int
init(name: String, price: Int) {
self.id = UUID()
self.name = name
self.price = price
}
static var transferRepresentation: some TransferRepresentation {
CodableRepresentation(contentType: .car)
}
}
extension UTType {
static let car = UTType("com.example.car")!
}
Overview
I have a custom type Statistics that has 3 properties inside it
I am trying to return this as part of the AppIntent's perforrm method
struct Statistics {
var countA: Int
var countB: Int
var countC: Int
}
I would like to implement the AppIntent to return Statistics as follows:
func perform() async throws -> some IntentResult & ReturnsValue<Statistics> {
...
...
}
Problem
It doesn't make much sense to make Statistics as an AppEntity as this is only computed as a result.
Statistics doesn't exist as a persisted entity in the app.
Questions
How can I implement Statistics?
Does it have to be AppEntity (I am trying to avoid this)? (defaultQuery would never be used.)
What is the correct way tackle this?
Aim:I have a model which is an ObservableObject. It has a Bool property, I would like to use this Bool property to initialise a @Binding variable.Questions:How to convert an @ObservableObject to a @Binding ?Is creating a @State the only way to initialise a @Binding ?Note:I do understand I can make use of @ObservedObject / @EnvironmentObject, and I see it's usefulness, but I am not sure a simple button needs to have access to the entire model.Or is my understanding incorrect ?Code:import SwiftUI
import Combine
import SwiftUI
import PlaygroundSupport
class Car : ObservableObject {
@Published var isReadyForSale = true
}
struct SaleButton : View {
@Binding var isOn : Bool
var body: some View {
Button(action: {
self.isOn.toggle()
}) {
Text(isOn ? "On" : "Off")
}
}
}
let car = Car()
//How to convert an ObservableObject to a Binding
//Is creating an ObservedObject or EnvironmentObject the only way to handle a Observable Object ?
let button = SaleButton(isOn: car.isReadyForSale) //Throws a compilation error and rightly so, but how to pass it as a Binding variable ?
PlaygroundPage.current.setLiveView(button)
Hi,I am trying to extract the data from the P8 file to use it generate JWT.I understand that it is possible using dumpasn1 and extracting the OCTET STRING section. This is great, and is definitely possible.I was wondering if it was possible to do it on macOS using Apple's APIs (example SecItemImport), would make it simpler if it was possible all in the mac app.I tried the following but it didn't work:Error: I got the OSStatus as -25257Questions:- Is there a way to do this using SecItemImport or any other Apple APIs as I am using it in a command line mac app ?- Are the parameters to SecItemImport are incorrect ?- Am down the wrong path? , any direction to the correct API would help.What I tried with SecItemImport:- Data extracted from the file- Decoding the data from the file- Some input formatsMany thanks.import Foundation
import Security
func f1() {
do {
let fileURL = URL(fileURLWithPath: "some valid path");
let data = try Data(contentsOf: fileURL)
guard let string = String(data: data, encoding: .utf8) else {
print("Failed to convert data to string")
return
}
let b64Text = string
.replacingOccurrences(of: "-----END PRIVATE KEY-----", with: "")
.replacingOccurrences(of: "-----BEGIN PRIVATE KEY-----", with: "")
.replacingOccurrences(of: "\n", with: "")
guard let b64Data = b64Text.data(using: .utf8),
let decodedData = Data(base64Encoded: b64Data) else {
print("Was not b64 data")
return
}
print(string)
var outArray : CFArray?
let filename : CFString? = nil
var inputFormat = SecExternalFormat.formatUnknown
var itemType = SecExternalItemType.itemTypePrivateKey
let flags = SecItemImportExportFlags()
//I tried data, b64Data, decodedData all seems to return an error
let status = SecItemImport(decodedData as CFData,
filename,
&inputFormat,
&itemType,
flags,
nil,
nil,
&outArray)
//status = -25257
print("status = \(status)")
for element in (outArray as [AnyObject]?) ?? [] {
print("element = \(element)")
}
}
catch {
print("Error: \(error)")
}
}
f1()
Overview
I am using Xcode Cloud to create builds.
It contains 2 post actions:
TestFlight Internal Testing - Succeeded
TestFlight External Testing - Failed
Error
Xcode doesn't display the exact error it only shows the status as Not Submitted for Beta Review
When I checked AppStoreConnect > TestFlight I saw the status as Read to Submit. When I manually tried to add external testers to the build using AppStoreConnect website, then I got the error: You can only submit two builds per day to Beta App Review.
Questions
This seems like a very odd limitation. How do we test multiple builds?
Why isn't Xcode the exact error? It only shows Not Submitted for Beta Review
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store Connect
TestFlight
Xcode Cloud
Problem
When a List / Form is added inside a TabView and navigationTitle is set, then switching between tabs causes the navigation title to flicker.
Feedback:
FB21436493
Environment
Xcode: 26.2 (17C52)
iOS: 26.2 (23C55)
Reproducible on: Both simulator and device
Root cause
When List / Form is commented out, issue doesn't occur
Steps to Reproduce
Run app on iOS
Switch between tabs
Notice that the navigation title flickers
Code
ContentView
import SwiftUI
struct ContentView: View {
@State private var selectedTab = TabItem.red
var body: some View {
NavigationStack {
TabView(selection: $selectedTab) {
ForEach(TabItem.allCases, id: \.self) { tab in
Tab(tab.rawValue, systemImage: tab.systemImageName , value: tab) {
// Problem occurs with a List / Form
// Commenting out list works without flickering title
List {
Text(tab.rawValue)
}
}
}
}
.navigationTitle(selectedTab.rawValue)
}
}
}
TabItem
enum TabItem: String, CaseIterable {
case red
case green
case blue
var systemImageName: String {
switch self {
case .red:
"car"
case .green:
"leaf"
case .blue:
"bus"
}
}
}
Screen recording:
Topic:
UI Frameworks
SubTopic:
SwiftUI
I am a bit confused about tasks being cancelled.
Overview:
checkCancellation function has 2 child tasks: computeA and computeB that run concurrently,
computeB throws an error.
Doubt:
I expected child task computeA to be cancelled because computeB threw an error, but computeA was never cancelled.
Is my understanding wrong or am I missing something?
Or is this a bug?
Note:
I am using a SwiftUI project (as Swift Playgrounds don't support async let)
macOS Big Sur 11.5.2 (20G95)
Xcode Version 13.0 beta 5 (13A5212g)
Output:
A - started
B - going to throw
A - going to return, Task.isCancelled = false
error: infinity
Concurrent Function Definitions:
import Foundation
import UIKit
enum ComputationError: Error {
case infinity
}
fileprivate func computeA() async throws -> Int {
print("A - started")
await Task.sleep(2 * 100_000_000)
print("A - going to return, Task.isCancelled = \(Task.isCancelled)") //I expected Task.isCancelled to be true
return 25
}
fileprivate func computeB() async throws -> Int {
print("B - going to throw")
throw ComputationError.infinity
}
func checkCancellation() async throws {
async let a = computeA()
async let b = computeB()
let c = try await a + b
print("c = \(c)")
}
Invoking Concurrent function
struct ContentView: View {
var body: some View {
Button("check cancellation") {
Task {
do {
try await checkCancellation()
print("normal exit")
} catch {
print("error: \(error)")
}
}
}
}
}
Hi,
I have an Xcode project that uses Xcode 14.0 beta 6 (14A5294g).
How to make Xcode Cloud compile code compiled in Xcode beta?
My code uses beta APIs that doesn't seem to compile on Xcode Cloud (throws compilation errors)
Am I missing something as this would be a common scenario for many developers?
How do I make the beta APIs compile on Xcode Cloud?
Overview:
I am logging some messages using Logger
I would like these messages to be printed on to Xcode without the timestamp and other details
I want only the message to be displayed
Questions:
How can I display only the message on the Xcode console (see preferred output)?
Is there a setting in Xcode to remove the timestamp prefix?
Is there an alternate approach?
Note:
I need to use Logger because this app would be released, so print is not an option.
Example Code
import SwiftUI
import os
struct ContentView: View {
let logger = Logger(subsystem: "MyApp", category: "MyCategory")
var body: some View {
Text("Hello, world!")
.onAppear {
logger.debug("content view displayed")
}
}
}
Actual Output:
2022-11-25 18:41:10.116408+0800 Demo[36175:5518724] [MyCategory] content view displayed
Preferred Output:
One of the following would be ideal:
content view displayed
Demo[36175:5518724] [MyCategory] content view displayed
My Failed Attempt
I event tried to use print in debug mode, but couldn't make it compile:
Following is my failed attempt:
import os
#if DEBUG
struct Logger {
let subsystem: String
let category: String
func debug(_ message: String) {
print(message)
}
//This will not help:
// func debug(_ message: OSLogMessage) {
// print(message)
// }
}
#endif
Overview
I have an iOS project where I have a list with sections.
Each cell in the section can be swiped to have some action
What needs to be done
When swipe button is pressed the cell needs to move from one section to the other without a UI glitch.
Problem
When I press the swipe action button, there is a UI glitch and some warnings are thrown.
UICollectionView internal inconsistency: unexpected removal of the current swipe occurrence's mask view. Please file a bug against UICollectionView. Reusable view: <SwiftUI.ListCollectionViewCell: 0x10700c200; baseClass = UICollectionViewListCell; frame = (16 40.3333; 370 52); hidden = YES; layer = <CALayer: 0x600000c12fa0>>; Collection view: <SwiftUI.UpdateCoalescingCollectionView: 0x106820800; baseClass = UICollectionView; frame = (0 0; 402 874); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x600000c13330>; backgroundColor = <UIDynamicSystemColor: 0x60000173a9c0; name = systemGroupedBackgroundColor>; layer = <CALayer: 0x600000c3a070>; contentOffset: {0, -62}; contentSize: {402, 229}; adjustedContentInset: {62, 0, 34, 0}; layout: <UICollectionViewCompositionalLayout: 0x10590edb0>; dataSource: <_TtGC7SwiftUI31UICollectionViewListCoordinatorGVS_28CollectionViewListDataSourceOs5Never_GOS_19SelectionManagerBoxS2___: 0x106822a00>>; Swipe occurrence: <UISwipeOccurrence: 0x103c161f0; indexPath: <NSIndexPath: 0xab1f048608f3828b> {length = 2, path = 0 - 0}, state: .triggered, direction: left, offset: 0>
Test environment:
Xcode 26.0.1 (17A400)
iOS 26 Simulator (iPhone 17 Pro)
Feedback filed:
FB20890361
Code
I have pasted below the minimum reproducible code
ContentView
import SwiftUI
struct ContentView: View {
@State private var dataStore = DataStore()
var body: some View {
List {
ToDoSection(status: .notStarted, toDos: notStartedToDos)
ToDoSection(status: .inProgress, toDos: inProgressToDos)
ToDoSection(status: .completed, toDos: completedTodos)
}
}
var notStartedToDos: [Binding<ToDoItem>] {
$dataStore.todos.filter { $0.wrappedValue.status == .notStarted }
}
var inProgressToDos: [Binding<ToDoItem>] {
$dataStore.todos.filter { $0.wrappedValue.status == .inProgress }
}
var completedTodos: [Binding<ToDoItem>] {
$dataStore.todos.filter { $0.wrappedValue.status == .completed }
}
}
ToDoSection
import SwiftUI
struct ToDoSection: View {
let status: ToDoItem.Status
let toDos: [Binding<ToDoItem>]
var body: some View {
if !toDos.isEmpty {
Section(status.title) {
ForEach(toDos) { toDo in
Text(toDo.wrappedValue.title)
.swipeActions(edge: .trailing) {
if status == .notStarted {
Button("Start") {
toDo.wrappedValue.status = .inProgress
}
}
if status != .completed {
Button("Complete") {
toDo.wrappedValue.status = .completed
}
Button("Move back") {
toDo.wrappedValue.status = .notStarted
}
}
}
}
}
}
}
}
ToDoItem
import Foundation
struct ToDoItem: Identifiable {
let id: UUID
let title: String
var status: Status
}
extension ToDoItem {
enum Status: Equatable {
case notStarted
case inProgress
case completed
var title: String {
switch self {
case .notStarted:
"Not Started"
case .inProgress:
"In Progress"
case .completed:
"Completed"
}
}
}
}
DataStore
import Foundation
@Observable
class DataStore {
var todos: [ToDoItem]
init() {
todos = [
ToDoItem(id: UUID(), title: "aaa", status: .notStarted),
ToDoItem(id: UUID(), title: "bbb", status: .notStarted),
ToDoItem(id: UUID(), title: "ccc", status: .notStarted)
]
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Hi,
Overview
I am using Xcode Cloud for my multi platform app.
The macOS test case fails, however the iOS test case runs and succeeds.
I don't have any UI test cases written, the test case are simple and have nothing platform (macOS) specific.
Questions
What can I do to fix this?
Is there any user privileges needed to launch the macOS app for testing? I ask because when I ran the UI tests locally it launched the app and asked for my macOS user password. Just wondering if that is the reason it didn't launch in Xcode Cloud.
Error:
<Appname> encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Volumes/workspace/resultbundle.xcresult.(Underlying Error: Could not launch "AppnameTests. The LaunchServices launcher has returned an error. Please check the system logs for
the underlying cause of the error. (Underlying Error: The operation couldn't be completed. Launch failed. (Underlying Error: Launch job spawn failed) )))
× Could not launch "<Appname>"
× Could not launch "AppnameTests"
× AppnameUITests.testExample()
Failed to get launch progress for <XCUIApplicationImpl: 0x600000564630 <BundleID> at /Volumes/workspace/TestProducts/Debug-Dev/<Appname>.app>: Could not launch "app name". The LaunchServices launcher has returned an error. Please check the system logs for the underlying cause of the error. (Underlying Error: The operation couldn't be completed. Launch failed. (Underlying Error: Launch job spawn failed))
AppnameUITests.swift:28
* AppnameUITests.testLaunchPerformance)
Failed to get launch progress for «XCUIApplicationimpl: 0x60000054630 <BundleID> at /Volumes/workspace/TestProducts/Debug-Dev/<Appname>.apps: Could not launch "<Appname>". The LaunchServices launcher has returned an error. Please check the system logs for the underlying cause of the error. (Underlying Error: The operation couldn't be completed. Launch failed. (Underlying Error: Launch job spawn failed))
AppnameUITests.swift:37 g
* AppnameUITestsLaunchTests.testLaunch)
Failed to get launch progress for «XCUIApplicationimpl: 0x60000054630 <BundleID> at /Volumes/workspace/Testroducts/Debug-Dev/<Appname>.apps: Could not launch "<Appname>". The LaunchServices launcher has returned an error. Please check the system logs for the underlying cause of the error. (Underlying Error: The operation couldn't be completed. Launch failed.