Files
qt5/coin/provisioning/qtci-macos-26-arm/06-crashreporter.sh
Tor Arne Vestbø 17bcaae8bc Disable warnings from Swift backtrace on macOS 26
Many of the system tools seems to be written in Swift now, which results
in a warning when running them:

  swift runtime: backtrace-on-crash is not supported for privileged
  executables

Luckily we can silence this warning via 'warnings=suppressed'.

See https://forums.swift.org/t/suppressing-backtrace-warnings/79235

Change-Id: I09b97553d996269fd4c9d23bf52a319bf964c833
Reviewed-by: Ville-Pekka Karhu <ville-pekka.karhu@qt.io>
2025-07-07 11:14:04 +02:00

13 lines
439 B
Bash
Executable File

#!/usr/bin/env sh
#Copyright (C) 2023 The Qt Company Ltd
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
set -ex
defaults write com.apple.CrashReporter DialogType server
# shellcheck source=../common/unix/SetEnvVar.sh
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
SetEnvVar "SWIFT_BACKTRACE" "enable=yes,output-to=stderr,preset=medium,interactive=false,warnings=suppressed"