Making Swift Error Messages Human-Friendly—Together
Swift error messages can be cryptic, but as a community, we can make them clearer. Help others (and your future self) by contributing better explanations.
31 post(s)

Swift error messages can be cryptic, but as a community, we can make them clearer. Help others (and your future self) by contributing better explanations.

Tired of vague bug reports like "it doesn't work"? In this post, you'll learn how to collect automatic logs and track real-world errors in your Swift apps—with just a few lines of code.

Discover how to turn Typed Throws from a headache into a superpower — with clean error handling and powerful debugging insights.

Tired of cryptic Swift error messages like '(YourError error 0)'? Here's how to fix them for good—with clarity and elegance.

Swift macros are powerful but can break your CI pipeline with trust errors. Learn how to implement a simple post-clone script that solves the "Target must be enabled" error in Xcode Cloud once and for all.

String Catalogs improved localization but introduced new challenges. This article explores how to regain structure and efficiency with modern best practices and a new open-source tool that could change the way you localize.

Ever wondered how to test your Swift code's compatibility with Linux from your Mac without diving into Docker? In this article, I'll share a simple command that makes the process effortless!

Investing time in Open Source again: Complete revamp of HandySwift with vastly improved documentation and lots of added handy features extracted from my apps. Read on to learn which helpers I use most often!

Discover the game-changing implications of Apple's new feature, String Catalogs, which replaces traditional localization files and streamlines the localization process. From automatic key extraction to safety checks, find out why developers should be excited about this powerful tool in Xcode 15.

Learnings from modernizing the window handling of my Mac app after upgrading to SwiftUI 4. Explaining `\.openWindow`, `.windowResizability` & more.

How to enable Swift 6 mode for your Xcode projects and for your SwiftPM modules today. And what the migration experience is like.

Sharing my learnings and my code structure after migrating my app to the vastly modernized APIs of TCA 1.0.

How to organize your apps Swift modules for clarity & convenience using a hidden (unofficial) Swift feature. A practical solution for small to medium-sized apps.

With Apple announcing WWDC week for June 6–10 this year, let’s dive into what new frameworks, APIs, and tools I hope to see unveiled and what using them might feel like with examples.

Adding a missing SwiftUI component for prototyping purposes.

A step-by-step guide on how to prevent your 3rd party service secrets from committing to Git when using apps modularized with SwiftPM.
A non-obvious Vapor configuration detail that can cause intermittent 500 errors when your actual connection count exceeds what you think you configured.
The proper SwiftUI pattern for icon-only buttons that preserves accessibility without sacrificing readability.
Why every Swift package should include an .editorconfig file to enforce consistent indentation across all contributors.
Two lesser-known DocC features that make your documentation more interactive: embedded videos and tabbed content navigation.
How to use StoreKit's AppTransaction API to transition from paid-up-front to freemium while preserving access for users who already paid.
A reusable button component that handles async actions with automatic loading state, disabling, and success/failure indication.
SwiftUI's ImageRenderer silently fails on views that use UIKit or AppKit under the hood, like List and ScrollView.
Create a single import that re-exports all your commonly used frameworks using @_exported import.
Understanding the mental model shift from imperative navigation in UIKit to data-driven navigation in SwiftUI.
SwiftUI's AsyncImage does not allow the .resizable() modifier, requiring a phase-based workaround.
Xcode 15 generates type-safe Swift accessors for images and colors in asset catalogs, replacing the need for SwiftGen.
A preview-only helper that simulates network delays so you can see loading states in SwiftUI previews.
Using Xcode code snippets with #warning to leave actionable reminders in your codebase.
A simple URL trick to read summarized versions of Swift Evolution proposals on GitHub.
How to create a pulsating button effect in SwiftUI to guide users during onboarding.