Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 12.2 beta 3 / Big Sur Beta 10 throw SIGCONT for SwiftUI app

Tags:

xcode

swiftui

I've just 'upgraded' to the latest Big Sur – 11.0 Beta (20A5395g) – and Xcode betas – 12.2 beta 3 (12B5035g). When I try to run any SwiftUI based Mac App the program stops with a Thread 1: signal SIGCONT message. Sometimes I am able to continue (Ctrl Command Y), but others the program stops with the message Message from debugger: Terminated due to signal 19.

The Stack trace suggests the problem is in the ImageLoader.

I've tried reinstalling Xcode and clearing out it's cache's. The problem even manifests with a brand new project - i.e. it isn't related to my code,

Any ideas how I might trouble shoot this?

like image 854
Philip Pegden Avatar asked Oct 15 '20 06:10

Philip Pegden


People also ask

Does Xcode 12 2 beta support iOS 9?

The Xcode 12.2 beta release supports on-device debugging for iOS 9 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 12.2 beta requires a Mac with Apple silicon running macOS Big Sur 11 or later, or an Intel-based Mac running macOS Catalina 10.15.4 or later.

What's new in the latest Xcode beta for macOS Big Sur?

The latest Xcode beta for macOS Big Sur includes support for unreleased operating systems likely to be used in the upcoming "iPhone 12" and Macs with Apple Silicon. Apple released the Xcode 12.2 beta on Thursday alongside the latest macOS Big Sur developer beta.

Does Xcode 12 3 support on-device debugging?

Xcode 12.3 supports on-device debugging for iOS 9 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 12.3 requires an Intel-base Mac running macOS Mojave 10.15.4 or later, or Apple silicon running macOS Big Sur 11 or later.

What's new in SwiftUI for iOS?

Now SwiftUI has complete new life cycle management API for apps built with SwiftUI. So, now you can share life cycle code across all Apple platforms. All new widgets are built on SwiftUI.


2 Answers

You can workaround the issue using a symbolic breakpoint.

Add a symbolic breakpoint with the following settings:

Symbol: _main
Module: dyld
Action: Debugger Command with the command process handle -n false -s false SIGCONT
Options: Check Automatically continue after evaluating actions

Example symbolic breakpoint

like image 82
Stuart Carnie Avatar answered Nov 11 '22 20:11

Stuart Carnie


Workaround by choosing "Debug Process as Root" in Schema "Run" -> "Info"

Apple Forum discussion

like image 27
Philip Pegden Avatar answered Nov 11 '22 19:11

Philip Pegden