99 posts tagged ‘Programming’
What Happened to __crashreporter_info__?
Seth Willits (in 2022): The new “ips” crash reports in macOS do not contain assert() information!(Assertion failed: (myVar != nil), function fooBarTest(), file code.m, line 100)Problematic because symbolication is often finicky, so it takes a LOT more work to find which assert() failed.[…]I don’t know whether it’s the “log” that’s to blame or that the […]
SecItem: Fundamentals, Pitfalls, and Best Practices
Quinn: The SecItem API seems very simple. After all, it only has four function calls, how hard can it be? In reality, things are not that easy. Various factors contribute to making this API much trickier than it might seem at first glance.This post explains the fundamental underpinnings of the keychain. […] A critical part […]
Kaleidoscope 4.2
Christopher Atlan (tweet): In the window title bar you’ll see a new element that gives you more detail about the task. You’ll see how many conflicts you still need to resolve in that file.[…]The window has a new area between the title bar and the Path Bar. We call it Context Shelf. […] In the […]
Unit Testing a SwiftUI Query
Helge Heß: I’ve been wondering whether I could unit test a SwiftData Query, i.e. the SwiftUI property wrapper coming w/ SwiftData (in beta6 it is actually a macro). Aka whether I could unit test a SwiftUI view. This requires setting up an execution environment for the view, but surprisingly that actually works 🙂 Here’s the […]
Rescuing Files From Classic Mac OS...with Swift
Jordan Rose: The biggest benefits of doing this project in Swift are very similar to what the benefits would have been for using C++, back in the 90s, but with even more safety. Take directory walking. In C, this looks something like the following: FSIterator *iter; OSStatus err = FSOpenIterator(&directory, kFSIterateFlat, &iter); if (err != […]
The Care and Feeding of Developer ID
Quinn: I regularly see folks run into problems with their Developer ID signing identities. Historically I pointed them to my posts on this thread, but I’ve decided to collect these ideas together in one place.[…]This post focuses on traditional signing identities, where you manage the private key. Xcode Cloud introduced cloud signing, where signing identities […]
Hacking NSAlert Button Appearance
Daniel Jalkut: Notice how the “Bar” and “Baz” buttons do not have a border or background color, making it difficult to know whether they are even buttons at all. The line between Bar and Baz clunks up the interface even more.[…]This exploded view from the Xcode view debugger shows that the top, default button, is […]
Xcode 15 Duplicate Library Linker Warnings
Daniel Jalkut: Even though I’ve been seeing them all summer, and have been annoyed by them, I made the same mistake I often make: assuming that the problem was too obvious not to be fixed before Xcode 15 went public. Alas. […] Something about the way Xcode infers library linkage dependencies has, for several years […]